🧪 ASP.Net MCQ Quiz Hub

ASP.Net Mcq Question Set 1

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

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?





✅ Correct Answer: 4

______ is the DataType return in IsPostback property.





✅ Correct Answer: 2

When does Garbage collector run?





✅ Correct Answer: 1

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





✅ Correct Answer: 3

What happens in the Init event of a page?





✅ Correct Answer: 2

Which one of the following has a parameter called as “preserveForm”?





✅ Correct Answer: 1

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





✅ Correct Answer: 2

If we want to add graphics using asp.net which of the following web control will you use?





✅ Correct Answer: 2

What is/are true about master page? Choose the correct option.





✅ Correct Answer: 4

Which of the following statements about referencing master page methods and properties is true?





✅ Correct Answer: 4

How many types of authentication ASP.NET supports?





✅ Correct Answer: 4

Which of the following is the default authentication mode for IIS?





✅ Correct Answer: 1

You use the ASP.NET Web Site Administration Tool to configure ASP.NET membership with forms authentication. What should you name your login form so that you do not have to modify the Web.config file?





✅ Correct Answer: 1

What are the types of cookies?





✅ Correct Answer: 4

Default Session data is stored in ASP.Net.





✅ Correct Answer: 3

Which session modes stores session Information in Current Application Domain?





✅ Correct Answer: 1

Choose the correct option about the Integrated Security property of connection object.





✅ Correct Answer: 3

In which file you should write the connection string, so you can access it in all the web page for same application?





✅ Correct Answer: 2

How will you specifying the Cache Location?





✅ Correct Answer: 2

Which of these data source controls do not implement Caching?





✅ Correct Answer: 1

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





✅ Correct Answer: 2

____is the first method that is fired during the page load.





✅ Correct Answer: 4

What is a web application running on multiple servers called?





✅ Correct Answer: 4

What property do you modify on a server control to minimize the size of the ViewState data?





✅ Correct Answer: 2

A web page has lots of input data, and you want the data input to be spread across multiple screens. What is the best control to use to implement this solution on a single Web page?





✅ Correct Answer: 3

ASP.NET validation controls works (handle validation) at





✅ Correct Answer: 3

There is a button on page name cancel and it should bypass validation when cancel button is clicked. What will you do?





✅ Correct Answer: 2

Which of the following is a valid skin code inside a skin file?





✅ Correct Answer: 2

What is/are the advantages of master page?





✅ Correct Answer: 4

How to implement authentication via web.config?





✅ Correct Answer: 2

Windows-Based Authentication is well suited for.





✅ Correct Answer: 1

If any user has disabled cookies in their browsers, what can you do to enable them to use forms authentication?





✅ Correct Answer: 3

What ASP.NET object encapsulates the state of the client and the browser?





✅ Correct Answer: 2

In ASP.NET what are the different types of session mode available?





✅ Correct Answer: 4

To kill a users session explicitly which of the following will you use?





✅ Correct Answer: 3

Which control is required of every AJAX page to manage the JavaScript files sent to the client and the communication between client and server?





✅ Correct Answer: 2

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





✅ Correct Answer: 3

Which ado.net class provide disconnected environment?





✅ Correct Answer: 2

What data type is returned when calling the ExecuteScalar method of a command object?





✅ Correct Answer: 2

How many types of Cache Dependencies are available in ASP.NET?





✅ Correct Answer: 1

In order to prevent a browser from caching a page which of these xstatements should be written?





✅ Correct Answer: 1

You need to programmatically configure page output caching. Which object would you use?





✅ Correct Answer: 2

What are the Command Object Methods?





✅ Correct Answer: 4

To perform asynchronous data access, what must be added to the connection string?





✅ Correct Answer: 4

A Master Page contains a ScriptManager control and a user wants the AJAX functionality on content page then which control is necessary on content page.





✅ Correct Answer: 3

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





✅ Correct Answer: 3

From the following which is not a valid state management object?





✅ Correct Answer: 1

Where do we include the user lists for Form authentication?





✅ Correct Answer: 1

By default, a .Net web site is configured with which of the following authentication types?





✅ Correct Answer: 4

Validation events of server controls occur before the page is post back to the server.





✅ Correct Answer: 1