ASP.net – MCQs

172 questions. Click to practice.

Correct options are highlighted when revealed.

1.Which method(s) can be utilized to retrieve information about the types defined in an assembly?

2.Which element in the web.config file allows code execution under the permissions of a designated user?

3.What will be displayed when the following code is executed? String a = "Hello"; String b = "World"; String c = a + b; Response.Write("C");

4.Which attribute must be assigned to a validator control to enable it to perform validation?

5.Which HTML element is replaced by the asp:dropdownlist> tag?

6.What is the purpose of the Request.MapPath() method?

7.When building an ASP.NET application that requires multiple security levels via secure login and is deployed on three web servers using round-robin load balancing, how should you manage the login state securely?

8.Which method enables code to invoke functions in .NET applications running in different processes or on separate computers?

9.Which of the following methods can be used to store ASP.NET session state?

10.What kind of code is typically contained within a Code-Behind class?

11.Which caching method is supported by ASP.Net?

12.Which utility is utilized for handling the Global Assembly Cache (GAC)?

13.Which type of authentication is most appropriate for use within a corporate network?

14.Which of these methods does not help in preserving state?

15.In IIS, which DLL is responsible for converting XML data into SQL queries?

16.Which base class is inherited by default by an ASP.NET Web Form class?

17.What is the primary purpose of the Web.config file in a web application?

18.Which object is used to preserve data shared among all users?

19.Which event occurs first during the lifecycle of an ASPX page?

20.How long do items stored in ViewState remain valid?