Download presentation
Presentation is loading. Please wait.
1
Visual Basic 6.0 Final Review
2
What will be the value of lbl1? lbl1.caption = Left(“crawford”, 3)
3
What will be the value of lbl1? lbl1.caption = Left(“crawford”, 3) cra
4
What will be the value of lbl1? lbl1.caption = Right(“crawfish”, 3)
5
What will be the value of lbl1. lbl1
What will be the value of lbl1? lbl1.caption = Right(“crawfish”, 3) ish
6
What will be the value of lbl1? lbl1.caption = Instr(1, “rabbit”, “b”)
7
What will be the value of lbl1. lbl1
What will be the value of lbl1? lbl1.caption = Instr(1, “rabbit”, “b”) 3
8
Which visual basic data type can only contain the values true/false?
9
Which visual basic data type can only contain the values true/false
Which visual basic data type can only contain the values true/false? boolean
10
Assigning a value to a variable for the first time is known as…
11
Assigning a value to a variable for the first time is known as initialization.
12
The scope of a variable determines…
13
The scope of a variable determines where a variable can be used.
14
What word is used to create a constant in visual basic?
15
What word is used to create a constant in visual basic? const
16
The code below will create a random number between what and what
The code below will create a random number between what and what? **Specifically say inclusive or non-inclusive. Randomize intRand = Int(Rnd * 5 + 2)
17
The code below will create a random number between what and what
The code below will create a random number between what and what? **Specifically say inclusive or non-inclusive. Randomize intRand = Int(Rnd * 5 + 2) 2 – 6 (inclusive)
18
<, and >, are examples of relational operators in Visual Basic
<, and >, are examples of relational operators in Visual Basic. What symbol is used for the operator that represents “not equal to” ?
19
<, and >, are examples of relational operators in Visual Basic
<, and >, are examples of relational operators in Visual Basic. What symbol is used for the operator that represents “not equal to” ? <>
20
A programmer would like to create a multi-form application in which all of forms have access to the intRand variable. Declare the intRand variable as if you were declaring it in a module for all forms to use.
21
A programmer would like to create a multi-form application in which all of forms have access to the intRand variable. Declare the intRand variable as if you were declaring it in a module for all forms to use. Public intRand as Integer
22
Which control has a value property that can have three possible values of 0, 1, or 2?
23
Which control has a value property that can have three possible values of 0, 1, or 2? Check Box
24
True/False The do-until loop repeats a block of statements until a condition is false.
25
True/False The do-until loop repeats a block of statements until a condition is false. FALSE
26
Create a do-until loop with a counter that starts at 0 and loops until the counter reaches 5. The counter should be incremented by one.
27
Create a do-until loop with a counter that starts at 0 and loops until the counter reaches 5. The counter should be incremented by one. count = 0 Do count = count + 1 Loop until count = 5
28
When using a Do-While loop, what word is placed at the bottom of the loop?
29
When using a Do-While loop, what word is placed at the bottom of the loop? Loop
30
When using a For-Next loop with a counter variable count, what phrase is placed at the bottom of the loop?
31
When using a For-Next loop with a counter variable count, what phrase is placed at the bottom of the loop? Next count
32
What type of control has a value property that can either be set to True or False.
33
What type of control has a value property that can either be set to True or False. Option Button
34
A Public variable declared in a module is said to have what type of scope?
35
A Public variable declared in a module is said to have what type of scope? Global
36
Visual Basic allows programmers to create variables on the fly
Visual Basic allows programmers to create variables on the fly. If a programmer uses this feature, the variable will be created as what variable type?
37
Visual Basic allows programmers to create variables on the fly
Visual Basic allows programmers to create variables on the fly. If a programmer uses this feature, the variable will be created as what variable type? Variant
38
What is the value of str1 after the loop
What is the value of str1 after the loop? intX = 5 str1 = “” Do While intX < 20 intX = intX + 4 str1 = str1 & (intX-1) Loop
39
What is the value of str1 after the loop
What is the value of str1 after the loop? intX = 5 str1 = “” Do While intX < 20 intX = intX + 4 str1 = str1 & (intX-1) Loop
Similar presentations
© 2025 SlidePlayer.com. Inc.
All rights reserved.