Question
Multiple Choices
You are developing a card game for F54 with the following code segment.
The GetAnimals() method must meet the following requirements:
- Connect to a Microsoo SQL Server database.
- Create Animal objects and populate them with data from the database.
- Return a sequence of populated Animal objects.
-
A. Insert the following code segment at line 16:
while(sqlDataReader.NextResult())
-
B. Insert the following code segment at line 13:
sqlConnecton.Open())
-
C. Insert the following code segment at line 13:
sqlConnecton.BeginTransacton())
-
D. Insert the following code segment at line 16:
while(sqlDataReader.GetValues())
-
E.
Insert the following code segment at line 16:
while(sqlDataReader.Read())