Tuesday, June 19, 2012

DotNet Interview Questions


 Web.config file is used...
 To store the global information and variable definitions for the application

The first event triggers in an aspx page is.
Page_Init() 



 Difference between Response.Write() andResponse.Output.Write().
 Response.Output.Write() allows you to write formatted output

 Which  method must be overridden in a custom control?
 The Render() method

How do we create a FileSystemObject?
Server.CreateObject("Scripting.FileSystemObject")

 Which  tool is used to manage the GAC?
GacUtil.exe 


 What class does the ASP.NET Web Form class inherit from by default?
System.Web.UI.Page 

 Caching type supported by ASP.Net?
Output Caching and  Data Caching

Why is Global.asax is used?
Implement application and session level events

 Which DLL translate XML to SQL in IIS?
SQLISAPI.dll

Default Session data is stored in ASP.Net.?
InProcess

Default scripting language in ASP.?
VBScript

How do you get information from a form that is submitted using the "post" method?
Request.Form

Which object can help you maintain data across users?
Application object

Which ASP.NET object encapsulates the state of the client?
Session object

Which object is used along with application object in order to ensure that only one process accesses a variable at a time?
Synchronize()

You can have only one Global.asax file per project.
Yes

 Which element in the web.config file to run code using the permissions of a specific user
< identity> element

 Which is a special subfolder within the windows folder that stores the shared .NET component.
GAC

Which property affects how the .Net Framework handles dates, currencies, sorting and formatting issues.
CurrentCulture

Where do we include the user lists for windows authentication?
 < authorization>

Where do we include the user lists for Form authentication?
< credential>

Which of the following authentication is best suited for a corporate network?
Windows

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

By default, code written with the Debug class is stripped out of release builds.
Yes

Which tests make sure that new code does not break existing code.
Unit tests

Which  is used to cache multiple responses for a single web form based on HTTP POST parameter or query string?
VaryByParams

No comments:

Post a Comment