ADO .Net Quiz 2

ADO .Net Quiz 2

16 Questions Published

Questions

Question 1 Multiple Choice (Single Answer)

Which database is the ADO.NET SqlConnection object designed for?

  1. Access
  2. Microsoft SQL Server
  3. MySQL
  4. Oracle
  5. None of the above.
Question 2 Multiple Choice (Single Answer)

Which is not a tab on the DataLink Property window?

  1. Advanced
  2. All
  3. Adapter
  4. Connection
  5. Provider
Question 3 Multiple Choice (Single Answer)

What information is specified in the Connection tab of the DataLink window?

  1. Database login
  2. Database name
  3. Database type
  4. Both a and b.
  5. All of the above.
Question 4 Multiple Choice (Single Answer)

The first step of configuring a DataAdapter is to select:

  1. an adapter object.
  2. a connection object.
  3. a database object.
  4. a dataset object.
  5. None of the above.
Question 5 Multiple Choice (Single Answer)

Which DataAdapter Query Type can be used with the Access database?

  1. Use SQL statements.
  2. Create new stored procedure.
  3. Use existing stored procedure.
  4. Both a and b.
  5. All of the above.
Question 6 Multiple Choice (Single Answer)

Which is not an ADO.NET DataAdapter Object?

  1. OleDbDataAdapter
  2. SQLDataAdapter
  3. QueryDataAdapter
  4. Both a and b.
  5. All of the above.
Question 7 Multiple Choice (Single Answer)

Which is the appropriate prefix for a DataAdapter object?

  1. da
  2. daa
  3. dad
  4. dt
  5. dta
Question 8 Multiple Choice (Single Answer)

Which type of object has the Generate Dataset method?

  1. Adapter object
  2. Connection object
  3. Database object
  4. Dataset object
  5. None of the above.
Question 9 Multiple Choice (Single Answer)

Which is the appropriate prefix for a Dataset object?

  1. da
  2. das
  3. dat
  4. ds
  5. dst
Question 10 Multiple Choice (Single Answer)

Which object does the data-aware control bind to?

  1. Dataset
  2. DataAdapter
  3. Connection
  4. Both a and b.
  5. All of the above.
Question 11 Multiple Choice (Single Answer)

What is the proper code to put data into the dataset called CustomerDataset using the CustomerDataAdapter object?

  1. CustomerDataset.Fill(CustomerDataAdapter)
  2. CustomerDataAdapter.Fill(CustomerDataset)
  3. CustomerDataset.Load(CustomerDataAdapter)
  4. CustomerDataAdapter.Load(CustomerDataset)
  5. None of the above.
Question 12 Multiple Choice (Single Answer)

Which object contains the Position property of the current record in a dataset?

  1. BindingContext
  2. BindingData
  3. DataBinding
  4. DataBound
  5. DataContext
Question 13 Multiple Choice (Single Answer)

The first record in a dataset has a position property of:

  1. zero
  2. one
  3. any value defined by the programmer
  4. Both a and b
  5. All of the above
Question 14 Multiple Choice (Single Answer)

Which below is specified by the DataMember Property?

  1. Connection object
  2. DataAdapter object
  3. Database field
  4. Database table
  5. Dataset object
Question 15 Multiple Choice (Single Answer)

Which below is specified by the DataSource Property?

  1. Connection object
  2. DataAdapter object
  3. Database field
  4. Database table
  5. Dataset object
Question 16 Multiple Choice (Single Answer)

Which is a property of the DataGrid control?

  1. DataMember
  2. DataSource
  3. DataQuery
  4. Both a and b.
  5. All of the above.