Deck 8: Decisions, Decisions, Decisions Selection Structure

Full screen (f)
exit full mode
Question
During run time, you can determine whether a check box is selected or unselected by looking at the value in its Checked property.
Use Space or
up arrow
down arrow
to flip the card.
Question
Arithmetic operators are evaluated after any comparison operators in an expression.
Question
A programmer determines whether a problem's solution requires a selection structure by studying the problem specification.
Question
The two flowlines leading out of a diamond should be marked so that anyone reading the flowchart can distinguish the true path from the false path.
Question
More unintentional errors occur in applications when the variables are declared using the minimum scope needed.
Question
The oval in a flowchart is called the selection/repetition symbol.
Question
Unlike the variables declared at the beginning of a procedure, variables declared within a statement block in a selection structure remain in memory until the procedure ends.
Question
The set of statements contained in the true path, as well as the set of statements contained in the false path, is referred to as a(n) ____.

A) statement block
C) executable code block
B) conditional block
D) path block
Question
In the If…Then…Else statement, the condition must be a(n) ____ expression.

A) arithmetic
C) constant
B) conditional
D) Boolean
Question
Many times the next instruction processed depends on the result of a decision that must be made.
Question
Although there is nothing wrong with declaring all variables at the beginning of a procedure, many programmers would prefer to create a variable only if it is necessary to do so.
Question
Operators are called ____ operators because they are used to compare values.

A) test
C) change
B) comparison
D) binary
Question
The ____ in a flowchart is the start/stop symbol.

A) parallelogram
C) diamond
B) rectangle
D) oval
Question
The ____ in a flowchart is the input/output symbol.

A) parallelogram
C) diamond
B) rectangle
D) oval
Question
The ____ structure makes a decision and then takes an appropriate action based on that decision.

A) loop
C) selection
B) condition
D) case
Question
Items in square brackets are required in the syntax of an algorithm.
Question
In the If…Then…Else statement, the programmer must supply the ____ that the computer needs to evaluate before further processing can occur.

A) condition
C) order
B) execution
D) path
Question
You can select a check box by double-clicking it.
Question
The ____ in a flowchart is the process symbol.

A) parallelogram
C) diamond
B) rectangle
D) oval
Question
Unlike variables declared at the beginning of a procedure, variables declared within a statement block have block scope rather than procedure scope.
Question
The Text property of a check box should be entered using ____.

A) all lowercase letters
C) sentence capitalization
B) all uppercase letters
D) book capitalization
Question
In a flowchart, a(n) ____ represents the condition in a selection structure.

A) parallelogram
C) diamond
B) rectangle
D) oval
Question
A variable that has ____ scope can be used only within the statement block in which it is declared.

A) global
C) internal
B) procedure
D) block
Question
A variable declared within a statement block is called a ____.

A) block-level variable
C) contained variable
B) restricted variable
D) simple variable
Question
A variable that has ____ scope can be used anywhere within the procedure.

A) global
C) internal
B) procedure
D) block
Unlock Deck
Sign up to unlock the cards in this deck!
Unlock Deck
Unlock Deck
1/25
auto play flashcards
Play
simple tutorial
Full screen (f)
exit full mode
Deck 8: Decisions, Decisions, Decisions Selection Structure
1
During run time, you can determine whether a check box is selected or unselected by looking at the value in its Checked property.
True
2
Arithmetic operators are evaluated after any comparison operators in an expression.
False
3
A programmer determines whether a problem's solution requires a selection structure by studying the problem specification.
True
4
The two flowlines leading out of a diamond should be marked so that anyone reading the flowchart can distinguish the true path from the false path.
Unlock Deck
Unlock for access to all 25 flashcards in this deck.
Unlock Deck
k this deck
5
More unintentional errors occur in applications when the variables are declared using the minimum scope needed.
Unlock Deck
Unlock for access to all 25 flashcards in this deck.
Unlock Deck
k this deck
6
The oval in a flowchart is called the selection/repetition symbol.
Unlock Deck
Unlock for access to all 25 flashcards in this deck.
Unlock Deck
k this deck
7
Unlike the variables declared at the beginning of a procedure, variables declared within a statement block in a selection structure remain in memory until the procedure ends.
Unlock Deck
Unlock for access to all 25 flashcards in this deck.
Unlock Deck
k this deck
8
The set of statements contained in the true path, as well as the set of statements contained in the false path, is referred to as a(n) ____.

A) statement block
C) executable code block
B) conditional block
D) path block
Unlock Deck
Unlock for access to all 25 flashcards in this deck.
Unlock Deck
k this deck
9
In the If…Then…Else statement, the condition must be a(n) ____ expression.

A) arithmetic
C) constant
B) conditional
D) Boolean
Unlock Deck
Unlock for access to all 25 flashcards in this deck.
Unlock Deck
k this deck
10
Many times the next instruction processed depends on the result of a decision that must be made.
Unlock Deck
Unlock for access to all 25 flashcards in this deck.
Unlock Deck
k this deck
11
Although there is nothing wrong with declaring all variables at the beginning of a procedure, many programmers would prefer to create a variable only if it is necessary to do so.
Unlock Deck
Unlock for access to all 25 flashcards in this deck.
Unlock Deck
k this deck
12
Operators are called ____ operators because they are used to compare values.

A) test
C) change
B) comparison
D) binary
Unlock Deck
Unlock for access to all 25 flashcards in this deck.
Unlock Deck
k this deck
13
The ____ in a flowchart is the start/stop symbol.

A) parallelogram
C) diamond
B) rectangle
D) oval
Unlock Deck
Unlock for access to all 25 flashcards in this deck.
Unlock Deck
k this deck
14
The ____ in a flowchart is the input/output symbol.

A) parallelogram
C) diamond
B) rectangle
D) oval
Unlock Deck
Unlock for access to all 25 flashcards in this deck.
Unlock Deck
k this deck
15
The ____ structure makes a decision and then takes an appropriate action based on that decision.

A) loop
C) selection
B) condition
D) case
Unlock Deck
Unlock for access to all 25 flashcards in this deck.
Unlock Deck
k this deck
16
Items in square brackets are required in the syntax of an algorithm.
Unlock Deck
Unlock for access to all 25 flashcards in this deck.
Unlock Deck
k this deck
17
In the If…Then…Else statement, the programmer must supply the ____ that the computer needs to evaluate before further processing can occur.

A) condition
C) order
B) execution
D) path
Unlock Deck
Unlock for access to all 25 flashcards in this deck.
Unlock Deck
k this deck
18
You can select a check box by double-clicking it.
Unlock Deck
Unlock for access to all 25 flashcards in this deck.
Unlock Deck
k this deck
19
The ____ in a flowchart is the process symbol.

A) parallelogram
C) diamond
B) rectangle
D) oval
Unlock Deck
Unlock for access to all 25 flashcards in this deck.
Unlock Deck
k this deck
20
Unlike variables declared at the beginning of a procedure, variables declared within a statement block have block scope rather than procedure scope.
Unlock Deck
Unlock for access to all 25 flashcards in this deck.
Unlock Deck
k this deck
21
The Text property of a check box should be entered using ____.

A) all lowercase letters
C) sentence capitalization
B) all uppercase letters
D) book capitalization
Unlock Deck
Unlock for access to all 25 flashcards in this deck.
Unlock Deck
k this deck
22
In a flowchart, a(n) ____ represents the condition in a selection structure.

A) parallelogram
C) diamond
B) rectangle
D) oval
Unlock Deck
Unlock for access to all 25 flashcards in this deck.
Unlock Deck
k this deck
23
A variable that has ____ scope can be used only within the statement block in which it is declared.

A) global
C) internal
B) procedure
D) block
Unlock Deck
Unlock for access to all 25 flashcards in this deck.
Unlock Deck
k this deck
24
A variable declared within a statement block is called a ____.

A) block-level variable
C) contained variable
B) restricted variable
D) simple variable
Unlock Deck
Unlock for access to all 25 flashcards in this deck.
Unlock Deck
k this deck
25
A variable that has ____ scope can be used anywhere within the procedure.

A) global
C) internal
B) procedure
D) block
Unlock Deck
Unlock for access to all 25 flashcards in this deck.
Unlock Deck
k this deck
locked card icon
Unlock Deck
Unlock for access to all 25 flashcards in this deck.