stud
bud
Sign up
Log in
Home
Library
Explore
SAT
More
Computer Programming 1 - Final Exam Review Flashcards | StudBud
Explore
/
Computer Programming 1 - Final Exam Review
Computer Programming 1 - Final Exam Review
62 terms
·
StudBud Administration
·
681 plays
Computer Programming 1 - Final Exam Review
Flashcards
62 cards
F
Practice quiz
P
Host live
L
Questions
62
Answers
1
Which statement checks to see if an item was selected in the ComboBox cboColors?
If cboColors.Selected > 0 Then ...
If cboColors.SelectedIndex > 0 Then ...
If cboColors.Selected < 0 Then ...
If cboColors.SelectedIndex < 0 Then ...
2
The debugging control that resembles a ____ executes the program.
Green square
Blue Square
Green arrow
Blue arrow
3
Which statement will keep existing values in an array when you resize it?
ReDim
ReDim Preserve
Dim Preserve
Dim
4
In an array, the index of the first item is always ____.
2
A
0
1
5
____ computers used binary number system and machine language.
Electro-Mechanical
2nd Generation
3rd Generation
1st Generation
6
What method or property of the Array class returns the number of elements in an array?
Item
Size
Length
Sort
7
A decision is represented by which shape in a flowchart?
diamond
oval
parallelogram
square
8
What is a good name for a label that displays game information?
lblGameInfo
Label1
lblMyName
lbl234
9
Syntax Errors are also called ____ errors
Logic
Hopeless
Compiler
Runtime
10
A ____ enables selection of one or more predefined items from a list, or entry of a new value.
text box
check box
list box
combo box
11
The For ... Next loop structure is used when you
know how many times the loop will run
the condition is false
Use a variable in the condition
the condition is true
12
Which statement would sort the ListBox?
lstColors.Sorted(true)
lstColors.Sorted = false
lstColors.Sorted = true
lstColors.Sorted = ascending
13
What is the answer to 30 Mod 8?
NaN
3
6
3.75
14
A Do Until ... loop will be an infinite loop when the ___
Never
Condition is always true
Condition is always false
condition is a syntax error
15
The relational operator ____ means not equal to in visual basic.
< >
>=
==
! =
16
Which of the following procedures perform a certain task and return a value?
Subs
Event Subs
Functions
Exceptions
17
You cannot adjust the ____ property of a control during runtime.
Name
BackColor
Width
Text
18
____ languages have almost NO abstraction from the hardware.
World
High Level
Low Level
Machine Language
19
What is the proper syntax to stop a timer named tmrLetItGo?
Stop.tmrLetItGo
Quit.tmrLetItGo
tmrLetItGo.Stop()
tmrLetItGo.Quit()
20
If strWord = "apple", what is the result of strWord.IndexOf("l")?
2
4
1
3
21
Complete the code to draw a circle. MySurface.drawEllipse(MyBluePen, 100, 25, ____, ____)
30, 30
100, 25
25, 100
50, 30
22
Which of the following statements will sort the array intNumArr in ascending order?
Array.Sort = intNumArr
intNumArr.Sort()
Sort.intNumArr
Array.Sort(intNumArr)
23
All of the following are advantages of dividing a program into parts except ____.
more code redundancy
easier to understand
reusing code
more flexibility
24
Which of the following refers to the current form?
Me
TheForm
This
My
25
In order for an AND expression to be true, how many of the conditions must be true?
1 of them
None of them
All but 1 of them
All of them
26
Autosize, BorderStyle, and Font are examples _______.
controls
behaviors
methods
properties
27
In a Case statement to test to see if the value is between 1 and 10 you would write ____?
Case 1, 10
Case Is 1 To 10
Case Is <= 10
Case 1 To 10
28
What is the answer to 17 \ 4?
NaN
4
1
4.25
29
The characteristics that describe the object are called ___.
instances
properties
abstractions
methods
30
Which of the following controls allows you to select more than one option in a group?
Label
Check Box
Text Box
Radio Button
31
In ____ the entire condition will not be checked if the first stmnt determines the truth.
long circuiting
shorthand coding
longhand coding
short circuiting
32
Which would be the best choice of a name for a label control that prompts the user for a name?
name
namelab
lblName
label 1
33
Visual Studio is an example of a(n) ____.
IDE
SDK
Programming Language
API
34
If strA = "Goat" and strB = "Hammer", what is the result of String.Compare(strA,strB)?
>0
0
1
<0
35
Which Math class method returns the value 1, -1, or 0 if a number is positive, negative, or 0.
Math.Value()
Math.Sin()
Math.Abs()
Math.Sign()
36
A procedure that performs a task and returns a value is called ___.
a text changed event
a function
an assignment
an event procedure
37
____ errors occur when the programmer does not follow the rules of the language.
Logic
User
Syntax
Runtime
38
What does the rectangle shape represent in a flowchart?
decision
input / output
start / end
processing
39
The address of a variable is the location in memory where its value is stored.
False
True
40
____ is a function to check for incorrect user input.
Select ... Case
If ... Then
Try ... Catch
ToString
41
If you want recurring events in your program, like animation for example use a(n) ___
Click Event
Timer
Label
Button
42
in For i = 0 to 11 Step 2, what is the value of i after the last loop iteration?
12
11
13
10
43
What is the result of Math.Sqrt(25)?
-5
25
625
5
44
The looping structure that evaluates a condition after executing a loop once is the ____.
Do Until ... Loop
For ... Next
Do While ... Loop
Do ... Loop While
45
Where is the origin or (0,0) on your drawing surface in Visual Basic?
Center of Surface
Bottom Left Corner
Top Right Corner
Top Left Corner
46
Which is the proper syntax to set the Image property during runtime? Me.PictureBox.Image = ____
Image.My.Resources
ImgName.My.Resources
My.Resources.ImgName
Resources.ImgName
47
The Visual Basic keyword used to create (declare) a variable is _____.
Open
Declare
Dim
Create
48
Each time a loop runs is called a(n) ____.
Counter
Accumulator
Execution
Iteration
49
If an If ... Then structure is inside another If...Then structure, this is called a ___ if.
embedded
nested
included
inside
50
Which area of the IDE contains controls that are used to create objects?
the Solution Explorer window
the properties window
the Start Page
the Toolbox
51
A flag is a condition that is used to ____
run the program
stop a program
stop a loop
break a program
52
Which of the following activities is the second activity in the programming process?
Validate the Design
Document the Solution
Test the Solution
Design the Solution
53
What is a pictorial representation of a step-by-step solution to a problem?
Program
Pseudocode
Algorithm
Flowchart
54
This Random class method returns a random double number between 0.0 and 1.0
Next
Double
NextDouble
DoubleNext
55
Which area of the IDE is used to change the text displayed in a Label object?
the Start Page
the Solution Explorer Window
the Toolbox
the Properties Window
56
This relational operator means less than.
<=
<
>=
>
57
How many arguments are passed in the statement Call CheckGuess (intAnswer, intGuess)?
3
2
1
0
58
The ____ executes a set of statements as long as the condition is true.
Do Until ... Loop
For ... Next
Do While ... Loop
Do ... Loop Until
59
A drawing Pen constructor has two arguments. They are ____ and ____
(in the correct order)
Origin, Color
Color, Size
Size, Color
Color, Origin
60
Visual Basic is an example of a(n) ____.
IDE
SDK
Programming Language
API
61
What window displays the application interface, allows objects to be added, deleted, and sized?
Properties Window
Start Window
Code Window
Design Window
62
____ is an operator in Visual Basic that returns the remainder of a division problem.
Mod
\
/
%