Placement papers on ASP.NET - Set 3

Placement papers on ASP.NET - Set 3


1. By default, a .Net web site is configured with which of the following authentication types?

Anonymous
Basic
Digest
Integrated Windows authentication
a and d
View Answer / Hide Answer

ANSWER: a and d




2. Validation events of server controls occur before the page is post back to the server.

True
False
View Answer / Hide Answer

ANSWER: True




3. Name the ASP.NET object that is used to get information about the web servers.

The Application object
The Server object
The Response object
The Request object
View Answer / Hide Answer

ANSWER: The Server object




4. Which one of the following is used to validate an e-mail address pattern?

Extended expressions
Irregular expressions
Regular expressions
None
View Answer / Hide Answer

ANSWER: Regular expressions




5. Explain the significance of Server .MapPath

Returns the Virtual Path of the web folder
Maps the specified virtual path to Physical path
Returns the physical file path that corresponds to virtual specified path
All the above
View Answer / Hide Answer

ANSWER: Returns the physical file path that corresponds to virtual specified path




6. What attributes do you use to hide a public .Net class from COM?

DLLImport Attributes
ComVisible attributes
COM Interop
All
View Answer / Hide Answer

ANSWER: ComVisible attributes




7. For separating server-side code from client-side code on a ASP.NET page, what programming model should you use?

Separation model
Code-Behind model
In-Line model
ClientServer model
View Answer / Hide Answer

ANSWER: Code-Behind model




8. To perform asynchronous data access, what must be added to the connection string?

BeginExecute=true
MultiThreaded=true
MultipleActiveResultSets=true
Asynchronous=true
View Answer / Hide Answer

ANSWER: Asynchronous=true




9. How to implement authentication via web.config?

Include the authentication element.
Include the authorization element.
Include the identity element.
Include the deny element.
View Answer / Hide Answer

ANSWER: Include the authorization element.




10. In the Design view in Visual Studio 2005 of an ASP.NET web page, what is the easiest way to create an event handler for the default event of a ASP.NET server control?

Open the code-behind page and write the code.
Right-click the control and select Create Handler.
Drag an event handler from the ToolBox to the desired control.
Double-click the control.
View Answer / Hide Answer

ANSWER: Double-click the control.


Post your comment