Grade 7 Unit 5
Grade 7 Unit 5
a. Title Bar: The title bar at the top of the window displays the title of the project.
Menu Bar: The menu bar consists of many drop-down menus. Clicking on any option of the menu
bar makes it active.
Form Window: The Form window is the primary work area that forms the background of the
application. The user can place objects on the form.
Toolbox: The Toolbox contains the controls. Controls are GUI components that can be added to the form.
d. After declaring a variable using the Dim statement, one can assign a value to it using an assignment
statement. The general format of an assignment statement is:
Variable = Expression or Constant
For example:
A = 100 or
A = B * C
e. The arithmetic operators used in Visual Basic are: Addition (+), Subtraction (-), Multiplication (*), Exponent
(^)Division (/), Integer Division (\), and Modulus (Mod).
f. Below are a few points that show the usefulness of event driven programming:
• Programmes can be written and altered easily
• Tools can be selected from the tool bar directly
• Makes programming easier through its predictive feature–the software predicts
what the programme is going to type
uses loops code written between Private Sub and End Sub