R4RIN
Articles
Java 8
MCQS
ASP.Net MCQ Quiz Hub
ASP.Net Mcq Question Set 7
Choose a topic to test your knowledge and improve your ASP.Net skills
1. The type of code found in Code-Behind class is ________ ?
Server-side code
Client-side code
Both A. and B.
none of the above
2. Common type system is built into which of the following:
CLR
RCT
RCW
GacMgr.exe
3. The actual work process of ASP.NET is taken care by _______?
inetinfo.exe
aspnet_isapi.dll
aspnet_wp.exe
None of the above
4. Which of the following allow writing formatted output?
Response.Write()
Response.Output.Write()
Both A. and B.
none of the above
5. Which of the following denote the property in every validation control?
ControlToValidate property
Text property
Both A. and B.
None of the above
6. How many classes can a single .NET DLL contain?
One
Two
None
many
7. Suppose one wants to modify a SOAP message in a SOAP extension then how this can be achieved. Choose the correct option from below:
One must override the method ReceiveMessage
One must override the method InitializeMethod
Both A. and B.
One must override the method ProcessMessage
8. Which of the following can be used to add alternating color scheme in a Repeater control?
AlternatingItemTemplate
DataSource
ColorValidator
None of the above
9. Suppose a .NET programmer wants to convert an object into a stream of bytes then the process is called ________ ?
Serialization
Threading
RCW
AppDomain
10. The technique that allow code to make function calls to .NET applications on other processes and on other machines is
.NET Threading
.NET Remoting
.NET RMT
None of the above
11. The namespace within the Microsoft .NET framework which provides the functionality to implement transaction processing is ....................
System.EnterpriseServices
System.Security
System.Diagnostics
System.Data
12. Which of the following method is used to obtain details about information types of assembly?
GetTypes
GetType
Both A. and B.
none of the above
13. Which of the following is TRUE about Windows Authentication in ASP.NET?
Automatically determines role membership
Role membership determined only by user programming
ASP.NET does not support Windows Authentication
None of the above
14. What tags one need to add within the asp:datagrid tags to bind columns manually?
Set AutoGenerateColumns Property to false on the datagrid tag
Set AutoGenerateColumns Property to true on the datagrid tag
It is not possible to do the operation
Set AutomaunalColumns Property to true on the datagrid tag
15. Which method do you invoke on the DataAdapter control to load your generated dataset with data?
Load ( )
Fill( )
DataList
DataBind
16. In ASP.NET the sessions can be dumped by using
Session.Dump
Session.Abandon
Session.Exit
none of the above
17. Which of the following languages can be used to write server side scripting in ASP.NET?
C-sharp
VB
C++
A and B
18. When an .aspx page is requested from the web server, the out put will be rendered to browser in following format.
HTML
XML
WML
jsp
19. The Asp.net server control, which provides an alternative way of displaying text on web page, is
< asp:label >
< asp:listitem >
< asp:button >
None of the mentioned
20. The first event to be triggered in an aspx page is.
Page_Load()
Page_Init()
Page_click()
None of the mentioned
21. Postback occurs in which of the following forms.
Winforms
HTMLForms
Webforms
None of the mentioned
22. What namespace does the Web page belong in the .NET Framework class hierarchy?
System.web.UI.Page
System.Windows.Page
System.Web.page
None of the mentioned
23. Which method do you invoke on the Data Adapter control to load your generated dataset?
Fill( )
ExecuteQuery( )
Read( )
None of the mentioned
24. How do you register a user control?
Add Tag prefix, Tag name
Add Source, Tag prefix
Add Src, Tagprefix, Tagname
None of the mentioned
25. Which of the following is true?
User controls are displayed correctly in the Visual Studio .NET Designer
Custom controls are displayed correctly in VS.Net Designer
User and Custom controls are displayed correctly in the Visual Studio .NET Designer.
None of the above.
26. To add a custom control to a Web form we have to register with.
TagPrefix
Name space of the dll that is referenced
Assemblyname
All of the above
27. Custom Controls are derived from which of the classes
System.Web.UI.Webcontrol
System.Web.UI.Customcontrol
System.Web.UI.Customcontrols.Webcontrol
None of the mentioned
28. How ASP.Net Different from classic 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
All of the Mentioned
29. 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
Response.Output.Write() allows you to stream output
30. There can be more than 1 machine.config file in a system
True
False
SOAP
None of the mentioned
31. What is the extension of a web user control file?
.Asmx
.Ascx
.Aspx
None of the mentioned
32. Which of the following is true?
IsPostBack is a method of System.UI.Web.Page class
IsPostBack is a method of System.Web.UI.Page class
IsPostBack is a readonly property of System.Web.UI.Page class
None of the above.
33. The number of forms that can be added to a aspx page is.
1
2
3
More than 3
34. How do you manage states in asp.net application
Session Objects
Application Objects
Viewstate
All of the above
35. Which property of the session object is used to set the local identifier?
SessionId
LCID
Item
Key
36. Select the caching type supported by ASP.Net
Output Caching
DataCaching
a and b
none of the above
37. Where is the default Session data is stored in ASP.Net?
InProcess
StateServer
Session Object
all of the above
38. Select the type Processing model that asp.net simulate
Event-driven
Static
Linear
Topdown
39. Does the EnableViewState allows the page to save the users input on a form?
Yes
no
all of the above
None of the mentioned
40. What is the maximum number of cookies that can be allowed to a web site?
1
10
20
More than 30
41. Select the control which does not have any visible interface.
Datalist
DropdownList
Repeater
Datagrid
42. How do you explicitly kill a user session?
Session.Close( )
Session.Discard( )
Session.Abandon
Session.End
43. Which one of the following namespaces contains the definition for IdbConnection?
System.Data.Interfaces
System.Data.Common
System.Data
System.Data.Connection
44. In your ASP.NET web application you want to display a list of clients on a Web page. The client list displays 10 clients at a time, and you require the ability to edit the clients. Which Web control is the best choice for this scenario?
The DetailsView control
The Table control
The GridView control
The FormView control
45. You need to store state data that is accessible to any user who connects to your Web application. Which object should you use?
Session
Application
Response.Cookies
Response.ViewState
46. Explain the significance of Server .MapPath
Returns the Virtual Path of the web folder
Maps the specified virtual path to Physical path
Returns the physical file path that corresponds to virtual specified path
All the above
47. _______ element in the web.config file to run code using the permissions of a specific user
< credential> element
< authentication> element
< authorization> element
< identity> element
48. For your ASP.NET web application your graphics designer created elaborate images that show the product lines of your company. Some of graphics of the product line are rectangular, circular, and others are having complex shapes. You need to use these images as a menu on your Web site. What is the best way of incorporating these images into your Web site?
Use ImageButton and use the x- and y-coordinates that are returned when the user clicks to figure out what product line the user clicked.
Use the Table, TableRow, and TableCell controls, break the image into pieces that are displayed in the cells, and use the TableCell control’s Click event to identify the product line that was click
Use the MultiView control and break up the image into pieces that can be displayed in each View control for each product line. Use the Click event of the View to identify the product line that was cl
Use an ImageMap control and define hot spot areas for each of the product lines. Use the PostBackValue to identify the product line that was clicked.
49. An ASP.NET page uses a Datagrid displays employee information.The Web application supports a large number of concurrent users, who will be saving data from the grid back to the database. It is important that the Web application doesn't overwhelm the Web Server.
Disable View State and don't use session state
Use View State
Use URL munging
Disable ViewState and use Session State
50. The host for ASP.NET Core web application is configured in _________ file?
Program.cs
Startup.cs
Middleware
none of the above
Submit