This online chapter review is not for grading purposes but provides a good review of the chapters content. Answer all questions and submit this form. Upon submission you may consider printing the results frame.

1. Microsoft Windows uses GUI environment.  GUI (pronounced gooey) stands for

A. Geographical User Interchange.

B. Graphical User Interface.

C. Geometrical Upper Intelligence.

D. Grammatical User Incorporation.

2. Visual Basic is a(n)

A. procedural programming language.

B. object oriented programming language.

C. event driven programming language.

D. sequential programming language.

3. In Visual Basic we work with objects, which have

A. programmer preference.

B. projects and procedures.

C. actions and disciplines.

D. properties and methods.

4. When you write a Visual Basic program, you follow a three-step process which should begin with

A. Setting the properties.

B. Writing the Basic code.

C. Coding all of the remark statements.

D. Defining the user interface.

5. Each Visual Basic project consists of at least two files,

A. the project file and a form file called a form module.

B. the project file and a standard code module.

C. one file with the extension .VBP (or .MAK) and one file with the .FRM extension.

D. Both answers a and c are correct.

6. In order to feel confident that all of the files that belong to a Visual Basic project remain together when the project is copied or moved to another disk, you should

A. save all of the project files together in the same folder on your disk. 

B. use the same name for all of the objects in a project.

C. use separate floppy disks for each project file.

D. use remarks in the general declarations section of your project and list all of the files in the project.

7. The Visual Basic environment contains many different windows.  Which window will be the user interface when the project is running?

A. The Toolbox

B. The Project window

C. The Properties window

D. The Form window 

8. Assume that you want to add a control to a form, in which window in the Visual Basic environment would you get a command button?

A. The Toolbox

B. The Project window

C. The Properties window

D. The Form window

9. While you are creating the user interface you are in

A. stop time.

B. break time.

C. run time.

D. design time. 

10. If you encounter a run-time error or you pause the program execution, you are in

A. stop time.

B. break time.

C. run time.

D. design time.

11. If you have added a label to a form and you want to make sure that nothing is displayed in it when the program begins, you must delete the contents of the

A. Caption property.

B. Alignment property.

C. Name property.

D. Form window.

12. What is the code used to display the words “Visual Basic” in a label named lblTitle?

A. lblTitle.Name = “Visual Basic”

B. lblTitle.Name.Visual Basic

C. lblTitle.Caption = “Visual Basic”

D. “Visual Basic” = lblTitle

13. Where does the Caption property of a form appear?

A. In the lower left corner of the form.

B. In the form’s title bar.

C. In the center of the form.

D. In the Toolbox.

14. Remarks, or comments, that programmers add to their code in order to make the program more readable and understandable

A. are executable code.

B. are for program documentation only.

C. are not considered “executable”.

D. Both answers b and c are correct. 

15. Which of the following are coding conventions required by the textbook?

A. Remarks must be included in the general declarations section.

B. Every event procedure must include remarks, which describe the actions performed.

C. All statements between the Sub and End Sub must be indented.

D. All objects (except labels not referred to in code) must be named with a three-character prefix which identifies the object type.

E. All of the above. 

16. If a line of code is not considered “executable”, it must be

A. an End statement.

B. an Assignment statement.

C. a Remark statement.

D. an event procedure.

17. The code that is used in a sub procedure to stop execution of a program is:

A. Exit

B. Halt

C. End

D. End Sub

18. Which of the following choices can not be used to start running a project:

A. Press and hold the CTRL key and then press the S key.

B. Open the Run menu and choose Start.

C. Press the Start button on the toolbar.

D. Press F5.

19. Where would you find the programmer’s name and remarks defining the purpose of a project?

A. In Visual Basic Help.

B. In the event procedure for Printing the form.

C. In the general declarations section of a form module.

D. In the Project window.

20. What is the code that will print the current form on the printer?

A. PrintForm

B. Print

C. FormPrint

D. PrintScreen

21. If the code Eend is contained in a project________ .

A. it will cause a run-time error to occur.

B. it will cause a logic error to occur.

C. it will cause a compile error to occur.

D. it will not cause any error to occur during run time.

22. A project that halts during execution due to a misspelled name of an object or property, was halted due to a(n)

A. run-time error.

B. logic error.

C. compile error.

D. arithmetic error.

23. If a project runs, but the results are not correct, this is called a(n)

A. run-time error.

B. logic error.

C. compile error.

D. arithmetic error.

24. Finding and fixing programming errors is called

A. recoding.

B. debugging.

C. fix-its.

D. tuning.

25. A project in Visual Basic contains

A. form(s).

B. controls.

C. code.

D. all of the above

_________________________________________
Sujan Sarkar - CIS Instructor, Santa Rosa Junior College
Updated Monday January 17, 2011