Deck 12: How Long Can This Go on Pretest Loops
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Unlock Deck
Sign up to unlock the cards in this deck!
Unlock Deck
Unlock Deck
1/25
Play
Full screen (f)
Deck 12: How Long Can This Go on Pretest Loops
1
Repetition structures use accumulator variables to tally information such as the total dollar amount of a week's payroll.
True
2
Like the condition in the If…Then…Else statement, the condition in the Do…Loop statement must evaluate to a Boolean value.
True
3
Any code containing a priming read must also include a matching update read within the loop.
True
4
The result of forgetting to enter the update read is a(n) ____ loop.
A) empty
C) infinite
B) temporary
D) short-circuited
A) empty
C) infinite
B) temporary
D) short-circuited
Unlock Deck
Unlock for access to all 25 flashcards in this deck.
Unlock Deck
k this deck
5
The value returned by the InputBox function is the same whether the user clicks the OK button, Cancel button, or Close button.
Unlock Deck
Unlock for access to all 25 flashcards in this deck.
Unlock Deck
k this deck
6
The loop condition is represented by a parallelogram in a flowchart.
Unlock Deck
Unlock for access to all 25 flashcards in this deck.
Unlock Deck
k this deck
7
A repetition structure can only be a pretest loop.
Unlock Deck
Unlock for access to all 25 flashcards in this deck.
Unlock Deck
k this deck
8
A condition can contain variables, constants, properties, methods, or operators.
Unlock Deck
Unlock for access to all 25 flashcards in this deck.
Unlock Deck
k this deck
9
The priming read is used to prepare or set up a loop.
Unlock Deck
Unlock for access to all 25 flashcards in this deck.
Unlock Deck
k this deck
10
If the user clicks the OK button, the InputBox function returns ____.
A) an empty string
B) the value contained in the input area of the dialog box
C) OKValue
D) Nothing
A) an empty string
B) the value contained in the input area of the dialog box
C) OKValue
D) Nothing
Unlock Deck
Unlock for access to all 25 flashcards in this deck.
Unlock Deck
k this deck
11
Like counter variables, accumulator variables are initialized inside the loop.
Unlock Deck
Unlock for access to all 25 flashcards in this deck.
Unlock Deck
k this deck
12
Like counter variables, accumulator variables are updated outside the loop.
Unlock Deck
Unlock for access to all 25 flashcards in this deck.
Unlock Deck
k this deck
13
A(n) ____ variable is a numeric variable used for adding something together.
A) static
C) accumulator
B) named
D) counter
A) static
C) accumulator
B) named
D) counter
Unlock Deck
Unlock for access to all 25 flashcards in this deck.
Unlock Deck
k this deck
14
All computer programs are written using one or more of three control structures: sequence, selection, or repetition.
Unlock Deck
Unlock for access to all 25 flashcards in this deck.
Unlock Deck
k this deck
15
You can use the ____ statement to code both a pretest loop and a posttest loop.
A) For…Next
C) Next…For
B) While…Wend
D) Do…Loop
A) For…Next
C) Next…For
B) While…Wend
D) Do…Loop
Unlock Deck
Unlock for access to all 25 flashcards in this deck.
Unlock Deck
k this deck
16
In a(n) ____ loop, the evaluation occurs after the instructions within the loop are processed.
A) pretest
C) execute
B) inline test
D) posttest
A) pretest
C) execute
B) inline test
D) posttest
Unlock Deck
Unlock for access to all 25 flashcards in this deck.
Unlock Deck
k this deck
17
In a loop that begins with a priming read, the ____ provides the way to end a loop.
A) changing read
C) ending read
B) update read
D) special read
A) changing read
C) ending read
B) update read
D) special read
Unlock Deck
Unlock for access to all 25 flashcards in this deck.
Unlock Deck
k this deck
18
In a(n) ____ loop, the loop condition is evaluated before the instructions within the loop are processed.
A) pretest
C) inline test
B) posttest
D) execute
A) pretest
C) inline test
B) posttest
D) execute
Unlock Deck
Unlock for access to all 25 flashcards in this deck.
Unlock Deck
k this deck
19
Programmers use the ____ structure when they need the computer to repeatedly process one or more program instructions until some condition is met, at which time the processing ends.
A) decision
C) selection
B) repetition
D) declaration
A) decision
C) selection
B) repetition
D) declaration
Unlock Deck
Unlock for access to all 25 flashcards in this deck.
Unlock Deck
k this deck
20
The Windows standard is to use book title capitalization for the prompt, but sentence capitalization for the title.
Unlock Deck
Unlock for access to all 25 flashcards in this deck.
Unlock Deck
k this deck
21
The empty string is represented by the ____ constant in Visual Basic.
A) Nothing
C) String.Empty
B) String.Nothing
D) Empty.String
A) Nothing
C) String.Empty
B) String.Nothing
D) Empty.String
Unlock Deck
Unlock for access to all 25 flashcards in this deck.
Unlock Deck
k this deck
22
The syntax for the InputBox function is ____.
A) InputBox(prompt[ , title][ , defaultResponse])
B) Input Box(prompt[ , title][ , defaultResponse])
C) InputBox[prompt( , title)( , defaultResponse)]
D) InputBox(prompt, title, defaultResponse)
A) InputBox(prompt[ , title][ , defaultResponse])
B) Input Box(prompt[ , title][ , defaultResponse])
C) InputBox[prompt( , title)( , defaultResponse)]
D) InputBox(prompt, title, defaultResponse)
Unlock Deck
Unlock for access to all 25 flashcards in this deck.
Unlock Deck
k this deck
23
When entering the InputBox function in the Code Editor window, the prompt, title, and defaultResponse arguments must be enclosed in ____.
A) quotation marks
C) square brackets
B) asterisks
D) slashes
A) quotation marks
C) square brackets
B) asterisks
D) slashes
Unlock Deck
Unlock for access to all 25 flashcards in this deck.
Unlock Deck
k this deck
24
If the user clicks either the Cancel button in the dialog box or the Close button on the dialog box's title bar, the InputBox function returns ____.
A) an empty string
B) the value contained in the input area of the dialog box
C) CancelValue
D) nothing
A) an empty string
B) the value contained in the input area of the dialog box
C) CancelValue
D) nothing
Unlock Deck
Unlock for access to all 25 flashcards in this deck.
Unlock Deck
k this deck
25
A ____ error is an error that occurs while an application is running.
A) logic
C) syntax
B) compilation
D) run time
A) logic
C) syntax
B) compilation
D) run time
Unlock Deck
Unlock for access to all 25 flashcards in this deck.
Unlock Deck
k this deck