Loading, please wait...

A to Z Full Forms and Acronyms

ASP .NET MCQ (Multiple Choice Questions)

May 18, 2020 ASP.NET, .NET, C#, MCQ, 64405 Views
This article will help you to check most asked ASP.NET MCQ (Multiple Choice Questions).

Here in this article, I'll give you a quiz to solve for ASP.NET Multiple Choice Questions, and for the correct answers, you can scroll at last. So let's start this quiz.

1) Which protocol is used for requesting a web page in ASP.NET from the Web Server?

  1. HTTP
  2. TCP
  3. SMTP
  4. None of the above.

2) What are the types of cookies?

  1. Session cookies
  2. Persistent cookies
  3. Dummy cookies
  4. Options A and B are correct

3) What is the fully qualified name of the base class of all server controls?

  1. System.Web.UI.Control
  2. System.Web.UI
  3. System.Control
  4. All of the above

4) Which file you should write for the connection string so that you can access it in all the web pages for the same application?

  1. In App_Data folder
  2. In Web.config file
  3. In MasterPage file
  4. None of the above

5) What are the advantages of AJAX?

  1. AJAX is a platform-independent technology
  2. It provides partial-page updates
  3. Improved performance
  4. All of the above

6) You need to allow users to choose their own themes. In which page event will you write the user-selected theme?

  1. Page_Load
  2. Page_Render
  3. Page_PreInit
  4. Page_PreRender

7) Which is the first event of the ASP.NET page, when the user requests a web page?

  1. PreLoad
  2. Load
  3. PreInit
  4. Init

8) What is the name of the Page object’s property that determines if a Web page is being requested without data being submitted to the server?

  1. IsCallback
  2. IsReusable
  3. IsValid
  4. IsPostBack

9) How will you specify the Cache Location?

  1. You can use browser settings to specify where a page is cached.
  2. You can use the Location attribute of the <%@ OutputCache %> directive to specify where a page is cached.
  3. You can use the Location attribute in QueryString to specify where a page is cached.
  4. None of the above.

10) How many types of authentication ASP.NET supports?

  1. Windows Authentication.
  2. .NET Passport Authentication.
  3. Forms Authentication.
  4. All of the above.

Here are the correct answers:

Question 1: HTTP

Question 2: Options A and B are correct

Question 3: System.Web.UI.Control

Question 4: In Web.config file

Question 5: All of the above

Question 6: Page_PreInit

Question 7: PreInit

Question 8: IsPostBack

Question 9: You can use the Location attribute of the <%@ OutputCache %> directive to specify where a page is cached.

Question 10: All of the above.

A to Z Full Forms and Acronyms

Related Article