Self Review Exercises 4 Flashcards
SRE 4
_____ refer(s) to the task of ordering an app’s statements correctly.
a) Actions
b) Program Control
c) Control Structures
d) Visual Programming
b) Program Control
SRE 4
A(n) _____ is a plan for solving a problem in terms of the actions to be executed and the order in which these actions are to be executed.
a) chart
b) control structure
c) algorithm
d) ordered list
c) algorithm
SRE 4
_____ is an informal language that helps you develop algorithms
a) Pseudocode
b) VB-speak
c) Notation
d) None of the above
a) Pseudocode
SRE 4
Pseudocode _______
a) usually describes only declarations
b) is executed on computers
c) usually describes only executable lines of code
d) usually describes declarations and executable lines of code
c) usually describes only executable lines of code
SRE 4
All Visual Basic Apps can be written in terms of _____ types of control structures
a) one
b) two
c) three
d) four
c) three
SRE 4
The process of app statements executing one after another in the order in which they are written is called _____.
a) transfer of control
b) sequential execution
c) workflow
d) None of the above
b) sequential execution
SRE 4
Which of the following If… Then… statements correctly displays that a student received an A on an exam if the score was 90 or above?
a) If studentGrade 90 Then
displayLabel.Text = “Student received an A”
End If
b) If studentGrade > 90 Then
displayLabel.Text = “Student received an A”
End If
c) if studentGrade = 90 Then
displayLabel.Text = “Student received an A”
End If
d) if studentGrade >= 90 Then
displayLabel.Text = “Student received an A”
End If
d) if studentGrade >= 90 Then
displayLabel.Text = “Student received an A”
End If
SRE 4
The symbol ____ is not a visual basic operator
a) *
b) ^
c) %
d) <>
c) %
SRE 4
If… Then… Else is a ____ selection statement
a) single
b) double
c) triple
d) nested
b) double
SRE 4
Placing an If… Then… Else statement inside another If…Then… Else statement is an example of
a) nesting If… Then… Else statements
b) stacking If… Then… Else statements
c) creating sequential If… Then… Else statements
d) None of the above
a) nesting If… Then… Else statements
SRE 4
The *= operator _______
a) squares the value of the right operand and stores the result in the left operand
b) adds the value of the right operand to the value of the left operand and stores the result in the left operand
c) creates a new variable and assigns the value of the right operand to that variable
d) multiplies the value of the left operand by the value of the right operand and stores the result in the left operand
d) multiplies the value of the left operand by the value of the right operand and stores the result in the left operand
SRE 4
If number is initialized with the value 5, what value will number contain after the expression number -=3 executes?
a) 3
b) 5
c) 7
d) 2
d) 2
SRE 4
Method String.Format is used to _______
a) create constants
b) control how text is formatted
c) format Visual Basic statements
d) All of the above
b) control how text is formatted
SRE 4
An app enters break mode when _____
a) Debug > Start is selected
b) a breakpoint is reached
c) there is a syntax error
d) Non of the above
b) a breakpoint is reached
SRE 4
The body of a Do… While… Loop statement executes ______
a) at least once
b) never
c) while its condition is true
d) while it’s condition is false
c) while its condition is true