Exam 14: Access Databases and Sql
Exam 1: An Introduction to Visual Basic 201560 Questions
Exam 2: Designing Applications60 Questions
Exam 3: Using Variables and Constants60 Questions
Exam 4: The Selection Structure59 Questions
Exam 5: More on the Selection Structure60 Questions
Exam 6: The Repetition Structure60 Questions
Exam 7: Sub and Function Procedures60 Questions
Exam 8: String Manipulation60 Questions
Exam 9: Arrays60 Questions
Exam 10: Structures and Sequential Access Files60 Questions
Exam 11: Classes and Objects60 Questions
Exam 12: Web Applications60 Questions
Exam 13: Working With Access Databases and Linq60 Questions
Exam 14: Access Databases and Sql60 Questions
Select questions type
You save a query that contains the SELECT statement by associating the query with one or more methods.
(True/False)
4.9/5
(35)
Case-Based Critical Thinking Questions Case 1 - LuvUrPet
The database for a pet supply company includes the following table, named tblCollar, that contains product data for pet collars. The ItemDesc and Color fields contain text. The ItemNum, Price, and Quantity fields contain numbers.
What method could be used to invoke the previous query during run time?

(Multiple Choice)
4.7/5
(34)
The statement SELECT YearWon FROM tblMovies WHERE Title = 'Chicago' selects the Chicago field from the YearWon record.
(True/False)
4.9/5
(36)
Case-Based Critical Thinking Questions Case 1 - LuvUrPet
The database for a pet supply company includes the following table, named tblCollar, that contains product data for pet collars. The ItemDesc and Color fields contain text. The ItemNum, Price, and Quantity fields contain numbers.
An application using the dataset should allow a user to type in a price to use to query the dataset. Which of the following clauses would allow a user to select the records for collars with a price of 15 or more?

(Multiple Choice)
4.7/5
(33)
An Insert query uses the ____ statement to add a record to a database.
(Multiple Choice)
4.9/5
(38)
You can use the ____ associated with a query to invoke the query during run time.
(Multiple Choice)
4.9/5
(34)
Because it is possible for an error to occur when saving data to a database, it's a good programming practice to place the Update method within the ____ block of a Try…Catch statement.
(Multiple Choice)
4.8/5
(34)
The FillByMake method is associated with a parameter query. Which of the following statements invokes the method and passes the contents of the txtMake control's Text property?
(Multiple Choice)
4.8/5
(41)
Click ____ on the shortcut menu to start the TableAdapter Query Configuration Wizard.
(Multiple Choice)
4.9/5
(40)
Problems - Correcting Logic and Code Errors
The following sample of code contains errors. Rewrite the incorrect statements to correct all errors.
' Delete a record from the dataset
Dim row As TextData
row = CustomerDataSet.tblCustomer.LookForCustID(3146)
Delete()
Try
TblCustomerTableAdapter.Save(CustomerDataSet.tblCustomer)
Catch ex As Exception
MessageBox.Show(ex.Message, "Delete record",
MessageBoxButtons.OK,
MessageBoxIcon.Information)
End Try
(Essay)
4.7/5
(35)
Members
The tblMembers table contains six fields. The LastName, FirstName, and MemberType fields contain text. The MemberID, JoinDate, and Fee fields contain numbers. The MemberType field contains one of the following letters: F for Family membership, A for one Adult membership, Y for one Youth membership, and S for one Senior membership.
Write a SQL SELECT statement that deletes member 42315 from the tblMembers table.
(Essay)
4.8/5
(33)
Most of the time, you will know in advance the values to include in the criteria of a query.
(True/False)
4.9/5
(34)
For the changes made to a dataset to be permanent, you need to save the changes to the database associated with the dataset.
(True/False)
4.8/5
(30)
Which of the following locates the record whose PartNum field contains KL542, and then assigns the record to the row variable?
(Multiple Choice)
5.0/5
(31)
Which of the following statements will delete the record associated with a DataRow variable named getRow ?
(Multiple Choice)
4.9/5
(28)
Showing 21 - 40 of 60
Filters
- Essay(0)
- Multiple Choice(0)
- Short Answer(0)
- True False(0)
- Matching(0)