R4RIN
MCQS
ASP.Net MCQ Quiz Hub
ASP.Net Mcq Question Set 12
Choose a topic to test your knowledge and improve your ASP.Net skills
1. . Is it possible to have a static indexer in C?
Yes
no
all of the above
None of the mentioned
2. In an ASP.NET application, can we add more than one WEB.CONFIG files. Can it run?
. Yes
no
all of the above
None of the mentioned
3. Can we run asp.net application without WEB.CONFIG file?
Yes
no
all of the above
None of the mentioned
4. Caching is considered as the best way to enhance the performance of the application.
Yes
no
all of the above
None of the mentioned
5. The main event fired when we call bind method in a datagrid
First: GridView_DataBinding , Then, GridView_RowCreated
First:GridView_RowCreated, Then,GridView_DataBinding
GridView_DataBinding
First: GridView_DataBinding , Then, GridView_RowCommand
6. Which are the components of a strong name?
Name of the assembly
version number
Culture identity
All of these
7. To test a Web service you must create a windows application or Web application to consume this service?
True
False
all of the above
None of the mentioned
8. Is it possible to Override Private Virtual methods.
Yes
no
all of the above
None of the mentioned
9. The default size cache of a 128mb RAM is
128mb
384mb
3.256mb
512mb
10. Does web service have a state?
Yes
no
all of the above
None of the mentioned
11. What is the maximum size of query string?
384 bytes
128 bytes
255 bytes
512 bytes
12. Which Namespace is used for event log support?
System.Reflection;
System.Diagnostics
System.Collections
System.Web.UI
13. Where do you store the information about the user’s locale?
System.Web.UI
System.Web.UI.Page.Culture
System.Web.UI.Page
System.Web.Form
14. .How many classes can a single .NET DLL contain?
One
Two
Three
many
15. What is the transport protocol you use to call a Web service?
HTTP
SMTP
TCP
SOAP
16. Web Controls Supports CSS
True
False
all of the above
None of the mentioned
17. what is the difference between user control and custom control
Both can use as drag and drop tool
. Both are same
Both can use different application
One Custom Control can be use in different project but not the same with User control
18. Which of the following is not a member of ADODBCommand object-?
ExecuteReader
ExecuteScalar
ExecuteStream
Open
19. What does Response.End will do?
It will stop the server process
It will stop the client process
None of the above
All of the Mentioned
20. How do you add ASP.Net 3rd party component?
By add/Remove items in the project menu
Add reference of dll file and place the code where ever required
Cannot add 3rd party component to asp.net
None of the mentioned
21. Which of the following extension does a webservice file will have?
.asmx
.aspx
.ascx
.resx
22. Which of the following languages can be used to write server side scripting in ASP.NET?
C#
C
Visual Basic
None of the mentioned
23. What is the default authentication mode for IIS?
Windows
Anonymous
Basic Authentication
None
24. The code will be processed on web server when the runat attribute of the < Script > tag has the following value?
Desktop
Client
Server
None of the mentioned
25. What is the difference between HTTP handlers & HTTP modules?
Httphandler is an class and Httpmodule is an assembly
Httphandler is an event handler and httpmodule is module to do some task
Both of the above
none of the above
26. Is it Possible to Serialize HashTable with XMLSerializer?
Yes
no
all of the above
None of the mentioned
27. What is the advantage of Disconnected mode of ADO.Net in ASP.Net(user data can update and retrieve in dataset and when connection connected, update values with server)
Automatically dump data at client PC
Not necessary to connect with server
user data can update and retrieve in dataset and when connection connected, update values with server
All of the above
28. The object used by SQL connection to make Security Demands
SQLLCientAttribute
SQLPermission
SQLPermissionClient
SQLClientPermission
29. How do you turn off the Session state for a webform ?
. In Web.config file set the tag to True
In Web.config file set the tag to false
Set the Session state to false in webform properties window
Set the EnableSession state to false in webform properties window
30. .The number of forms that can be added to a aspx page is
2
3
1
None of the mentioned
31. .Select the output of the statement < form method=post action=”test.aspx” >
Transfers all the form data to test.aspx with HTTP headers
Transfers all the form data to test.aspx with out HTTP headers
Calls post method on test.aspx
none of the above
32. You are transferring records from one database to another. You need to decide whether you can use the SqlBulkCopy class to transfer the records. What should you do?
Ensure that the source database is Microsoft SQL Server
Ensure that the destination database is Microsoft SQL Server
Ensure that the column names in the source table match the column names in the destination
Ensure that the bulk copy program (bcp) utility is installed on the destination server
33. You are creating a Web application that will run on an intranet. The Web application reads comma-delimited text files. The text files reside in a subdirectory below the Web application's root directory. Users must not be able to navigate directly to these files in a Web browser unless they are members of the Accounting role. You need to write an ASP.NET HTTP handler that will use the FileAuthorizationModule class. Which form of authentication should you use?
. Anonymous
Certificate
Forms
Microsoft Windows Integrated Security
34. On which of the operating system below ASP.NET can run?
Windows XP Professional
Windows 2000
Both A) and B)
none of the above
35. In ASP.NET if one uses Windows authentication the current request attaches an object called as
Serialization
WindowsPrincipal
WindowDatset
none of the above
36. In ASP.NET what does the following return < % Response.Write(System.Environment.WorkingSet.ToString())%>
Gives the memory working set
Return Null value
Gives Error
Gives Error
37. .Give one word: What model does ASP.NET request processing is based on
Pipeline
Waterfall
Top-down
Bottom-up
38. 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 above
39. Which of the following can be used to debug .NET application?
Visual Studio .NET
Runtime Debugger
Systems.Diagnostics classes
All the above
40. 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 A and B
none of the above
41. 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 above
42. 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 above
43. You create a Web site. The Web site has many predefined roles and associated users that will be used for security purposes. You need to manage these roles and user accounts.Which tool should you use?
the Microsoft .NET Framework Configuration tool
the Code Access Security Policy tool
the ASP.NET IIS Registration tool
the Web Site Administration Tool
44. You are creating a templated Web control for use in your Web application. You need to add the Web control to your Web application pages without compiling your control into a .dll file. What should you do?
. Ensure that the Web control inherits from the WebControl class.
Ensure that the Web control inherits from the Control class
Ensure that the Web control inherits from the CompositeControl class
Ensure that the Web control inherits from the UserControl class.
45. .You are creating a custom control. The UI of the control must contain several text boxes and two buttons. The control must be available in the global assembly cache for reuse across multiple Web applications. You need to achieve this functionality by using the minimum amount of code. What should you do?
Create a control that derives from System.Web.UI.Control.
Create a control that derives from System.Web.UI.WebControls.CompositeControl.
Create a control that derives from System.Web.UI.WebControls.WebControl.
Create a control that derives from System.Web.UI.UserControl.
46. ASP.NET separates the HTML output from program logic using a feature named as
Exception
Code-behind
Code-front
Code-front
47. .To set page title dynamically in ASP.NET which of the following is used?
&lt; head &gt; section
&lt;tail &gt; section
&lt;sheet &gt; section
none of the above
48. 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 above
49. 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
The session expires
Clears the buffer area
. Avoid page to be cached
none of the above
50. A client side already has 25 COM objects and if the requirement is to add a 26th function that must exists only for .NET object without affecting the existing one how to achieve the above?
By CCW
By RCW
By RCA
none of the above
Submit