Download Backup of Chap4ReviewQuestions.wbk

Survey
yes no Was this document useful for you?
   Thank you for your participation!

* Your assessment is very important for improving the workof artificial intelligence, which forms the content of this project

Document related concepts

Serializability wikipedia , lookup

Microsoft Access wikipedia , lookup

Oracle Database wikipedia , lookup

IMDb wikipedia , lookup

Microsoft SQL Server wikipedia , lookup

Entity–attribute–value model wikipedia , lookup

Navitaire Inc v Easyjet Airline Co. and BulletProof Technologies, Inc. wikipedia , lookup

Open Database Connectivity wikipedia , lookup

Ingres (database) wikipedia , lookup

Extensible Storage Engine wikipedia , lookup

Concurrency control wikipedia , lookup

Database wikipedia , lookup

Microsoft Jet Database Engine wikipedia , lookup

Relational model wikipedia , lookup

Clusterpoint wikipedia , lookup

ContactPoint wikipedia , lookup

Database model wikipedia , lookup

Transcript
VB Chapter 4 Review
Multiple Choice
1.
A database created with Visual Basic
a. Contains structured information designed for use and retrieval.
b. Involves using such common elements as IMAPI services.
c.
Can be developed into a spreadsheet.
d. Organizes information at run-time.
2.
Databases are essential for organizing information, however, programmers should keep in
mind
a. All databases should be flat-file in nature if at all possible.
b. Flat-file databases are typical of large, corporate databases.
c.
Flat-file databases can be error-prone and inefficient.
d. Flat-file databases are preferable since they do not use data tuping.
3.
Typically large-sized databases
a. Allow for user-defined fields and data elements at run-time.
b. Involve automatically deleting old information as it becomes outdated.
c.
Most involve the use of a powerful server computer upon which the data resides.
d. Fewer, if any, use clients to obtain and maintain data input.
4.
When designing a database, it is important to know that
a. All Microsoft databases involve a buffer and dial-up services.
b. Microsoft Access can only handle one database at a time.
c.
A dynaset is a dynamic set of records.
d. Structured Query Language is used to program spreadsheets.
5.
Databases are typically divided into sections:
a. Front end, back end, middleware, and dial-up.
b. Front end, middleware, back end.
c.
Front end, client, server, middleware.
d. Client, server, middleware, and dial-up.
6.
What can accurately be said of the following Visual Basic code:
Private Sub txtFAX_Change()
If Trim(txtFAX.Text) = “” Then
ChkFAX.Value = 0
TxtFAX.Visible = False
1
Else
ChkFAX.Value = 1
TxtFAX.Visible = True
End If
End Sub
Private Sub txtEMail_Change()
If Trim(txtEMail. Text) = “” Then
ChkEMail.Value = 0
TxtEMail.Visible = False
Else
ChkEMail.Value = 1
TxtEMail.Visible = True
End If
End Sub
a. If the user types go in the E-mail TextBox, then the textbox will remain visible.
b. If Fax TextBox = 0 then “” will appear.
c.
If anything other than “” is in the Fax TextBox, it will become visible.
d. The E-mail TextBox will always remain invisible.
7.
When starting a Jet database engine, the procedure is:
a.
b.
c.
d.
8.
Regarding Recordsets in Visual Basic, which of the following is true:
a. The set of current records that are selected when the DataControl is bound to the database
by the DatabaseName and RecordSource properties is the RecordSet.
b. They can be manipulated by the DataControl.
c.
They have properties and methods.
d. The underlying set of records can be changed within the Recordset.
e. All of the above.
Fill-in-the-Blanks
1.
A table of rows and columns can form a _Flat File_________ database.
2.
When programming and designing a database, programmers should keep in mind
__scalability________ which plans for the eventual growth in information a database may
potentially handle in the future.
2
3.
When sorting through errors in an application, if at all possible, a programmer should click on
the __debug_______ button to find the error’s location in the code.
4.
In order to crop the spaces surrounding a string input, use the __trim______ function.
5.
A (n) __index_______ is a list of record locations of records inside a database.
6.
Specific entries, typically called __records_______, are rows in a table of a flat-file database.
7.
What gets placed between the parentheses of a function is said to be the function’s
____argument______.
True/False
1.
Whatever lies at the intersection of a row and a column is known as an Index. False –a
database element
2. The Variant data type is good for storing data that must convert between text and integers. True
3. The Recordset of a database is an object. True
4. The command Left(“Hello” , 4) produces the string “lo.” False –“ Hell”
5. When a program runs on more than one platform it is said to be “interoperable.” False – it is
said to be “cross-platform”
Other Questions
1.
Write out the code to generate a user input dialog box with a message of Please give me your phone
Phone = InputBox(“Please give me your phone”)
2.
What is the purpose of the txtName.SetFocus line in this sub-routine?
Private Sub cmdAddRecord_Click()
Data1.RecordSet.AddNew
txtName.SetFocus
End Sub
The sursor’s position is re-located to the Name textbox to add a new record.
3.
4.
5.
Describe the process of hooking a data control to a textBox
Describe the process of hooking a database to a data control
What happens to the Event sub-routine when the control that “owns” that code is deleted?
The object will not be visible and none of the code is carried out. For example if you remove the Stop command
button after you insert the code, the button will not be visible when you run the project and you will not have
that way of ending the project.
3