Filters
Question type

Study Flashcards

You can create a query in Visual Basic 2015 using a language feature called ____.


A) ASP
B) SQL
C) Java
D) Language-Integrated Query

E) C) and D)
F) A) and B)

Correct Answer

verifed

verified

Case 1 - MaidToOrder The database for a cleaning service company contains the following table, named tblCustomer, that includes customer invoice data. The InvoiceNum, CustomerNum, and InvoicePaid fields contain text. The InvoiceDate field contains dates. The InvoiceAmt field contains numbers.  InvoiceNum  CustomerNum  InvoiceDate  InvoiceAmt  InvoicePaid 6311302001/15/2013200.00Y6321541101/20/2013685.00Y6331000201/23/201375.00 N6341310401/23/2013150.00 N6351212401/26/201375.00Y6361332802/02/2013350.00Y6371020602/02/2013175.00 N6381033402/07/2013450.00Y\begin{array} { | l | l | l | l | l | } \hline \text { InvoiceNum } & \text { CustomerNum } & \text { InvoiceDate } & \text { InvoiceAmt } & \text { InvoicePaid } \\\hline 631 & 13020 & 01 / 15 / 2013 & 200.00 & \mathrm { Y } \\\hline 632 & 15411 & 01 / 20 / 2013 & 685.00 & \mathrm { Y } \\\hline 633 & 10002 & 01 / 23 / 2013 & 75.00 & \mathrm {~N} \\\hline 634 & 13104 & 01 / 23 / 2013 & 150.00 & \mathrm {~N} \\\hline 635 & 12124 & 01 / 26 / 2013 & 75.00 & \mathrm { Y } \\\hline 636 & 13328 & 02 / 02 / 2013 & 350.00 & \mathrm { Y } \\\hline 637 & 10206 & 02 / 02 / 2013 & 175.00 & \mathrm {~N} \\\hline 638 & 10334 & 02 / 07 / 2013 & 450.00 & \mathrm { Y } \\\hline\end{array} -You need to make sure the user of the application can add records but cannot delete any records.Which of the following needs to be performed?


A) Remove the Add new button from the TblCustomerBindingNavigator control.
B) Remove the Delete button from the TblCustomerBindingNavigator control.
C) Remove the Save button from the TblCustomerBindingNavigator control.
D) b and c

E) All of the above
F) None of the above

Correct Answer

verifed

verified

A group of related records is called a ____.


A) table
B) field
C) datagrid
D) primary key

E) All of the above
F) B) and C)

Correct Answer

verifed

verified

Writing LINQ Statements The tblBicycle table contains five fields: ItemNum, ItemName, Color, Price, and Quantity. The Price and Quantity fields are numeric; all other fields are text. The dataset name is BicycleDataSet. -Write a LINQ statement to select the records in descending order by the Quantity field.

Correct Answer

verifed

verified

Dim records = From b...

View Answer

Each column in a table represents a record and each row represents a field.

A) True
B) False

Correct Answer

verifed

verified

The controls connected to an object in a dataset are known as ____.


A) bound controls
B) navigator controls
C) tables
D) fields

E) B) and D)
F) A) and B)

Correct Answer

verifed

verified

Writing LINQ Statements The tblBicycle table contains five fields: ItemNum, ItemName, Color, Price, and Quantity. The Price and Quantity fields are numeric; all other fields are text. The dataset name is BicycleDataSet. -Write the statement needed to assign the contents of the records variable to the BindingSource object for the tblBicycle table.Explain why this should be done in an application.

Correct Answer

verifed

verified

TblBicycleBindingSource.DataSource = rec...

View Answer

Writing LINQ Statements The tblBicycle table contains five fields: ItemNum, ItemName, Color, Price, and Quantity. The Price and Quantity fields are numeric; all other fields are text. The dataset name is BicycleDataSet. -Write a LINQ statement to select all blue bicycles.Order the bicycles in ascending order by quantity.

Correct Answer

verifed

verified

Dim records = From bike In Bic...

View Answer

The ____ statement is used for exception handling in a procedure.


A) Try...Catch
B) LINQ
C) Order By
D) aggregate

E) A) and D)
F) None of the above

Correct Answer

verifed

verified

A(n) ____ stores information in tables composed of columns and rows,similar to the format used in a spreadsheet.


A) relational database
B) object
C) bound control
D) dataset

E) All of the above
F) C) and D)

Correct Answer

verifed

verified

Which of the following statements selects all of the records in the tblStudents table?


A) Dim records =Select student In tblStudents
B) Dim records =Select student From StudentsDataSet.tblStudents
C) Dim records =From student In StudentsDataSet.tblStudentsSelect student
D) Dim records =Select student In StudentsDataSet.tblStudentsFrom student

E) A) and B)
F) C) and D)

Correct Answer

verifed

verified

An error that occurs while an application is running is called a(n) ____.


A) logic error
B) runtime error
C) exception
D) message

E) B) and C)
F) A) and D)

Correct Answer

verifed

verified

The BindingSource object's ____ methods move the record pointer to the first,last,next,or previous record in the dataset.


A) Position
B) View
C) Move
D) Navigation

E) B) and C)
F) A) and B)

Correct Answer

verifed

verified

The following sample of code contains errors. Rewrite the incorrect statements to correct all errors -Private Sub btnNext_Click(ByVal sender As Object,ByVal e As System.EventArgs)Handles btnNext.Click ' moves to the next record TblClientBindingSource.MovePrevious() End Sub Private Sub btnPrevious_Click(ByVal sender As Object,ByVal e As System.EventArgs)Handles btnPrevious.Click ' moves to the previous record TblClientBindingSource.MoveNext() End Sub Private Sub btnDisplay_Click(ByVal sender As Object,ByVal e As System.EventArgs)Handles btnDisplay.Click ' displays all clients or ' specific clients for a certain state Const strPROMPT As String = "Enter one or more " & "letters.Leave blank to retrieve all records." Dim strSearch As String ' get user input strSearch = InputBox(strPROMPT,"Find State").ToUpper ' select the appropriate records Dim records = ClientDataSet.tblClient For client.State.ToUpper Like strSearch & "*" Select ' display the records TblClientBindingSource.DataSource = records End Sub

Correct Answer

verifed

verified

Private Sub btnNext_Click(ByVal sender A...

View Answer

The ____ object can be used to save to the database any changes made to the data contained in the DataSet.


A) TableAdapter
B) TblEmployBindingSource
C) BindingSource
D) DataGridView

E) B) and D)
F) B) and C)

Correct Answer

verifed

verified

A label,text box,or button can be added to the BindingNavigator control by accessing the control's task box and clicking ____.


A) AddNewItem
B) Properties
C) Insert Standard Items
D) Edit Items

E) B) and C)
F) A) and D)

Correct Answer

verifed

verified

Write the statements to move the record pointer to the first and last records in the dataset for the Customer table.

Correct Answer

verifed

verified

TblCustomerBindingSo...

View Answer

The ____ object provides the connection between the DataSet and the bound controls on the form.


A) TableAdapter
B) DataGridView
C) BindingSource
D) BindingNavigator

E) A) and B)
F) None of the above

Correct Answer

verifed

verified

The way Visual Basic saves changes to a local database file is determined by the file's ____ property.


A) BindingNavigator
B) Position
C) BindingSource
D) Copy to Output Directory

E) None of the above
F) B) and C)

Correct Answer

verifed

verified

A relational database can contain one or more tables.

A) True
B) False

Correct Answer

verifed

verified

Showing 41 - 60 of 60

Related Exams

Show Answer