ASP.NET solved MCQs

1 of 3

1. 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

2. 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

3. 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

4. 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

5. 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.

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

a. ExecuteScalar

B. ExecuteStream

c. Open

d. ExecuteReader

7. __________________ is a special subfolder within the windows folder that stores the shared .NET component.

a. /bin

B. GAC

c. Root

d. Sub

8. 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

9. 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

10. 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

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

a. Init

B. Load

c. Import

d. Message

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

a. @Register

B. @Control

c. @Reference

d. @Implements

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

a. App_Code

B. App_Data

c. Bin

d. App_LocalResources

14. 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

15. 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

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

a. IsCallback

B. IsReusable

c. IsValid

d. IsPostBack

17. If a user wants to create controls at runtime which event should be used to write code?

a. PreLoad

B. Load

c. Init

d. PreInit

18. What is the fully qualified name of the base class of all server controls?

a. System.Web.UI.Control

B. System.Web.UI

c. System.Control

d. All of the above

19. Which of the following are required to enable users to change the title of web part?

a. CatalogZone

B. TitleZone

c. EditorZone, AppearanceEditorPart

d. WebPart

20. What is Caspol?

a. Command line tool

B. Code access security policy tool

c. Case Tool

d. Command line tool & Code access security policy tool

21. What are the element of code access security?

a. Evidence,Permission

B. SQLSecurity

c. UserInterface

d. SQL Injection

22. What is the recommended method for securing sensitive connection string information?

a. Encrypting the data in the application configuration file

B. Using a code obfuscator

c. Using Integrated Security (Windows Authentication)

d. Querying the user for his or her credentials at run time

23. Windows-Based Authentication is well suited for ___________ .

a. Intranet environment

B. Public web site

c. Desktop application

d. system

24. Which of the following control provides a link for unauthenticated users to log on?

a. Login

B. LoginView

c. LoginStatus

d. LoginName

25. Where do we include the user lists for Form authentication?

a. < credential>

B. < authorization>

c. < Identity>

d. < authentication>

Jump to set ->
Featured Image
Tags

Question and answers in ASP.NET,

ASP.NET Multiple choice questions and answers,

Important MCQ of ASP.NET,

Solved MCQs for ASP.NET,

Download PDF for ASP.NET solved MCQs,

ASP.NET MCQ with answers PDF download