Multiple choice .net

Which below is specified by the DataMember Property?

  1. Connection object

  2. DataAdapter object

  3. Database field

  4. Database table

  5. Dataset object

Reveal answer Fill a bubble to check yourself
D Correct answer
Explanation

To answer this question, the user needs to know what the DataMember property is used for in the context of data access in .NET applications.

The DataMember property is used to specify the name of the database table or view that the data is retrieved from. Therefore, the correct answer is:

The Answer is: E. Database table

AI explanation

In ADO.NET data binding (e.g. DataGrid/DataList controls), the DataMember property specifies which table (or list) inside a bound DataSet the control should actually display, since a DataSet can contain multiple tables. Connection object, DataAdapter object, and Dataset object are distinct ADO.NET objects with no relation to naming a table for binding. 'Database field' is too granular — DataMember names a table, not an individual column, making 'Database table' the correct answer.