ASP .NET MCQ (Multiple Choice Questions)
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?
- HTTP
- TCP
- SMTP
- None of the above.
2) What are the types of cookies?
- Session cookies
- Persistent cookies
- Dummy cookies
- Options A and B are correct
3) What is the fully qualified name of the base class of all server controls?
- System.Web.UI.Control
- System.Web.UI
- System.Control
- 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?
- In App_Data folder
- In Web.config file
- In MasterPage file
- None of the above
5) What are the advantages of AJAX?
- AJAX is a platform-independent technology
- It provides partial-page updates
- Improved performance
- 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?
- Page_Load
- Page_Render
- Page_PreInit
- Page_PreRender
7) Which is the first event of the ASP.NET page, when the user requests a web page?
- PreLoad
- Load
- PreInit
- 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?
- IsCallback
- IsReusable
- IsValid
- IsPostBack
9) How will you specify the Cache Location?
- You can use browser settings to specify where a page is cached.
- You can use the Location attribute of the <%@ OutputCache %> directive to specify where a page is cached.
- You can use the Location attribute in QueryString to specify where a page is cached.
- None of the above.
10) How many types of authentication ASP.NET supports?
- Windows Authentication.
- .NET Passport Authentication.
- Forms Authentication.
- 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.