CLASS 8: LESSON 07 VISUAL BASIC COMMUNITY
CLASS 8: LESSON 07 VISUAL BASIC COMMUNITY
Section A
A. Fill
in the Blanks
1.
BASIC
2.
EVENTS
3.
VARIABLE
4.
CODE
5.
OPERATORS
6.
F5
B. State
true/false
1.
T
2.
F
3.
F
4.
T
5.
F
6.
T
C. Application
based
a.
She can use the msgbox control or a Label to
display the message on the screen.
b.
Dim Variable Name as Data Type
Section B
A. Multiple
Choice Questions:
1.
A. Visible
2.
A. Design Mode
3.
C. Solution Explorer
4.
B. Max Length
5.
A. Integer
6.
C. .VB
B. Answer
the following:
1.
A Text Box is used to receive input from the
user whereas a Label is used to display some text on the screen.
2.
Operators are special symbols used to perform
calculations, make comparisons and check logical conditions in a program.
Operators can be divided into three categories:
a. Arithmetic
Operators: It includes basic arithmetic operations
like addition, subtraction, multiplication, division, modulus operations,
increment, and decrement.
b.Relational Operators: It is used to compare two numbers by
checking whether they are equal or not, less than, less than or equal to,
greater than, greater than or equal to.
c. Logical
Operator: It refers to the Boolean values which can be expressed
as: Binary logical operations, which involves two variables: AND
and OR. & Unary logical operation: NOT
3.
Dim statement is used to declare a variable in
Visual basic.
Syntax: Dim Variable name As Data Type
For Example: The Dim Radius As Integer will create a
variable named as Radius to store the integer value.
4.
Properties window is used to set the properties
of forms and other controls placed in them. The properties window consists of
an object drop down list and a list of properties. The bottom section of the
properties window shows a description of the selected property.
5.
Event-driven programming is currently the
default paradigm in software engineering. As the name suggests, it uses events
as the basis for developing the software. These events can be something the
users are doing — clicking on a specific button, picking an option from
drop-down, typing text into a field, giving voice commands, or uploading a
video — or system-generated events such as a program loading. The
central idea of event-driven programming is that the application is designed to
react.
6.
Declaring a variable means reserving the memory
space for it. it is not required to declare a variable before using it. Whenever
Visual Basic encounters a new variable it assigns the default variable type and
value to it. This is called implicit declaration. Although this type of
declaration is easier for the user as it
gives control over the variables yet it is advisable to declare them
explicitly, which is called explicit declaration.
C. Identify
the controls:
a. Text Box
b.Label
c. Picture
Box
d.Pointer
Thankyou sir
ReplyDeleteWow
ReplyDelete