Dear Readers, Welcome to ASP.Net Objective Questions have been designed specially to get you acquainted with the nature of questions you may encounter during your Job interview for the subject of ASP.Net. These objective type ASP.Net questions are very important for campus placement test and job interviews. As per my experience good interviewers hardly plan to ask any particular question during your Job interview and these model questions are asked in the online technical test and interview of many IT companies.
A. HTMLForms
B. Webforms
C. Winforms
Ans: Webforms
A. Configures the time that the server-side codebehind module is called
B. To store the global information and variable definitions for the application
C. To configure the web server
D. To configure the web browser
Ans: To store the global information and variable definitions for the application
A. LinkCounter
B. Counter
C. AdRotator
D. File Access
Ans: LinkCounter
A. Page_Init()
B. Page_Load()
C. Page_click()
Ans: Page_Init()
A. Response.Output.Write() allows you to buffer output
B. Response.Output.Write() allows you to write formatted output
C. Response.Output.Write() allows you to flush output
D. Response.Output.Write() allows you to stream output
Ans: Response.Output.Write() allows you to write formatted output
A. The Paint() method
B. The Control_Build() method
C. The default constructor
D. The Render() method
Ans: The Render() method
A. Server.CreateObject("Scripting.FileSystemObject")
B. Create("FileSystemObject")
C. Create Object:"Scripting.FileSystemObject"
D. Server.CreateObject("FileSystemObject")
Ans: Server.CreateObject("Scripting.FileSystemObject")
A. RegSvr.exe
B. GacUtil.exe
C. GacSvr32.exe
D. GacMgr.exe
Ans: GacUtil.exe
A. System.Web.UI.Page
B. System.Web.UI.Form
C. System.Web.GUI.Page
D. System.Web.Form
Ans: System.Web.UI.Page
A. Session Objects
B. Application Objects
C. Viewstate
D. All of the above
Ans: All of the above
A. ControlToValidate
B. ControlToBind
C. ValidateControl
D. Validate
Ans: ControlToValidate
A. Output Caching
B. DataCaching
C. a and b
D. none of the above
Ans: a and b
A. Extended expressions
B. Basic expressions
C. Regular expressions
D. Irregular expressions
Ans: Regular expressions
A. .Web
B. .ASP
C. .ASPX
D. None of the above
Ans: .ASP
A. asp:label
B. asp:listitem
C. asp:button
Ans: asp:label
A. Declare Global variables
B. Implement application and session level events
C. No use
Ans: Implement application and session level events
A. ExecuteScalar
B. ExecuteStream
C. Open
D. ExecuteReader
Ans: Open
A. SQLISAPI.dll
B. SQLXML.dll
C. LISXML.dll
D. SQLIIS.dll
Ans: SQLISAPI.dll
A. StateServer
B. Session Object
C. InProcess
D. all of the above
Ans: InProcess
A. EcmaScript
B. VBScript
C. PERL
D. JavaScript
Ans: VBScript
A. Request.QueryString
B. Request.Form
C. Response.write
D. Response.writeln
Ans: Request.Form
A. Application object
B. Session object
C. Response object
D. Server object
Ans: Application object
A. Session object
B. Application object
C. Response object
D. Server object
Ans: Session object
A. Synchronize
B. Synchronize()
C. ThreadLock
D. Lock()
Ans: Synchronize()
A. RegularExpressionValidator
B. CompareValidator
C. equals() method
D. RequiredFieldValidator
Ans: CompareValidator
A. InProc
B. StateServer
C. SQL Server
D. All of the above
Ans: All of the above
A. View state
B. Cookies
C. Hidden fields
D. Request object
Ans: Request object
A. Yes
B. No
Ans: Yes
A. < credential> element
B. < authentication> element
C. < authorization> element
D. < identity> element
Ans: < identity> element
A. /bin
B. GAC
C. Root
Ans: GAC
A. requestQueue limit
B. maxWorkerThreads
C. maxIdThreads
D. All
Ans: All
A. SQLDataReader
B. Data Set
Ans: SQLDataReader
A. MMC Event viewers
B. Performance logs
C. Alerts Snap-ins
D. ALL
Ans: ALL
A. CurrentUICulture
B. CurrentCulture
Ans: CurrentCulture
A. < Credential>
B. < authorization>
C. < identity>
D. < authentiation>
Ans: < authorization>
A. < credential>
B. < authorization>
C. < Identity>
D. < authentication>
Ans: < credential>
A. Windows
B. Form
C. User
D. All
Ans: Windows
A. DLLImport Attributes
B. ComVisible attributes
C. COM Interop
D. All
Ans: ComVisible attributes
A. Yes
B. No
Ans: Yes
A. Regression tests
B. Integration tests
C. Unit tests
D. Load test
Ans: Integration tests
A. RMT
B. CLR
C. RCT
D. RC
Ans: CLR
A. Page.User.Identity
B. Page.User.IsInRole
C. Page.User.Name
D. None of the Above
Ans: Page.User.Identity
A. Serialization
B. Garbage Collection
C. Assemblies
D. Overriding
Ans: Garbage Collection
A. Session objects
B. Application objects
C. ViewState
D. All the Above
Ans: All the Above
A. Master Page
B. Page Class
C. Session Class
D. None of the Above
Ans: Page Class
A. Web Server Description Language
B. Web Server Descriptor Language
C. Web Services Description Language
D. Web Services Descriptor Language
Ans: Web Services Description Language
A. Set the DataSource property
B. Call the DataBind method
C. Both A. and B.
D. None of the Above
Ans: Both A. and B.
A. ASP.NET applications run without a Web Server
B. ASP+ and ASP.NET refer to the same thing
C. ASP.NET is a major upgrade over ASP
D. None of the Above
Ans: None of the Above
A. Server.Transfer
B. Response.Redirect
C. Both A. and B.
D. None of the Above
Ans: Server.Transfer
A. DataList
B. GridView
C. CompareValidator
D. Listview
Ans: CompareValidator
A. System.Web.Mail.MailMessage
B. System.Web.Mail.SmtpMail
C. Both A. and B.
D. None of the Above
Ans: Both A. and B.
A. Normal
B. AboveNormal
C. Highest
D. All the Above
Ans: All the Above
A. Reflection
B. Enumeration
C. Binding
D. Serialization
Ans: Reflection
A. < deny >
B. < allow >
C. Both A. and B.
D. None of the Above
Ans: Both A. and B.
A. Server-side code
B. Client-side code
C. Both A. and B.
D. None of the above
Ans: Server-side code
A. CLR
B. RCT
C. RCW
D. GAC
Ans: CLR
A. inetinfo.exe
B. aspnet_isapi.dll
C. aspnet_wp.exe
D. None of the Above
Ans: aspnet_wp.exe
A. Response.Write()
B. Response.Output.Write()
C. Both A. and B.
D. None of the Above
Ans: Response.Output.Write()
A. ControlToValidate property
B. Text property
C. Both A. and B.
D. None of the Above
Ans: Both A. and B.
A. One
B. Two
C. None
D. Many
Ans: Many
A. One must override the method ReceiveMessage
B. One must override the method InitializeMethod
C. Both A. and B.
D. One must override the method ProcessMessage
Ans: One must override the method ReceiveMessage
A. AlternatingItemTemplate
B. DataSource
C. ColorValidator
D. None of the Above
Ans: AlternatingItemTemplate
A. Serialization
B. Threading
C. RCW
D. AppDomain
Ans: Serialization
A. .NET Threading
B. .NET Remoting
C. .NET RMT
D. None of the above
Ans: .NET Threading
A. System.EnterpriseServices
B. System.Security
C. System.Diagnostics
D. System.Data
Ans: A
A. GetTypes
B. GetType
C. Both A. and B.
D. None of the Above
Ans: Both A. and B.
A. Automatically determines role membership
B. Role membership determined only by user programming
C. ASP.NET does not support Windows Authentication
D. None of the Above
Ans: Automatically determines role membership
A. Set AutoGenerateColumns Property to false on the datagrid tag
B. Set AutoGenerateColumns Property to true on the datagrid tag
C. It is not possible to do the operation
D. Set AutomaunalColumns Property to true on the datagrid tag
Ans: Set AutoGenerateColumns Property to false on the datagrid tag
A. Load ( )
B. Fill( )
C. DataList
D. DataBind
Ans: Fill( )
A. Session.Dump
B. Session.Abandon
C. Session.Exit
D. None of the Above
Ans: Session.Abandon
A. C-sharp
B. VB
C. C++
D. A and B
Ans: D
A. HTML
B. XML
C. WML
D. JSP
Ans: A
A. < asp:label >
B. < asp:listitem >
C. < asp:button >
Ans: A
A. Page_Load()
B. Page_Init()
C. Page_click()
Ans: B
A. Winforms
B. HTMLForms
C. Webforms
Ans: C
A. System.web.UI.Page
B. System.Windows.Page
C. System.Web.page
Ans: A
A. Fill( )
B. ExecuteQuery( )
C. Read( )
Ans: A
A. Add Tag prefix, Tag name
B. Add Source, Tag prefix
C. Add Src, Tagprefix, Tagname
Ans: C
A. User controls are displayed correctly in the Visual Studio .NET Designer
B. Custom controls are displayed correctly in VS.Net Designer
C. User and Custom controls are displayed correctly in the Visual Studio .NET Designer.
Ans: C
A. TagPrefix
B. Name space of the dll that is referenced
C. Assemblyname
D. All of the above
Ans: B
A. System.Web.UI.Webcontrol
B. System.Web.UI.Customcontrol
C. System.Web.UI.Customcontrols.Webcontrol
Ans: D
A. Scripting is separated from the HTML, Code is interpreted seperately
B. Scripting is separated from the HTML, Code is compiled as a DLL, the DLLs can be executed on server
C. Code is separated from the HTML and interpreted Code is interpreted separately
Ans: C
A. Response.Output.Write() allows you to flush output
B. Response.Output.Write() allows you to buffer output
C. Response.Output.Write() allows you to write formatted output
D. Response.Output.Write() allows you to stream output
Ans: B
A. Implement application and session level events
B. Declare Global variables
C. No use
Ans: C
A. True
B. False
Ans: A
A. .Asmx
B. .Ascx
C. .Aspx
Ans: A
A. IsPostBack is a method of System.UI.Web.Page class
B. IsPostBack is a method of System.Web.UI.Page class
C. IsPostBack is a readonly property of System.Web.UI.Page class
Ans: B
A. 1
B. 2
C. 3
D. More than 3
Ans: C
A. Session Objects
B. Application Objects
C. Viewstate
D. All of the above
Ans: A
A. SessionId
B. LCID
C. Item
D. Key
Ans: D
A. Output Caching
B. DataCaching
C. a and b
D. none of the above
Ans: B
A. InProcess
B. StateServer
C. Session Object
D. al of the above
Ans: C
A. Event-driven
B. Static
C. Linear
D. Topdown
Ans: A
A. Yes
B. No
Ans: A
A. SQLISAPI.dll
B. SQLXML.dll
C. LISXML.dll
D. SQLIIS.dll
Ans: A
A. 1
B. 10
C. 20
D. More than 30
Ans: A
A. Datalist
B. DropdownList
C. Repeater
D. Datagrid
Ans: C
A. Session.Close( )
B. Session.Discard( )
C. Session.Abandon
D. Session.End
E. Session.Exit
Ans: C
A. ExecuteReader
B. ExecuteScalar
C. ExecuteStream
D. Open
E. CommandText
Ans: C
A. System.Data.Interfaces
B. System.Data.Common
C. System.Data
D. System.Data.Connection
Ans: D
A. The DetailsView control
B. The Table control
C. The GridView control
D. The FormView control
Ans: The GridView control
A. Include the authentication element.
B. Include the authorization element.
C. Include the identity element.
D. Include the deny element.
Ans: Include the authorization element.
A. Session
B. Application
C. Response.Cookies
D. Response.ViewState
Ans: Application
A. Returns the Virtual Path of the web folder
B. Maps the specified virtual path to Physical path
C. Returns the physical file path that corresponds to virtual specified path
D. All the above
Ans: Returns the physical file path that corresponds to virtual specified path
A. < credential> element
B. < authentication> element
C. < authorization> element
D. < identity> element
Ans: < identity> element
A. MMC Event viewers
B. Performance logs
C. Alerts Snap-ins
D. ALL
Ans: ALL
A. 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.
B. 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 clicked.
C. 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 clicked.
D. 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.
Ans: 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.
A. Disable View State and don't use session state
B. Use View State
C. Use URL munging
D. Disable ViewState and use Session State
Ans: Disable View State and don't use session state
A. LinqDataSource
B. ObjectDataSource
C. SqlDataSource
D. XmlDataSource
Ans: LinqDataSource
A. Anonymous
B. Windows
C. Basic Authentication
D. None
Ans: Anonymous