🧪 ADO.Net MCQ Quiz Hub

ADO.Net Multiple Choice Questions

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

What is the default value for the Method attribute in an ASP.NET server-side Form control





✅ Correct Answer: 2

Which property allows ASP.NET controls to maintain their values when a page is posted to itself.





✅ Correct Answer: 1

In an ASP.NET page, which is the best way to find if the contents of a TextBox has changed after the form containing the TextBox has been posted back to the server





✅ Correct Answer: 3

Which statement among the ones below is correct





✅ Correct Answer: 4

Which statement among the ones below is correct





✅ Correct Answer: 1

If a form is posted to a different page, the you can retrieve the values of the form elements by





✅ Correct Answer: 3

You are performing Form validations with Validation controls. You need to group all the errors at the top of the page and also show error messages besides each element. The messages besides each element need to be detailed and hence different from the messages at top of the page





✅ Correct Answer: 1

How do view states work





✅ Correct Answer: 2

You need to dynamically add a TextBox control to a page and display it at specific location





✅ Correct Answer: 2

You require to create an ASP.NET page with the functionality to allow a user to upload a file to the server





✅ Correct Answer: 3

You need to programmatically add a user control without using the Register directive in your code





✅ Correct Answer: 4

You need to develop a business component myComp.dll in .Net and use it in your ASP.NET page





✅ Correct Answer: 3

How is a ASP.NET presentation page associated with its code-behind





✅ Correct Answer: 3

Which namespace would you use if you need to create an ASP.NET application with Microsoft SQL Server 2000 as the database.





✅ Correct Answer: 2

Which namespace would you use if you need to create an ASP.NET application with Oracle as the database.





✅ Correct Answer: 3

Which statement among the following is correct while opening a connection using theSQLConnection class





✅ Correct Answer: 3

What method of the Command object would you use if you need to retrieve a single value (for example an aggregate value. from a database





✅ Correct Answer: 1

Which are the two things you need to take care of in your ASP.Net application to take advantage of connection pooling





✅ Correct Answer: 2

You have created a ASP.Net page Transaction by using





✅ Correct Answer: 2

You need to retrieve only schema information about the columns contained in a database table without retrieving data. Which of the following is the best way to retrieve it





✅ Correct Answer: 1

What will be the values assigned to the two Label controls lblMessage1 & lblMessage2 respectively





✅ Correct Answer: 3

You need to customize the display format of the DataList control





✅ Correct Answer: 3

You have a DataList control containing a LinkButton. What would you do to raise a theDeleteCommand event in the DataList by clicking on the LinkButton.





✅ Correct Answer: 1

The Products table has a column named ProductName and a primary key column namedProductID. When a user selects an item in the DataList, you want to retrieve the value of theProductID column associated with it.





✅ Correct Answer: 2

You need to enable paging for a DataGrid control





✅ Correct Answer: 2

Can you use a DataView to filter rows in a DataTable





✅ Correct Answer: 2

Which statement is an accurate description of the code below (dtsDataset is a DataSet. Cache(“myCachedDataSet”. = dstDataset





✅ Correct Answer: 1

How can you load an XML file directly into a DataSet





✅ Correct Answer: 3

Your site has been restructured and the paths of few pages have changed. Which method would you use to redirect users requesting for a pages using the old URL





✅ Correct Answer: 4

Which statement about the Web. Config file is the most accurate





✅ Correct Answer: 4

The settings in the Web. Config file can be configured to apply to





✅ Correct Answer: 3

Is there a way to prevent configuration settings in a Web. Config file from being overridden by aWeb.Config file located below it





✅ Correct Answer: 1

If you have an ASP.NET application with cookieless sessions enabled, which statement among the





✅ Correct Answer: 2

You are part of a team that is using Visual Studio .NET to develop a Web application. You have placed a number of configuration settings for the application in the server’s Machine.config file. You learn in a meeting that one of your co-workers has created a Web.config file to store these settings, though in comparing notes you realize that you and your co-worker have used different settings. Which of the following describes what will happen when you execute the application





✅ Correct Answer: 1

You are preparing to deploy an ASP.NET Web application. You are currently creating the deployment project. You have started the Web setup project, which is namedAccountManagerDeploy, and added the application output to the project, and now you need to set the directory on the Web server to which the application will be installed. Which of the following procedures should you use to do so (Choose two. Each correct answer presents part of the solution..





✅ Correct Answer: 4

You are using Visual Studio .NET to develop a Web application. You are beginning to debug your application, and you would like to store debug messages in the Windows event log as you proceed with testing. Which of the following will allow you to do so





✅ Correct Answer: 3

The XSLT processor copies the elements of the stylesheet until it finds a command in the format:





✅ Correct Answer: 2

What standard, protocol or language was generalized to become a standard protocol for sending messages of any type, using any protocol?





✅ Correct Answer: 1

Which of the following statements is not true about XML Schemas:





✅ Correct Answer: 4

The most popular way to materialize XML documents is to use:





✅ Correct Answer: 2

With XML:





✅ Correct Answer: 4

To eliminate definition duplication, XML Schemas define:





✅ Correct Answer: 2

What is not true about SOAP?





✅ Correct Answer: 4

XML Schemas consist of:





✅ Correct Answer: 2

The expression FOR XML RAW tells SQL Server to:





✅ Correct Answer: 1

ADO.NET provides the ability to create and process in-memory databases called:





✅ Correct Answer: 4

An XML component that defines the structure of a document is known as a(n.:





✅ Correct Answer: 2

HTML is an application of a more robust document markup language called:





✅ Correct Answer: 3

XSLT processors evaluate each statement in the context of the match that has been made. That is, XSLT processors are:





✅ Correct Answer: 1

The DTD begins with the word:





✅ Correct Answer: 3

What is not true about XML?





✅ Correct Answer: 1

If the XML data instance conforms to the DTD, the document is said to be:





✅ Correct Answer: 2

The document that is used by XSLT to indicate how to transform the elements of the XML document to another format is a(n.:





✅ Correct Answer: 3

If an XML document does not have a DTD, then by definition it is:





✅ Correct Answer: 1

Using Which Datasource Control Can Access Oracle DataBase ?





✅ Correct Answer: 3