27th
Mar
Asp.Net Mcq

Asp.Net Mcq

  • Admin
  • 27th Mar, 2021
  • 762 Followers

Asp.Net MCQ Quiz

Following are mostly asked Asp.net MCQ test that are designed for professionals like you to crack you interviews. You can take this Asp.net online test before appearing to you real interview. This Asp.net quiz there are around 30+ multiple choice questions on Asp.net with four options.

1) Which property of the session object is used to set the local identifier?

  • A. Item
  • B. LCID
  • C. SessionId
  • D. Key

2) How do you manage states in asp.net application

  • A. Application Objects
  • B. Viewstate
  • C. All of the above
  • D. Session Objects

3) The number of forms that can be added to a aspx page is.

  • A. 2
  • B. 1
  • C. More than 3
  • D. 3

4) What's the difference between Response.Write() andResponse.Output.Write()?

  • A. Response.Output.Write() allows you to flush output
  • B. Response.Output.Write() allows you to write formatted output
  • C. Response.Output.Write() allows you to stream output
  • D. Response.Output.Write() allows you to buffer output

5) Response.Output.Write() allows you to stream output

  • A. Assemblyname
  • B. All of the above
  • C. TagPrefix
  • D. Name space of the dll that is referenced
Download Free : Asp.Net Mcq PDF

6) When an .aspx page is requested from the web server, the out put will be rendered to browser in following format.

  • A. WML
  • B. XML
  • C. JSP
  • D. HTML

7) Which of the following languages can be used to write server side scripting in ASP.NET?

  • A. C-sharp
  • B. VB
  • C. C++
  • D. A and B

8) In ASP.NET the sessions can be dumped by using

  • A. Session.Dump
  • B. Session.Exit
  • C. None of the Above
  • D. Session.Abandon

9) Which method do you invoke on the DataAdapter control to load your generated dataset with data?

  • A. DataList
  • B. Load ( )
  • C. DataBind
  • D. Fill( )

10) What tags one need to add within the asp:datagrid tags to bind columns manually?

  • A. It is not possible to do the operation
  • B. Set AutoGenerateColumns Property to true on the datagrid tag
  • C. Set AutoGenerateColumns Property to false on the datagrid tag
  • D. Set AutomaunalColumns Property to true on the datagrid tag

11) Which of the following is TRUE about Windows Authentication in ASP.NET?

  • A. Role membership determined only by user programming
  • B. ASP.NET does not support Windows Authentication
  • C. None of the Above
  • D. Automatically determines role membership

12) Which of the following method is used to obtain details about information types of assembly?

  • A. None of the Above
  • B. GetType
  • C. GetTypes
  • D. Both A. and B.

13) The namespace within the Microsoft .NET framework which provides the functionality to implement transaction processing is ....................

  • A. System.Security
  • B. System.Diagnostics
  • C. System.Data
  • D. System.EnterpriseServices

14) The technique that allow code to make function calls to .NET applications on other processes and on other machines is

  • A. .NET Remoting
  • B. .NET RMT
  • C. None of the above
  • D. .NET Threading

15) Suppose a .NET programmer wants to convert an object into a stream of bytes then the process is called ______________ ?

  • A. Threading
  • B. RCW
  • C. AppDomain
  • D. Serialization

16) Which of the following method must be overridden in a custom control?

  • A. The Paint() method
  • B. The Control_Build() method
  • C. The default constructor
  • D. The Render() method

17) Difference between Response.Write() andResponse.Output.Write().

  • A. Response.Output.Write() allows you to buffer output
  • B. Response.Output.Write() allows you to flush output
  • C. Response.Output.Write() allows you to stream output
  • D. Response.Output.Write() allows you to write formatted output

18) How do we create a FileSystemObject?

  • A. Create("FileSystemObject")
  • B. Create Object:"Scripting.FileSystemObject"
  • C. Server.CreateObject("FileSystemObject")
  • D. Server.CreateObject("Scripting.FileSystemObject")

19) Which of the following tool is used to manage the GAC?

  • A. RegSvr.exe
  • B. GacSvr32.exe
  • C. GacMgr.exe
  • D. GacUtil.exe

20) What class does the ASP.NET Web Form class inherit from by default?

  • A. System.Web.UI.Form
  • B. System.Web.GUI.Page
  • C. System.Web.Form
  • D. System.Web.UI.Page

21) We can manage states in asp.net application using

  • A. Viewstate
  • B. Application Objects
  • C. Session Objects
  • D. All of the above

22) Attribute must be set on a validator control for the validation to work.

  • A. ControlToBind
  • B. ValidateControl
  • C. Validate
  • D. ControlToValidate

23) Caching type supported by ASP.Net

  • A. Output Caching
  • B. DataCaching
  • C. none of the above
  • D. a and b

24) What is used to validate complex string patterns like an e-mail address?

  • A. Extended expressions
  • B. Basic expressions
  • C. Irregular expressions
  • D. Regular expressions

25) File extension used for ASP.NET files.

  • A. .Web
  • B. .ASPX
  • C. None of the above
  • D. .ASP

26) An alternative way of displaying text on web page using

  • A. asp:listitem
  • B. asp:button
  • C. none of the above
  • D. asp:label

27) Which of the following is not a member of ADODBCommand object?

  • A. ExecuteScalar
  • B. ExecuteStream
  • C. ExecuteReader
  • D. Open

28) Which DLL translate XML to SQL in IIS?

  • A. SQLXML.dll
  • B. LISXML.dll
  • C. SQLIIS.dll
  • D. SQLISAPI.dll

29) Default Session data is stored in ASP.Net.

  • A. StateServer
  • B. Session Object
  • C. all of the above
  • D. InProcess

30) Default scripting language in ASP.

  • A. EcmaScript
  • B. PERL
  • C. JavaScript
  • D. VBScript

Leave A Comment :

Valid name is required.

Valid name is required.

Valid email id is required.

Related MCQ/Quiz

01st
Mar
Html MCQ
01st
Mar
WCF MCQ
01st
Dec
Kotlin MCQ
01st
Mar
IOS MCQ
01st
Mar
Docker MCQ