VB Chapter 1 Review

VB Chapter 1 Review

Chapter 1 Review Terms and Questions

Do you know what these terms mean in reference to Visual Basic?

Name Caption Code Window CommandButton Comment Control Default Form Image Property Snap grid Tab Order TabIndex Handles Hard Copy Inherit Keyword Object Palette Pixel Project Explorer

Can you answer these Questions?

Typed: Courtesy of D. Campbell

VB Chapter 1 Review

1. Visual Basic is a full featured Programming language that can be used to develop

a) Stand-alone programs

b) Applets (programs capable of being sent over the Internet)

c) Controls

d) Other forms of programs and pieces of programs

e) all of the above

2. Regarding Visual Basic, which of the following is false:

  1. Visual Basic is extensively used as a tool to prototype applications.
  2. Visual Basic was the first BASIC language developed by Microsoft Corporation.
  3. Visual Basic is classed as a Rapid Application Development language.
  4. Visual Basic can be used to develop business applications.
  5. Windows is the host operating system for Visual Basic.
  1. Regarding Forms in Visual Basic, which of the following are true?
  1. Forms are placed upon controls.
  2. Forms are placed upon objects.
  3. Objects cannot be placed on controls with a Form.
  4. Forms are objects without controls
  5. Forms contain objects
  1. A textBox knows how to handle text placed in it because:
  1. Visual Basic only understands text.
  2. TextBoxes are Forms that allow text to be placed within them.
  3. Handling text is an inherited behavior.
  4. A TextBox processes only what text another control sends it.
  1. Regarding properties, which of the following is false?
  1. The behavior of any object is characterized by that object’s properties.
  2. Properties are listed in the properties window for each control and can be changed by the programmer.
  3. All objects have a Name, but not all objects have a Caption.
  4. Users are aware of the Name of an object.

6. What is false regarding the following Visual Basic instructions?

Begin VB. Form MyProgamOne

Caption= “My First Program”

LinkTopic= “Form1”

ScaleHeight= 3165

ScaleWidth= 4680

StartUpPosition= 3 ‘Windows Default

Begin VB. CommandButton cmdQuit

Caption= (Exit)

Height= 495

Left= 1560

TabIndex= 1

Top= 2520

Width= 1215

End

Begin VB. TextBox txtInputArea

Height= 1935

Left= 240

MultiLine = -1

ScrollBars= 2 ‘Vertical

TabIndex= 0

Top= 240

Width= 4095

End

  1. There are two controls on one Form.
  2. The CommandButton acts as an “end of program” button for the program.
  3. The TextBox possesses only one line.
  4. The CommandButton is named cmdquit.
  1. According to programming conventions in Visual “Basic, when setting properties:
  1. If MultiLine is True, the text is displayed in a window with word wrap.
  2. If the value of the MultiLine property in a project is set to –1, it is the equivalent of true.
  3. Numbers for setting the MultiLine property are based on a binary system.
  4. All of the above are correct.
  1. When saving a Form, what are the steps to ensure your work is saved properly?
  1. File  SaveForm 1 As  Save Project  Save
  2. File  Save File As  Form1.frm  Save Project
  3. File  Save Project As  Form1.frm  Save
  4. File  Save  As Form  Form1.frm

Fill-in-the-Blank

  1. Size, location, color, etc. are known as ______in Visual Basic.
  2. A screen that comes up when a program is opened, as is the case with Visual Basic, is known as a ______screen.
  3. By selecting ______under the Run menu or ______you can execute a Visual Basic program.
  4. The ______property is available for both Form and CommandButton objects.
  5. The Project Explorer not only keeps track of the different parts of a project, it serves as a ______between those parts.
  6. Visual Basic keywords are recognizable because they are colored ______.
  7. The final step in getting a program ready for distribution after it has been debugged and tested, is to make 1(n) ______from the project files.

True/False

  1. An object is something that relies upon other controls-subjects-for its Visual Basic functionality.
  2. Once an application is debugged and it runs, a programmer’s job is complete.
  3. EdgeMarkers are the eight little squares around the form that can be used to resize it. They also appear around controls located on the form.
  4. Line-by-line code execution is called sequence execution.
  5. Within the Visual Basic environment, comment lines are highlighted in red and are preceded by an apostrophe.

1

C:\TEMP\Chapt1Review.doc04/04/19Ruth MacKinnon