Top 80+ Solved ASP.NET MCQ Questions Answer
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
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
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
Q. 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?
a. IsCallback
b. IsReusable
c. IsValid
d. IsPostBack
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.
Q. Which of the following is not a member of ADODBCommand object?
a. ExecuteScalar
b. ExecuteStream
c. Open
d. ExecuteReader
Q. __________________ is a special subfolder within the windows folder that stores the shared .NET component.
a. /bin
b. GAC
c. Root
d. Sub
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
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
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
Q. To implement a specified .NET Framework interface which directive is used?
a. @Register
b. @Control
c. @Reference
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
Q. To create your application on a remote server which option you will choose in ASP.NET?
a. File System
b. FTP
c. HTTPS
d. TCP
Q. Which one of the following HTTP verbs indicates that you are creating and writing a file on the Web server?
a. POST
b. SET
c. GET
d. PUT