Deck 1: I Am Not a Control Freak Control Structures
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/10
Play
Full screen (f)
Deck 1: I Am Not a Control Freak Control Structures
1
A(n) ____ is a set of step-by-step instructions that accomplish a task.
A) program
C) instruction set
B) algorithm
D) command structure
A) program
C) instruction set
B) algorithm
D) command structure
B
2
Programmers must use the repetition structure in every program they write.
False
3
Without the repetition structure, if you needed an instruction to repeat 20 times you would have to write that instructions 20 times in your program.
True
4
Control structures or ____ structures control the flow of a program's logic.
A) flow
C) logic
B) program
D) execution
A) flow
C) logic
B) program
D) execution
Unlock Deck
Unlock for access to all 10 flashcards in this deck.
Unlock Deck
k this deck
5
The redo structure is also referred to as a loop or as iteration.
Unlock Deck
Unlock for access to all 10 flashcards in this deck.
Unlock Deck
k this deck
6
The ____ structure makes a decision and then takes an appropriate action based on that decision.
A) repetition
C) command
B) sequence
D) selection
A) repetition
C) command
B) sequence
D) selection
Unlock Deck
Unlock for access to all 10 flashcards in this deck.
Unlock Deck
k this deck
7
The ____ structure in a computer program directs the computer to process the program instructions, one after another, in the order listed in the program.
A) sequence
C) repetition
B) selection
D) series
A) sequence
C) repetition
B) selection
D) series
Unlock Deck
Unlock for access to all 10 flashcards in this deck.
Unlock Deck
k this deck
8
When used in a computer program, the selection structure alerts the computer that a decision needs to be made, and it provides the appropriate action to take based on the result of that decision.
Unlock Deck
Unlock for access to all 10 flashcards in this deck.
Unlock Deck
k this deck
9
When used in a program, the ____ structure directs the computer to repeat one or more instructions until some condition is met, at which time the computer should stop repeating the instructions.
A) redo
C) selection
B) repetition
D) sequence
A) redo
C) selection
B) repetition
D) sequence
Unlock Deck
Unlock for access to all 10 flashcards in this deck.
Unlock Deck
k this deck
10
All computer programs, no matter how simple or how complex, are written using one or more of three basic structures: sequence, selection, and repetition.
Unlock Deck
Unlock for access to all 10 flashcards in this deck.
Unlock Deck
k this deck