đź§Ş ADO.Net MCQ Quiz Hub

ADO.Net Multiple Choice Questions

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

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




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




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




4. Which statement among the ones below is correct




5. Which statement among the ones below is correct




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




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




8. How do view states work




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




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




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




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




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




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




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




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




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




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




19. You have created a ASP.Net page Transaction by using




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




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




22. You need to customize the display format of the DataList control




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




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




25. You need to enable paging for a DataGrid control




26. Can you use a DataView to filter rows in a DataTable




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




28. How can you load an XML file directly into a DataSet




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




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




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




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




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




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




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




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




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




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




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




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




41. With XML:




42. To eliminate definition duplication, XML Schemas define:




43. What is not true about SOAP?




44. XML Schemas consist of:




45. The expression FOR XML RAW tells SQL Server to:




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




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




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




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




50. The DTD begins with the word:




51. What is not true about XML?




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




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




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




55. Using Which Datasource Control Can Access Oracle DataBase ?