fully solved 2025(graded A+)
What does program flow follow? - answer It follows the exact
sequence of listed program statements, unless
directed otherwise by a Java control structure
Programs in what computer language require control structures? -
answer Simple sequence
What are the 3 general types of control structures? - answer Simple
sequence, selection, and repetition
How does Simple Sequence work? - answer Program sequences are
executed in the exact way they are written
What are 2 synonyms for Selection? - answer Conditional branching
and decision making
What are the 3 types of Selection? - answer One-way, two-way, and
multiple-way
Selection control structures use a special _____________ statement. -
answer Conditional
In one-way selection, when does the program flow branch off? -
answer When the condition is true
In one-way selection, what happens if the condition is false? -
answer The program flow continues without change in the program
sequence
, In two-way selection, what happens if the condition is false? -
answer It goes in one direction with a set of program statements
Explain Multiple-Way Selection. - answer A selection variable works
with a selection constant. The selection variable is
paired with a selection constant until it finds a match. When this
happens,
it then executes the corresponding program statement
Explain Repetition - answer A program statement that is proven true
or false which makes it loop to the given amount
What do Selection and Repetition control structures have in
common? - answer At some point in the program it "branches off"
What is the essence of understanding, and using, control
structures? - answer Understanding conditional statements
What is a conditional statement? - answer A program expression
which evaluates to true or false
Most conditional statements will require what? - answer Relational
operator
All conditions must be placed inside what? - answer Parentheses
What kind of operator is required to make an expression evaluate to
true or false? - answer Relational operator