Set - 8

Question 6 :

The namespaces needed to use data mechanisms in ASP.NET pages are
* System.Data, System.Data.OleDb or System.Data.SQL
* System.Data, System.Data.ODBC
* System.Data, System.Data.DataRow
* System.Data.DataRowCollection, System.Data.DbType

Answer :

System.Data, System.Data.OleDb or System.Data.SQL


Question 7 :

What are the different methods to access Database in .NET ?
* OleDB,ODBC,SQLClient
* OleDB, JDBC, SQLServer
* ODBC-JDBC, DataSet, SQLClient
* Datasource, DataSet, DSN

Answer :

OleDB,ODBC,SQLClient


Question 8 :

The two properties of a DataGrid that has to be specified to turn on sorting and paging respectively are
* EnableSorting = "true" and EnablePaging = "true"
* DisableSorting = "false" and DisablePaging = "false"
* AllowSorting = "true" and AllowPaging = "true"
* Sorting = "true" and Paging = "true"

Answer :

AllowSorting = "true" and AllowPaging = "true"


Question 9 :

Which one of the following objects is used to create a foreign key between two DataTables?
* DataRelation
* DataRelationship
* DataConstraint
* DataKey

Answer :

DataRelation


Question 10 :

The Syntax for data-binding expressions is
* <%# property or collection %>
* <%# property or collection #%>
* <%$ property or collection %>
* <%@ property or collection %>

Answer :

<%# property or collection #%>