ASP.Net MCQ Quiz Hub

ASP.Net Mcq Question Set 11

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

What attribute must be set on a validator control for the validation to work?





✅ Correct Answer: 4

Which of the following contains web application settings?





✅ Correct Answer: 2

What is default time of expire session?





✅ Correct Answer: 1

In Which Page Cycle All Controls Are Fully Loaded?





✅ Correct Answer: 1

The public methods and properties of a master page can be accessed in a content page by assigning a class name to the master page. Which directive can be used to assign a class name to the master page?





✅ Correct Answer: 2

What DataType is return in IsPostback property?





✅ Correct Answer: 2

Which method do you invoke on the Data Adapter control to load your generated dataset?





✅ Correct Answer: 1

Which of the following is not a valid statement in ASP.Net?





✅ Correct Answer: 3

How do you explicitly kill a user’s session ?





✅ Correct Answer: 3

Which data control does not exist in asp.net





✅ Correct Answer: 4

Which control would you use if you needed to make sure the values in two different controls matched?





✅ Correct Answer: 3

Which property on a Combo Box do you set with a column name, prior to setting the DataSource, to display data in the combo box?





✅ Correct Answer: 1

Difference between response.redirect and server.transfer.





✅ Correct Answer: 4

You have created a new ASP.Net web application. You build the solution in Visual Studio .Net. You notice that there is a /bin directory under the virtual directory. Which type of files should you place in this location?





✅ Correct Answer: 1

Which is not a validation control?





✅ Correct Answer: 3

When will a session be started in an application?





✅ Correct Answer: 3

Which control is used to sort the data and allow paging?





✅ Correct Answer: 3

What is the Web.config file used for?





✅ Correct Answer: 1

Which are the two properties of a Datagrid that has to be specified to turn on sorting and paging respectively?





✅ Correct Answer: 3

Which namespace is used when we connect our asp.net page to sql server





✅ Correct Answer: 1

Which of the following is not supported for IIS?





✅ Correct Answer: 2

The process in which a web page sends data back to the same page on the server is called?





✅ Correct Answer: 1

After capturing the SelectedIndexChanged event for a ListBox control, you find that the event handler doesn’t execute. What could the problem be?





✅ Correct Answer: 2

What’s the difference between Response.Write() and Response.Output.Write()?





✅ Correct Answer: 2

When the page processing cycle of ViewState is available?





✅ Correct Answer: 3

Which method do you invoke on the DataAdapter control to load your generated dataset with data?





✅ Correct Answer: 4

Can you edit data in the Repeater control?





✅ Correct Answer: 1

Which template must you provide, in order to display data in a Repeater control?





✅ Correct Answer: 2

What base class do all Web Forms inherit from?





✅ Correct Answer: 1

. Advantages of WCF over Web Services? (Windows communication Foundation)





✅ Correct Answer: 4

. what is its lifetime of a Static variable?





✅ Correct Answer: 2

What is the root namespace for all types?





✅ Correct Answer: 2

An abstract class is one in which methods are defined but an object of this class cannot be instantiated. This type of a class can only be derived but cannot be instantiated.





✅ Correct Answer: 1

What is a Managed Data ?





✅ Correct Answer: 1

Viewstate is the mechanism that automatically saves the values of the page's items just after rendering the page. It stores items added to a page’s ViewState property as hidden fields on the page.





✅ Correct Answer: 2

Application domain is a way in CLR to maintain a boundary between various applications to ensure that they do not interfere in working of any other application.





✅ Correct Answer: 1

Singleton architecture is to be used when all the applications have to use or share same data.





✅ Correct Answer: 1

Which statements are correct about asp.net AJAX ?





✅ Correct Answer: 4

Can We Pass parameter to Crystal Report (.rpt) File ?





✅ Correct Answer: 1

Which property common in every validation control?





✅ Correct Answer: 3

An organization has developed a web service in which the values of the forms are validated using ASP.NET application.Suppose this web service is got and used by a customer then in such a scenario which of the following is TRUE





✅ Correct Answer: 1

How many types of cookies are there?





✅ Correct Answer: 2

What’s the .NET collection class that allows an element to be accessed using a unique key?





✅ Correct Answer: 2

What’s the top .NET class that everything is derived from?





✅ Correct Answer: 1

What is the event that is fired when an unhandled exception is encountered within the application?





✅ Correct Answer: 2

If cookies are not enabled at browser end does form Authentication work?





✅ Correct Answer: 2

Can you prevent your class from being inherited by another class?





✅ Correct Answer: 1

What are WebMethod attribute properties





✅ Correct Answer: 4

You are developing an asp.net page for www.abc.com , in that page you need to provide an option to redirect to a web page that is in www.def.com. Which method you should use to perform the task





✅ Correct Answer: 4

Team foundation is a ________ tier architecture





✅ Correct Answer: 3