R4RIN
Articles
Java 8
MCQS
ASP.Net MCQ Quiz Hub
ASP.Net Mcq Question Set 8
Choose a topic to test your knowledge and improve your ASP.Net skills
1. An Organization Has Developed A Web Service In Which The Values Of The Forms Are Validated Using ASP.NET Application. Suppose This Web Service Is Got And Used By A Customer Then In Such A Scenario Which Of The Following Is TRUE
Such a situation cannot happen at all
The customer must be having technology that run ASP.
The customer can run on any platform. (ANS)
None of the mentioned
2. Which Of The Following Denote The Web Control Associated With Table Control Function Of ASP.NET?
DataList
ListBox
TableRow
None of the mentioned
3. ASP.NET Separates The HTML Output From Program Logic Using A Feature Named As
Exception
Code-behind
Code-front
All of the Mentioned
4. If A Developer Of ASP.NET Defines Style Information In A Common Location. Then That Location Is Called As
Master Page
Theme
Customization
None of the mentioned
5. In ASP.NET If You Want To Allows Page Developers A Way To Specify Static Connections In A Content Page Then The Class Used Is
WebPartManager
ProxyWebPartManager
System.Activator
None of the mentioned
6. The Feature In ASP.NET 2.0 That Is Used To Fire A Normal Postback To A Different Page In The Application Is Called
Theme
Cross Page Posting
Code-front
All of the Mentioned
7. In ASP.NET If One Uses Windows Authentication The Current Request Attaches An Object Called As
Serialization
WindowsPrincipal
WindowDatset
None of the mentioned
8. The GridView Control In ASP.NET Has Which Of The Following Features
Automatic data binding
Automatic paging
Both
None of the mentioned
9. If One Uses ASP.NET Configuration System To Restrict Access Which Of The Following Is TRUE?
The access is restricted only to ASP.NET files
The access is restricted only to static files and non-ASP.NET resources.
Both
None of the mentioned
10. Which Of The Following Denote Page Code Model In ASP.NET?
single-file
code-behind
Both A & B
None of the mentioned
11. Which Of The Following Denote New Data-Bound Controls Used With ASP.NET
GridView
FormView
All the above
All of the Mentioned
12. A Developer Wanted To Achieve Graphics In His Display Using ASP.NET. Which Of The Following Web Controls Are Available In ASP.NET To Achieve The Above?
LinkButton
AdRotator
Both
All of the Mentioned
13. Forms Based Authentication Is Otherwise Called In ASP.NET As Cookie Authentication Because Forms Authentication Uses Cookies To Allow Applications To Track Users Throughout Their Visit.
Windows Authentication
Passport Authentication
Cookie Authentication
None of the mentioned
14. Which Of The Following Is True About Session In ASP.NET?
Programmers has to take care of delete sessions after configurable timeout interval
ASP.NET automatically delete sessions after configurable timeout interval
None of the above
All of the Mentioned
15. In ASP.NET What Does The Following Return < % Response.Write(System.Environment.WorkingSet.ToString()) % >
Gives Error
Return Null value
Gives the memory working set
None of the mentioned
16. In ASP.NET If One Wants To Maintain Session Then Which Of The Following Is Used?
In-process storage
Microsoft SQL Server
All the above
None of the mentioned
17. I Have An ASP.NET Application. I Have A Page Loaded From Server Memory. At This Instance Which Of The Following Methods Gets Fired
Unload( )
Load()
PreRender( )
None of the mentioned
18. Give One Word: What Model Does ASP.NET Request Processing Is Based On
Bottom-up
Waterfall
Pipeline
None of the mentioned
19. If In An ASP.NET Application One Want To Create Http Handlers Which Of The Interface Is Used
pipeline
Handler
IHttpHandlerFactory
None of the mentioned
20. To Set Page Title Dynamically In ASP.NET Which Of The Following Is Used?
&lt; sheet &gt; section
&lt; tail &gt; section
&lt; head &gt; section
All of the Mentioned
21. In ASP.NET Application The Global.Asax File Lie In Which Directory
Application
System
Root
All of the Mentioned
22. Which Of The Following Can Be Used To Debug .NET Application?
Systems.Diagnostics classes
Runtime Debugger
All the above
None of the mentioned
23. Which Of The Following Is Used To Write Error Message In Event Log File?
System.Data
System.EnterpriseServices
System.Diagnostics
None of the mentioned
24. Setting The Following Properties For Object In ASP.NET Results In Response.Buffer = True Response.ExpiresAbsolute = Now().Subtract(New TimeSpan(1, 0, 0, 0)) Response.Expires = 0 Response.CacheControl = "No-Cache"
Avoid page to be cached
Clears the buffer area
The session expires
None of the mentioned
25. Which Of The Following Denote Value That Can Be Taken By Cache-Control Of ASP.NET?
Public
Private
All the above
None of the mentioned
26. In ASP.NET Page Framework An Automatic Way To Associate Page Events And Methods Is
AutoEventWireup attribute of the Page directive is set to true
AutoEventWireup attribute of the Page directive is set to False
It is not possible to set automatically page events and methods
None of the mentioned
27. In ASP.NET If One Wants To Set The Focus On A Particular Control
Call SETFOCUS
Call SETCONTROL
Call FOCUS method
None of the mentioned
28. The Control Used In ASP.NET To Display Information From Data Set But With Better Formatting And Editing Behavior Is
Panel
Button
DataList
None of the mentioned
29. The Following Are The Minimum Requirement To Run Asp.Net Pages
Java Virtual Machine
Common Language Runtime
Windows explorer
None of the mentioned
30. When A .Aspx Page Is Requested From The Web Server, The Out Put Will Be Rendered To Browser In Following Format.
HTML
XML
WML
None of the mentioned
31. What Executable Unit Gets Created When We Build An ASP.Net Application?
. DLL
. EXE
. COM
None of the mentioned
32. The Best Way To Delimit ASP.Net Code From HTML Code In Your Pages Is By Using --------------- Tags.
&lt; Body &gt;
&lt; Head &gt;
&lt; Script &gt;
None of the mentioned
33. Asp:dropdownlist> Tag Replaces Which Of The HTML Tags
&lt; Option &gt;
&lt; Select &gt;
&lt; List &gt;
None of the mentioned
34. < Asp : Listitem > Tag Replaces Which Of The Following HTML Tags
&lt; Option &gt;
&lt; UL &gt;
&lt; List &gt;
None of the mentioned
35. How Many Configuration Files Can An ASP.NET Projects Have?
More Than One
One
None of the above
None of the mentioned
36. Can A Dll Run As Stand Alone Application ?
No
Yes
Sometimes we can make it by introducing some code
None of the mentioned
37. A Web Application Running On Multiple Servers Is Called As
Webfarm
WebForm
Website
None of the mentioned
38. What Is The Transport Protocol Used To Call A Webservice
HTTP
SOAP
TCP
None of the mentioned
39. How ASP.Net Different From ASP
Scripting is separated from the HTML, Code is interpreted seperately
Scripting is separated from the HTML, Code is compiled as a DLL, the DLLs can be executed on server
Code is separated from the HTML and interpreted Code is interpreted separately
None of the mentioned
40. What’s The Difference Between Response.Write() AndResponse.Output.Write()?
Response.Output.Write() allows you to flush output
Response.Output.Write() allows you to buffer output
Response.Output.Write() allows you to write formatted output
None of the mentioned
41. What Is The Extension Of A Web User Control File ?
.Asmx
.Ascx
.aspx
None of the mentioned
42. What Is The Default Session Out Time
20 Sec
20 Min
1 hr
None of the mentioned
43. It Is Possible To Set Maximum Length For A Text Box Through Code
True
False
None of the above
All of the Mentioned
44. The Interface Used By ASP.Net To Create Unique Id’s?
AppDomainsetup
System.UI.Naming.Container
IAsyncResult
None of the mentioned
45. Which Property Of The Session Object Is Used To Set The Local Identifier ?
SessionId
LCID
Item
None of the mentioned
46. How Do You Disable Client Side Validation ?
Set the language property to C#
Set the Runat property to server
Set the ClientTarget property to Downlevel
None of the mentioned
47. Select The Validation Control Used For “PatternMatching”
FieldValidator
RangeValidator
RegularExpressionValidator
None of the mentioned
48. How Do You Trace The Application_End Event On Runtime?
By Debugging
By Tracing
Can not be done
None of the mentioned
49. Who Can Access Session State Variables
All Users of an application
A Single session
All users within a single tunnel
None of the mentioned
50. Does The “EnableViewState” Allows The Page To Save The Users Input On A Form
Yes
No
None of the above
None of the mentioned
Submit