Top 80+ Solved ASP.NET MCQ Questions Answer
Q. Which object data is included in bookmarks and e-mailed URLs?
a. ViewState
b. cookies
c. Query strings
d. session
Q. Which Session Mode Serialization is not required to store the data?
a. Off
b. InProc
c. StateServer
d. SQLServer
Q. Which object in ASP.NET provides a global storage mechanism for state data that needs to be accessible to all pages in a given Web application?
a. Session
b. Application
c. ViewState
d. cache
Q. Which file is used to write the code to respond to the Application_Start event?
a. Any ASP.NET web page with an .aspx extension
b. Web.config
c. Global.asax
d. Web.UI
Q. When a User’s Session times out which event should you respond to?
a. Application_Start
b. Session_End
c. Session_Start
d. Application_End
Q. Which Session Mode stores session Information in Current Application Domain?
a. InProc
b. StateServer
c. SQLServer
d. Off
Q. What are the client-side state management options that ASP.NET supports?
a. Application
b. Session
c. Querystring
d. schedule
Q. From the following which is not a valid state management object?
a. Querystate
b. Cookies
c. Application state
d. Hidden form fields
Q. To kill a users session explicitly which of the following will you use?
a. Session.Close()
b. Session.End()
c. Session.Abondon()
d. Session.Discard()
Q. What ASP.NET object encapsulates the state of the client and the browser?
a. Application Object
b. Session Object
c. Response Object
d. Request Object
Q. Default Session data is stored in ASP.Net.
a. StateServer
b. Session Object
c. InProcess
d. Schedule object
Q. If you are using the DataSet and you have to display the data in sorted order what will you do?
a. Use Sort method of DataTable
b. Use Sort method of DataSet
c. Use DataViev object with each sort
d. Use datapaging and sort the data.
Q. How do you determine the actual SQL data type of a SqlParameter (the type expected by the SQL Server)?
a. It is the .NET Framework data type in your application that the parameter represents.
b. It is the type of column or data in SQL Server that the command expects.
c. It is the type of column in a DataTablethat it represents.
d. It is any type defined in the SqlDbDataTypeenumeration.
Q. What are the three primary kinds of parameters?
a. Input, Integer, String
b. Integer, String, DateTime
c. int, varchar, nvarchar
d. Input, Output, InputOutput