• +91 9971497814
  • info@interviewmaterial.com

Computer Interview Questions Answers

Asp.Net Interview Questions Answers

Question - 1 : - What type of code (server or client) is found in a Code-Behind class?

Answer - 1 : - The answer is server-side code since code-behind is executed on the server.  However, during the code-behind's execution on the server, it can render client-side code such as JavaScript to be processed in the clients browser.  But just to be clear, code-behind executes on the server, thus making it server-side code.

Question - 2 : - Which control would you use if you needed to make sure the values in two different controls matched?

Answer - 2 : - CompareValidator control.

Question - 3 : - What are the different types of caching?

Answer - 3 : -   Caching is a technique widely used in computing to increase performance by keeping frequently accessed or expensive data in memory. In context of web application, caching is used to retain the pages or data across HTTP requests and reuse them without the expense of recreating them. ASP.NET has 3 kinds of caching strategies Output Caching, Fragment Caching, Data Caching.

Question - 4 : - Describe the role of inetinfo.exe, aspnet_isapi.dll and aspnet_wp.exe in the page loading process ?

Answer - 4 : - inetinfo.exe is the Microsoft IIS server running, handling ASP.NET requests among other things. When an ASP.NET request is received (usually a file with .aspx extension), the ISAPI filter aspnet_isapi.dll takes care of it by passing the request to the actual worker process aspnet_wp.exe.

Question - 5 : - Whats MSIL, and why should my developers need an appreciation of it if at all?

Answer - 5 : - MSIL is the Microsoft Intermediate Language. All .NET compatible languages will get converted to MSIL.  MSIL also allows the .NET Framework to JIT compile the assembly on the installed computer. 

Question - 6 : - What’s the difference between Codebehind="MyCode.aspx.cs" and Src="MyCode.aspx.cs"?

Answer - 6 : - CodeBehind is relevant to Visual Studio.NET only. 

Question - 7 : -   Describe the difference between inline and code behind.

Answer - 7 : - : Inline code written along side the html in a page. Code-behind is code written in a separate file and referenced by the .aspx page

Question - 8 : - What’s the difference between Response.Write() and Response.Output.Write()?

Answer - 8 : -   Response.Output.Write() allows you to write formatted output.   

Question - 9 : - What are the various ways of securing a web site that could prevent from hacking etc ..

Answer - 9 : -   1) Authentication/Authorization 2) Encryption/Decryption 3) Maintaining web servers outside the corporate firewall. etc.,

Question - 10 : - Explain role based security ?

Answer - 10 : -   Role Based Security lets you identify groups of users to allow or deny based on their role in the organization.In Windows NT and Windows XP, roles map to names used to identify user groups. Windows defines several built-in groups, including Administrators, Users, and Guests.To allow or deny access to certain groups of users, add the <ROLES>element to the authorization list in your Web application's Web.config file.e.g. <AUTHORIZATION>< authorization >    < allow roles="Domain Name\Administrators" / >   < !-- Allow Administrators in domain. -- >    < deny users="*"  / >                            < !-- Deny anyone else. -- > < /authorization >

Computer Contributors

krishan
Rajeev Katiyar
Yes Baroda

Share your email for latest updates

Name:
Email:

Our partners