MCQ Flashcards

1
Q

Which method of the SqlDataReader class is used to read the next record?

A

Read()

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

What is the purpose of the ConnectionString property in ADO.NET?

A

To Configure Connection to a Database

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

What is the contents of a connections string?

A
  • The database server address
  • The dabase name
  • The user authentication inforamtion
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

Which command is used to add a parameter to an SqlCommand object?

A
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

Which command is used ot add a parameter to an SQlCommand object?

A

Add()

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

What does the Daset class represent in ADO.NET?

A

An in memory cache of data

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

What type of ADO.net object is used to execute a stored procedure?

A

SqlCommand object

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
8
Q

What is the purpose of the fill method of a DataAdapter?

A

to fill a Dataset with data

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
9
Q

What does the ExecuteReader method return?

A

an Sql Datareader object

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
10
Q

What object is used to represent a relationship between two tabless in a DataSet?

A

DataRelation

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
11
Q

What is the purpose of the AcceptChanges method in a DataSet?

A

To commit all changes made sice the lass AcceptCahnges called

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
12
Q

Which class class is used to retrive data from the database?

A

DataReader Class

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
13
Q

What is the pupose of the Sql Connection class?

A

To manage a connection to an Sql Server database

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
14
Q

Which method is used to open a connection to a databse?

A

.Open()

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
15
Q

Name a method NOT avalable on a DataAdapeter method?

A

Read

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
16
Q

What is the default isolation level in ADO.NET transactions?

A

ReadCommitted

17
Q

What does the ExecuteScalar Method return?

A

A single value

18
Q

Which method is used to execute a SQL statement against a connection and return the number of rows affected?

A

ExecuteNonQuery

19
Q

What is the purpose of the SqlCommand object?

A

To execute SQL statements against a database

20
Q

Which is the job of a DataRelation.

A

It relates two DataTable objects in a DataSet