The following ASP.NET MCQs have been compiled by our experts through research, in order to test your knowledge of the subject of ASP.NET. We encourage you to answer these multiple-choice questions to assess your proficiency.
Please continue by scrolling down.
A. root directory of bootable drive
B. windows directory
C. application root directory
D. application / bin directory
A. Session Objects
B. Application Objects
C. Viewstate
D. (all of these)
A. Winforms
B. Webforms
C. HTMLForms
A. .Ascx
B. .Asmx
C. .Aspx
A. runat
B. text
C. name
D. bgcolor
A. Programming Language
B. Server Side Technology
A. ExecuteCommand()
B. Pause()
C. Start()
D. Stop()
A. Yes
B. No
A. MVC 4
B. MVC 2
C. MVC 3
D. MVC 1
A. Bin
B. App_Code
C. App_GlobalResources
D. App_Data
A. Runat = "Server"
B. ID = "TextBox2"
C. ClientID = "TextBox1"
D. RunatServer = "True"
A. validatecontrol
B. ControlToValidate
C. controltobind
D. validate
A. .ascx
B. .aspx
C. .asax
D. .asmx
A. it will not point to any location
B. points to the location where your project stored
C. there is no such function in asp.net
D. points to C:\\My Documents\Microsoft Visual Studio folder
A. Equals() method
B. RegularExpressionValidator
C. CompareValidator
D. Required Field Validator
A. Page.Init()
B. Page.Load()
C. Page.OnLoad()
D. Page.PreInit()
A. aspdotnetdatabaase
B. aspnetdb
C. aspdotnetdb
D. netdb
A. VB.NET
B. Managed C++
C. Java
D. C#, J#
E. COBOL.NET, Perl.NET
A. Only Session State Service
B. (all of these)
C. Only In-Process storage
D. Only SQL Server
A. 20 ns
B. 20 min
C. 10ns
D. 10min
E. 1 hr
A. <identity impersonate = "true" />
B. <setImpersonate = "true" />
C. <impersonate = "true" />
D. <identity setImpersonate = "true" />
A. in cookies
B. in session variables
C. in the HTML hidden fields.
D. query string
E. in database
A. Page.Load
B. PreLoad
C. Init
D. PreInit
A. No
B. Yes
A. Delegates
B. Arrays
C. Nullable Types
D. Indexers
A. async=true on page directive, RegisterAsyncTask in page load and async method
B. async method
C. TaskFactory.StartNew(method1)
D. async=true on page directive
A. return an async Task
B. return an async Task from controller action while awaiting within the method
C. return an async Task from controller action
D. Register async controller action in Global.asax
A. Only in .NET 4.5
B. Only MVC and Web Forms, not Web API
C. Yes
D. No
A. not possible
B. @Html.AntiForgeryToken() in View
C. @Html.AntiForgeryToken() in View and ValidateAntiForgeryToken attribute on controller action
D. Web.Config app setting AntiForgeryToken true
A. XML
B. All of these
C. xVx
D. ATOM Pub
A. False
B. True
A. ThreadLock
B. Synchronize()
C. Lock() and UnLock()
A. System.Web.UI.Page.Culture
B. System.Web.Locale
C. System.Web.UI.Page.User
D. System.Web.UI.Page.Locale
A. True
B. False
A. Root
B. /bin
C. GAC
A. None of the above
B. Parent is the immediate node a level above, Ancestors is all nodes all levels above.
C. Parent is the immediate node a level above, Ancestors is all nodes above and below.
D. Parent is the immediate node below, Ancestors is all nodes above and below.
A. INamingContainer
B. IExtenderCtonrol
C. IDataKeysControl
D. IDataItemContainer
A. Runtime error
B. Yes
C. It will not compile if there is no web.config file
D. No
A. Only in .NET 4+
B. No
C. Only if LabelTest.Text is changed in following events before PreRender
D. Yes
A. Controller
B. Mvc Handler
C. Routing
D. View Engine
E. Action Execution
A. Session Object
B. InProcess
C. StateServer
A. Culture and Locale
B. Keyword and Description
C. MetaKeyword and MetaDescription
D. Culture and Description
A. ILDASM.dll
B. ILDASM.inc
C. ILDASM.exe
D. ILDASM.aspx
A. SQL Server
B. Inproc
C. None
D. StateServer
A. By setting the EnableClientScript property to false
B. by setting CauseValidation to false
C. By setting ValidateClientScript to false
D. By setting EnableScripting to false
E. By setting ValidateScripting to false
A. Need for REST
B. Need for XML
C. Need for metadata
D. Need for SOAP
A. web
B. page
C. import
D. register
A. 20
B. 1
C. more than 30
D. 10
A. Change sessionstate mode to InProc
B. Change the property type to HashSet
C. Add the Serializable attribute to Custom class
D. All of these will work
A. System.Environment.UserName
B. System.UserName
C. System.Environment.User
D. System.Environment.GetUserName