Deck 3: Introduction to Visual Basic Programming

Full screen (f)
exit full mode
Question
Syntax errors are indicated only when you compile a program.
Use Space or
up arrow
down arrow
to flip the card.
Question
All variables must be declared with a name and a data type before they can be used in a program.
Question
A Form's _________ event occurs just before the Form is displayed on the screen,typically as a result of executing the program.

A)Display
B)Raised
C)Execute
D)Load
Question
You insert comments in your programs to document and improve the readability of your code.
Question
A directs a user to take a specific action.

A)declaration
B)error
C)prompt
D)None of the above.
Question
Variable declarations can begin with:

A)Declare
B)Dim
C)Dec
D)As
Question
A Textbox's _________ property can be used to change the text that's displayed in a Textbox.

A)Content
B)String
C)Data
D)Text
Question
A comment in Visual Basic begins with:

A)*/
B)'
C)//
D)\\
Question
Data types already defined in Visual Basic,such as String and Integer,are known as .

A)Constant data types
B)Pre data types
C)Primitive data types
D)Standard data types
Question
_________ are violations of language rules.

A)Logic errors
B)Syntax errors
C)Run-time errors
D)None of the above.
Question
Visual Basic is case sensitive;therefore,an identifier named Pencil is not the same as one named pencil.
Question
The following pair can be used to begin and end a method declaration:

A)Sub,End Sub
B)Open Sub,Close Sub
C)Pro,End Pro
D)Procedure,End Procedure
Question
What does IntelliSense help you do?

A)Detect errors
B)Simplify writing code
C)Compile your code
D)a and c
Question
The .exe file extension indicates that the file is _________.

A)extensible
B)executable
C)existent
D)extinct
Question
Which operator performs string concatenation?

A)&
B)@
C)%
D)#
Question
Which of the following is a valid declaration in Visual Basic?

A)Int number
B)Dim Integer number
C)Dim number = Integer
D)Dim number As Integer
Question
A binary operator has _________ operand(s).

A)one
B)two
C)zero or one
D)two or fewer
Question
Which of the following is not true about GUIs?

A)GUIs allow users to interact visually with programs.
B)A GUI gives a program a distinctive look and feel.
C)Scrollbars are always present in GUIs.
D)GUIs are built from GUI controls called widgets.
Question
When the user interacts with a GUI component,the interaction,known as a(n)_________,causes the program to perform a task by "calling" a method.

A)driver
B)action
C)event
D)cause
Question
Which of the following is not a valid identifier?

A)Start
B)AboutForm
C)modFirst Welcome
D)value4
Question
Which of the following is in highest-to-lowest order of operator precedence?

A)multiplication,division,exponentiation
B)addition,subtraction,division
C)exponentiation,multiplication,addition
D)None of the above.
Question
When you drag a control across a Form,_________ appear to help you position the control with respect to the Form's edges and other controls.

A)edge lines
B)guide lines
C)position lines
D)snap lines
Question
You can change a control's variable name by selecting the control and modifying its _________ property.

A)Id
B)Name
C)Tag
D)Alias
Question
The != operator compares two numbers to determine if they are not equal.
Question
The + is the string concatenation operator in Visual Basic.
Question
Whenever a value is placed in a memory location,the previous value is saved so that it can be restored later.
Question
Arithmetic expressions in Visual Basic must be written in straight-line form.
Question
A declaration may declare only one variable at a time.
Question
The fractional part in integer division is stored in a variable declared automatically at run-time.
Question
An assignment statement assigns a variable to a value.
Question
Which of the following represents the "is equal to" equality operator:

A)=
B)!=
C)=!
D)==
Question
Binary operators require two operands.
Question
Set a Label's _________ property to Fixed3D to give the Label a three-dimensional appearance.

A)BorderStyle
B)BorderDepth
C)BorderShading
D)BorderPerspective
Question
The expression between the words If and Then is called a:

A)condition
B)clause
C)operator
D)controller
Question
An assignment statement is evaluated left-side first.
Question
The event is a TextBox's default event.

A)TextEntered
B)Click
C)Load
D)TextChanged.
Question
Every variable has a .

A)type
B)size
C)value
D)All of the above.
Question
The statement allows a program to make a decision based on the truth or falsity of some condition.

A)If…Then
B)Test
C)Whether
D)None of the above.
Question
Which of the following represents modulus arithmetic?

A)Mod
B)/
C)%
D)^
Question
When a value is read from a memory location,the value in that location is retained.
Question
Using redundant parentheses in a complex expression is a wasteful practice.
Unlock Deck
Sign up to unlock the cards in this deck!
Unlock Deck
Unlock Deck
1/41
auto play flashcards
Play
simple tutorial
Full screen (f)
exit full mode
Deck 3: Introduction to Visual Basic Programming
1
Syntax errors are indicated only when you compile a program.
False
2
All variables must be declared with a name and a data type before they can be used in a program.
True
3
A Form's _________ event occurs just before the Form is displayed on the screen,typically as a result of executing the program.

A)Display
B)Raised
C)Execute
D)Load
D
4
You insert comments in your programs to document and improve the readability of your code.
Unlock Deck
Unlock for access to all 41 flashcards in this deck.
Unlock Deck
k this deck
5
A directs a user to take a specific action.

A)declaration
B)error
C)prompt
D)None of the above.
Unlock Deck
Unlock for access to all 41 flashcards in this deck.
Unlock Deck
k this deck
6
Variable declarations can begin with:

A)Declare
B)Dim
C)Dec
D)As
Unlock Deck
Unlock for access to all 41 flashcards in this deck.
Unlock Deck
k this deck
7
A Textbox's _________ property can be used to change the text that's displayed in a Textbox.

A)Content
B)String
C)Data
D)Text
Unlock Deck
Unlock for access to all 41 flashcards in this deck.
Unlock Deck
k this deck
8
A comment in Visual Basic begins with:

A)*/
B)'
C)//
D)\\
Unlock Deck
Unlock for access to all 41 flashcards in this deck.
Unlock Deck
k this deck
9
Data types already defined in Visual Basic,such as String and Integer,are known as .

A)Constant data types
B)Pre data types
C)Primitive data types
D)Standard data types
Unlock Deck
Unlock for access to all 41 flashcards in this deck.
Unlock Deck
k this deck
10
_________ are violations of language rules.

A)Logic errors
B)Syntax errors
C)Run-time errors
D)None of the above.
Unlock Deck
Unlock for access to all 41 flashcards in this deck.
Unlock Deck
k this deck
11
Visual Basic is case sensitive;therefore,an identifier named Pencil is not the same as one named pencil.
Unlock Deck
Unlock for access to all 41 flashcards in this deck.
Unlock Deck
k this deck
12
The following pair can be used to begin and end a method declaration:

A)Sub,End Sub
B)Open Sub,Close Sub
C)Pro,End Pro
D)Procedure,End Procedure
Unlock Deck
Unlock for access to all 41 flashcards in this deck.
Unlock Deck
k this deck
13
What does IntelliSense help you do?

A)Detect errors
B)Simplify writing code
C)Compile your code
D)a and c
Unlock Deck
Unlock for access to all 41 flashcards in this deck.
Unlock Deck
k this deck
14
The .exe file extension indicates that the file is _________.

A)extensible
B)executable
C)existent
D)extinct
Unlock Deck
Unlock for access to all 41 flashcards in this deck.
Unlock Deck
k this deck
15
Which operator performs string concatenation?

A)&
B)@
C)%
D)#
Unlock Deck
Unlock for access to all 41 flashcards in this deck.
Unlock Deck
k this deck
16
Which of the following is a valid declaration in Visual Basic?

A)Int number
B)Dim Integer number
C)Dim number = Integer
D)Dim number As Integer
Unlock Deck
Unlock for access to all 41 flashcards in this deck.
Unlock Deck
k this deck
17
A binary operator has _________ operand(s).

A)one
B)two
C)zero or one
D)two or fewer
Unlock Deck
Unlock for access to all 41 flashcards in this deck.
Unlock Deck
k this deck
18
Which of the following is not true about GUIs?

A)GUIs allow users to interact visually with programs.
B)A GUI gives a program a distinctive look and feel.
C)Scrollbars are always present in GUIs.
D)GUIs are built from GUI controls called widgets.
Unlock Deck
Unlock for access to all 41 flashcards in this deck.
Unlock Deck
k this deck
19
When the user interacts with a GUI component,the interaction,known as a(n)_________,causes the program to perform a task by "calling" a method.

A)driver
B)action
C)event
D)cause
Unlock Deck
Unlock for access to all 41 flashcards in this deck.
Unlock Deck
k this deck
20
Which of the following is not a valid identifier?

A)Start
B)AboutForm
C)modFirst Welcome
D)value4
Unlock Deck
Unlock for access to all 41 flashcards in this deck.
Unlock Deck
k this deck
21
Which of the following is in highest-to-lowest order of operator precedence?

A)multiplication,division,exponentiation
B)addition,subtraction,division
C)exponentiation,multiplication,addition
D)None of the above.
Unlock Deck
Unlock for access to all 41 flashcards in this deck.
Unlock Deck
k this deck
22
When you drag a control across a Form,_________ appear to help you position the control with respect to the Form's edges and other controls.

A)edge lines
B)guide lines
C)position lines
D)snap lines
Unlock Deck
Unlock for access to all 41 flashcards in this deck.
Unlock Deck
k this deck
23
You can change a control's variable name by selecting the control and modifying its _________ property.

A)Id
B)Name
C)Tag
D)Alias
Unlock Deck
Unlock for access to all 41 flashcards in this deck.
Unlock Deck
k this deck
24
The != operator compares two numbers to determine if they are not equal.
Unlock Deck
Unlock for access to all 41 flashcards in this deck.
Unlock Deck
k this deck
25
The + is the string concatenation operator in Visual Basic.
Unlock Deck
Unlock for access to all 41 flashcards in this deck.
Unlock Deck
k this deck
26
Whenever a value is placed in a memory location,the previous value is saved so that it can be restored later.
Unlock Deck
Unlock for access to all 41 flashcards in this deck.
Unlock Deck
k this deck
27
Arithmetic expressions in Visual Basic must be written in straight-line form.
Unlock Deck
Unlock for access to all 41 flashcards in this deck.
Unlock Deck
k this deck
28
A declaration may declare only one variable at a time.
Unlock Deck
Unlock for access to all 41 flashcards in this deck.
Unlock Deck
k this deck
29
The fractional part in integer division is stored in a variable declared automatically at run-time.
Unlock Deck
Unlock for access to all 41 flashcards in this deck.
Unlock Deck
k this deck
30
An assignment statement assigns a variable to a value.
Unlock Deck
Unlock for access to all 41 flashcards in this deck.
Unlock Deck
k this deck
31
Which of the following represents the "is equal to" equality operator:

A)=
B)!=
C)=!
D)==
Unlock Deck
Unlock for access to all 41 flashcards in this deck.
Unlock Deck
k this deck
32
Binary operators require two operands.
Unlock Deck
Unlock for access to all 41 flashcards in this deck.
Unlock Deck
k this deck
33
Set a Label's _________ property to Fixed3D to give the Label a three-dimensional appearance.

A)BorderStyle
B)BorderDepth
C)BorderShading
D)BorderPerspective
Unlock Deck
Unlock for access to all 41 flashcards in this deck.
Unlock Deck
k this deck
34
The expression between the words If and Then is called a:

A)condition
B)clause
C)operator
D)controller
Unlock Deck
Unlock for access to all 41 flashcards in this deck.
Unlock Deck
k this deck
35
An assignment statement is evaluated left-side first.
Unlock Deck
Unlock for access to all 41 flashcards in this deck.
Unlock Deck
k this deck
36
The event is a TextBox's default event.

A)TextEntered
B)Click
C)Load
D)TextChanged.
Unlock Deck
Unlock for access to all 41 flashcards in this deck.
Unlock Deck
k this deck
37
Every variable has a .

A)type
B)size
C)value
D)All of the above.
Unlock Deck
Unlock for access to all 41 flashcards in this deck.
Unlock Deck
k this deck
38
The statement allows a program to make a decision based on the truth or falsity of some condition.

A)If…Then
B)Test
C)Whether
D)None of the above.
Unlock Deck
Unlock for access to all 41 flashcards in this deck.
Unlock Deck
k this deck
39
Which of the following represents modulus arithmetic?

A)Mod
B)/
C)%
D)^
Unlock Deck
Unlock for access to all 41 flashcards in this deck.
Unlock Deck
k this deck
40
When a value is read from a memory location,the value in that location is retained.
Unlock Deck
Unlock for access to all 41 flashcards in this deck.
Unlock Deck
k this deck
41
Using redundant parentheses in a complex expression is a wasteful practice.
Unlock Deck
Unlock for access to all 41 flashcards in this deck.
Unlock Deck
k this deck
locked card icon
Unlock Deck
Unlock for access to all 41 flashcards in this deck.