Top 80+ Solved ASP.NET MCQ Questions Answer

From 31 to 45 of 52

Q. Which object data is included in bookmarks and e-mailed URLs?

a. ViewState

b. cookies

c. Query strings

d. session

  • c. Query strings

Q. Which Session Mode Serialization is not required to store the data?

a. Off

b. InProc

c. StateServer

d. SQLServer

  • b. InProc

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

  • c. Global.asax

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

  • b. Session_End

Q. Which Session Mode stores session Information in Current Application Domain?

a. InProc

b. StateServer

c. SQLServer

d. Off

  • a. InProc

Q. What are the client-side state management options that ASP.NET supports?

a. Application

b. Session

c. Querystring

d. schedule

  • c. Querystring

Q. What type of data can Cookies store?

a. String

b. DateTime

c. System.Int32

d. Data

  • a. String

Q. From the following which is not a valid state management object?

a. Querystate

b. Cookies

c. Application state

d. Hidden form fields

  • a. Querystate

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()

  • c. Session.Abondon()

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

  • b. Session Object

Q. Default Session data is stored in ASP.Net.

a. StateServer

b. Session Object

c. InProcess

d. Schedule object

  • b. Session 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.

  • c. Use DataViev object with each sort

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.

  • b. It is the type of column or data in SQL Server that the command expects.

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

  • d. Input, Output, InputOutput
Subscribe Now

Get All Updates & News