πŸ§ͺ ASP.Net MCQ Quiz Hub

ASP.Net Mcq Question Set 2

Choose a topic to test your knowledge and improve your ASP.Net skills

_____is a property common in every validation control.





βœ… Correct Answer: 4

Using which type of stylesheet we can change the style of an element in the entire website?





βœ… Correct Answer: 2

Which of the following is the way to monitor the web application?





βœ… Correct Answer: 4

______ file apply settings to all ASP.NET applications





βœ… Correct Answer: 2

Which type of processing model does asp.net stimulate?





βœ… Correct Answer: 4

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





βœ… Correct Answer: 1

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





βœ… Correct Answer: 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?





βœ… Correct Answer: 2

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





βœ… Correct Answer: 3

What are the advantages of AJAX?





βœ… Correct Answer: 4

If you want to cache the page according to the browser, then what will you do?





βœ… Correct Answer: 3

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





βœ… Correct Answer: 3

Client-side validation is turned on by default. If you want that particular validation control should not validate at client side, what will you do?





βœ… Correct Answer: 1

A button control is located outside the UpdatePanel control. You need that a given button control outside of the UpdatePanel should cause the UpdatePanel to execute an update with partial update. What will you do to achieve this task?





βœ… Correct Answer: 3

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





βœ… Correct Answer: 3

Which one of the following HTTP verbs indicates that you are creating and writing a file on the Web server?





βœ… Correct Answer: 4

Which attribute is necessary for HTML control to work as a HTML server control?





βœ… Correct Answer: 1

MARS feature is disabled by default. What action you will perform in connection string to enable this feature?





βœ… Correct Answer: 1

Which control can be used to update only the portion of the page?





βœ… Correct Answer: 1

Which is the mandatory property for all validation controls?





βœ… Correct Answer: 1

Which object works on client side in state management system?





βœ… Correct Answer: 4

How many types of caching ASP.NET supports?





βœ… Correct Answer: 4

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





βœ… Correct Answer: 4

How will you add a TextBox control at runtime on the form? Choose the correct one.





βœ… Correct Answer: 1

You are creating an ASP.NET application for company CareerRide. You use form based authentication to validate users. You need to prevent unauthenticated users from accessing the application. What should you do?





βœ… Correct Answer: 1

What is the use of VaryByParam attribute in OutputCache directive?





βœ… Correct Answer: 3

Which control is required inside a content page to reference ContentPlaceHolder control inside the master page?





βœ… Correct Answer: 1

At which level Theme can be applied?





βœ… Correct Answer: 4

When user request a web page by entering Uniform Resource Locator (URL) then which method /verb/command is used in ASP.NET?





βœ… Correct Answer: 3

HTTP messages are typically sent between the Web server and Web browser using which Port number?





βœ… Correct Answer: 3

What type of data can Cookies store?





βœ… Correct Answer: 1

What are the different types of Session Mode in ASP.NET?





βœ… Correct Answer: 4

Which validation control in ASP.NET can be used to determine if the data is entered into a TextBox control is of type Currency?





βœ… Correct Answer: 2

CompareValidator control can be used for performing which task?





βœ… Correct Answer: 4

Match the following List 1 to List 2 a. Client-side navigation ---------------------- i. Server.Transfer b. Cross-page posting ------------------------- ii. Response.Redirect c. Client-side browser redirects ------------- iii. PostBackUrl d. Server-side transfer ------------------------- iv. HyperLink





βœ… Correct Answer: 1

You want to enable Page Output Caching in ASP.NET. What code you will write in ASPX page.





βœ… Correct Answer: 1

Choose the correct option according to given statements. Statement 1: Authentication is the process that determines the identity of a user. Statement 2: Authorization is the process of determining whether a user is permitted to access to any part of an application, or any particular resource. Statement 3: Authorization is the process that determines the identity of a user. Statement 4: Authentication is the process of determining whether a user is permitted access to any part of an application, or any particular resource.





βœ… Correct Answer: 1

What are the three main objects of DataSet?





βœ… Correct Answer: 3

On what object would you set the properties to create a primary key for a DataTable?





βœ… Correct Answer: 3

How many 'ScriptManager' control can be added on a ASP.NET web page?





βœ… Correct Answer: 1

Which property and method of the Page object do you use to register client script dynamically from code?





βœ… Correct Answer: 2

Match the following List 1 to List 2 a. Web Form -------------------------- i. .ascx b. Web User Control ---------------- ii. .asmx c. Web Service ---------------------- iii. .aspx





βœ… Correct Answer: 1

To create your application on a remote server which option you will choose in ASP.NET?





βœ… Correct Answer: 2

What is Multiple Active Result Sets (MARS)?





βœ… Correct Answer: 3

Which Data Provider gives the maximum performance when connect to SQL Server?





βœ… Correct Answer: 1

What are the client-side state management options that ASP.NET supports?





βœ… Correct Answer: 3

Which Session Mode stores session Information in Current Application Domain?





βœ… Correct Answer: 1

By default, when you use Page Output Caching, at what location page is cached?





βœ… Correct Answer: 3

Debug class is available in which namespace?





βœ… Correct Answer: 3

Match the following List 1 to List 2 a. Literal Control ----------------- i. SingleLine, MultiLine, Password b. Label Control ------------------ ii. CommandName c. TextBox Control -------------- iii. Convert to span tag in HTML d. Button Control ---------------- iv. PassThrough, Encode, Transform mode





βœ… Correct Answer: 1