Top 80+ Solved ASP.NET MCQ Questions Answer

From 1 to 15 of 52

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

a. In App_Data folder

b. In Web.config file

c. In MasterPage file

d. None of the above

  • b. In Web.config file

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

a. Page_Load

b. Page_Render

c. Page_PreInit

d. Page_PreRender

  • c. Page_PreInit

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

a. PreLoad

b. Load

c. PreInit

d. Init

  • c. PreInit

Q. How will you specify the Cache Location?

a. You can use browser settings to specify where a page is cached.

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

c. You can use the Location attribute in QueryString to specify where a page is cached.

d. None of the above.

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

Q. Which of the following is not a member of ADODBCommand object?

a. ExecuteScalar

b. ExecuteStream

c. Open

d. ExecuteReader

  • c. Open

Q. Which file contains settings for all .NET application types, such as Windows, Console, ClassLibrary, and Web applications?

a. Web.config

b. Machine.config

c. Global.asax

d. System .config

  • b. Machine.config

Q. Which programming model should you implement if you want to separate your server-side code from your client-side layout code in a Web page?

a. Single-file model

b. Code-behind model

c. Inline model

d. Client-server model

  • b. Code-behind model

Q. You want to make a configuration setting change that will affect only the current Web application. Which file will you change?

a. Global.asax

b. Web.config in the root of the Web application

c. Machine.config

d. System.config

  • b. Web.config in the root of the Web application

Q. Which of the following is not an ASP.NET page event?

a. Init

b. Load

c. Import

d. Message

  • c. Import

Q. To implement a specified .NET Framework interface which directive is used?

a. @Register

b. @Control

c. @Reference

d. @Implements

  • d. @Implements

Q. In ASP.NET application DLL files are stored in which folder?

a. App_Code

b. App_Data

c. Bin

d. App_LocalResources

  • c. Bin
Subscribe Now

Get All Updates & News