R4RIN
Articles
Java 8
MCQS
ASP.Net MCQ Quiz Hub
ASP.Net Mcq Question Set 6
Choose a topic to test your knowledge and improve your ASP.Net skills
1. A web application can contain _______ .
Only One Web.Config File
Only Two Web.Config File
more than one Web.config file
No file.
2. Choose the form in which Postback occur
HTMLForms
Webforms
Winforms
None of the mentioned
3. Web.config file is used...
Configures the time that the server-side codebehind module is called
To store the global information and variable definitions for the application
To configure the web server
To configure the web browser
4. Which of the following object is not an ASP component?
LinkCounter
Counter
AdRotator
File Access
5. The first event triggers in an aspx page is.
Page_Init()
Page_Load()
Page_click()
None of the mentioned
6. Difference between Response.Write() andResponse.Output.Write().
Response.Output.Write() allows you to buffer output
Response.Output.Write() allows you to write formatted output
Response.Output.Write() allows you to flush output
Response.Output.Write() allows you to stream output
7. Which of the following method must be overridden in a custom control?
The Paint() method
The Control_Build() method
The default constructor
The Render() method
8. How do we create a FileSystemObject?
Server.CreateObject("Scripting.FileSystemObject")
Create("FileSystemObject")
Create Object:"Scripting.FileSystemObject"
Server.CreateObject("FileSystemObject")
9. Which of the following tool is used to manage the GAC?
RegSvr.exe
GacUtil.exe
GacSvr32.exe
GacMgr.exe
10. What class does the ASP.NET Web Form class inherit from by default?
System.Web.UI.Page
System.Web.UI.Form
System.Web.GUI.Page
System.Web.Form
11. We can manage states in asp.net application using
Session Objects
Application Objects
Viewstate
All of the above
12. Attribute must be set on a validator control for the validation to work.
ControlToValidate
ControlToBind
ValidateControl
Validate
13. Caching type supported by ASP.Net
Output Caching
DataCaching
a and b
None of the above
14. What is used to validate complex string patterns like an e-mail address?
Extended expressions
Basic expressions
Regular expressions
Irregular expressions
15. File extension used for ASP.NET files.
.Web
.ASP
.ASPX
None of the above
16. An alternative way of displaying text on web page using
asp:label
asp:listitem
asp:button
None of the mentioned
17. Why is Global.asax is used?
Declare Global variables
Implement application and session level events
No use
None of the mentioned
18. Which DLL translate XML to SQL in IIS?
SQLISAPI.dll
SQLXML.dll
LISXML.dll
SQLIIS.dll
19. Default scripting language in ASP.
EcmaScript
VBScript
PERL
JavaScript
20. How do you get information from a form that is submitted using the "post" method?
Request.QueryString
Request.Form
Response.write
Response.writeln
21. Which object can help you maintain data across users?
Application object
Session object
Response object
Server object
22. Which of the following ASP.NET object encapsulates the state of the client?
Session object
Application object
Response object
Server object
23. Which of the following object is used along with application object in order to ensure that only one process accesses a variable at a time?
Synchronize
Synchronize()
ThreadLock
Lock()
24. Which of the following control is used to validate that two fields are equal?
RegularExpressionValidator
CompareValidator
equals() method
RequiredFieldValidator
25. Mode of storing ASP.NET session
InProc
StateServer
SQL Server
All of the above
26. Which of the following is not the way to maintain state?
View state
Cookies
Hidden fields
Request object
27. You can have only one Global.asax file per project.
Yes
no
all of the above
None of the mentioned
28. ______ element in the web.config file to run code using the permissions of a specific user
< credential> element
< authentication> element
< authorization> element
< identity> element
29. _______ is a special subfolder within the windows folder that stores the shared .NET component.
/bin
GAC
Root
None of the mentioned
30. Which of the following is the performance attributes of processModel?
requestQueue limit
maxWorkerThreads
maxIdThreads
All of the Mentioned
31. Which of the following is faster and consume lesser memory?
SQLDataReader
Data Set
all of the above
None of the mentioned
32. The ________ property affects how the .Net Framework handles dates, currencies, sorting and formatting issues.
CurrentUICulture
CurrentCulture
all of the above
None of the mentioned
33. Where do we include the user lists for windows authentication?
< Credential>
< authorization>
< identity>
< authentiation>
34. Which of the following authentication is best suited for a corporate network?
Windows
Form
User
All of the mentioned
35. What attributes do you use to hide a public .Net class from COM?
DLLImport Attributes
ComVisible attributes
COM Interop
All of the Mentioned
36. By default, code written with the Debug class is stripped out of release builds.
Yes
no
all of the above
None of the mentioned
37. ______ tests make sure that new code does not break existing code.
Regression tests
Integration tests
Unit tests
Load test
38. The .NET Framework provides a runtime environment called..... ?
RMT
CLR
RCT
RC
39. In ASP.NET in form page the object which contains the user name is ______ ?
Page.User.Identity
Page.User.IsInRole
Page.User.Name
None of the above
40. Find the term: The .NET framework which provides automatic memory management using a technique called _________ ?
Serialization
Garbage Collection
Assemblies
Overriding
41. Which of the following denote ways to manage state in an ASP.Net Application?
Session objects
Application objects
ViewState
All the above
42. What is the base class from which all Web forms inherit?
Master Page
Page Class
Session Class
none of the above
43. Which of the following must be done in order to connect data from some data resource to Repeater control?
Set the DataSource property
Call the DataBind method
Both A. and B.
None of the above
44. Which of the following is FALSE?
ASP.NET applications run without a Web Server
ASP+ and ASP.NET refer to the same thing
ASP.NET is a major upgrade over ASP
none of the above
45. Which of the following transfer execution directly to another page?
Server.Transfer
Response.Redirect
Both A. and B.
none of the above
46. If one has two different web form controls in a application and if one wanted to know whether the values in the above two different web form control match what control must be used?
DataList
GridView
CompareValidator
Listview
47. Which of the following is used to send email message from my ASP.NET page?
System.Web.Mail.MailMessage
System.Web.Mail.SmtpMail
Both A. and B.
None of the above.
48. In my .NET Framework I have threads. Which of the following denote the possible priority level for the threads?
Normal
AboveNormal
Highest
all the above
49. In .NET the operation of reading metadata and using its contents is known as ______?
Reflection
Enumeration
Binding
Serialization
50. In ASP.NET the < authorization > section contain which of the following elements?
&lt; deny &gt;
&lt; allow &gt;
Both A. and B.
None of the above
Submit