30.12.2013 Views

HUsing ADO.NET 2.0 with Microsoft Access Databases - Cengage ...

HUsing ADO.NET 2.0 with Microsoft Access Databases - Cengage ...

HUsing ADO.NET 2.0 with Microsoft Access Databases - Cengage ...

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

44 Appendix H Using <strong>ADO</strong>.<strong>NET</strong> <strong>2.0</strong> <strong>with</strong> <strong>Microsoft</strong> <strong>Access</strong> <strong>Databases</strong><br />

6. If the record pointer is positioned on record number five in a dataset, which<br />

of the following methods can be used to move the record pointer to record<br />

number four?<br />

a. GoPrevious()<br />

b. Move(4)<br />

c. MovePrevious()<br />

d. PositionPrevious<br />

7. SQL stands for .<br />

a. Select Query Language<br />

b. Semi-Quick Language<br />

c. Structured Quick Language<br />

d. Structured Query Language<br />

8. Which of the following will select the FName, MName, and LName fields<br />

from a table named tblNames?<br />

a. SELECT FName, MName, AND LName FROM tblNames<br />

b. SELECT FName, MName, OR LName FROM tblNames<br />

c. SELECT FName, MName, LName FROM tblNames<br />

d. None of the above.<br />

9. Which of the following will arrange the SocialNum field data in descending<br />

order? The field is contained in a table named PensionInfo.<br />

a. SELECT SocialNum FROM PensionInfo DESC<br />

b. SELECT SocialNum FROM PensionInfo ORDER BY<br />

SocialNum DESC<br />

c. SELECT SocialNum FROM PensionInfo WHERE SocialNum DESC<br />

d. None of the above.<br />

10. Which of the following will select only records that have the letter A in<br />

their Status field? The field is contained in the Worker table.<br />

a. SELECT Id, EmpName, Status FROM Worker WHERE Status =<br />

'A'<br />

b. SELECT Id, EmpName, Status FROM Worker ORDER BY Status =<br />

'A'<br />

c. SELECT Id, EmpName, Status FROM Worker FOR Status = “A”<br />

d. None of the above.<br />

Answers: 1) a, 2) b, 3) d, 4) d, 5) b, 6) c, 7) d, 8) c, 9) b, 10) a<br />

Appendix H C5779 39147 Page 44 07/10/06--JHR<br />

Review Questions<br />

1. A(n) is an organized collection of related information stored in a file<br />

on a disk.<br />

a. database<br />

b. field<br />

c. object<br />

d. record<br />

2. A database is one that stores information in tables.<br />

a. columnar<br />

b. relational<br />

c. sorted<br />

d. tabular

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!