Study online at https://quizlet.com/_dfefct
1. In a flowchart, a decision creates two the if branch
branches, one for when the decision's ex- the else branch
pression is true:__________ , another when
false:____________
2. If-else branches have statements in each True
branch. (True or False?)
3. An if branch has no statements in the else True
branch. (True or False?)
4. If-elseif branches have cascaded decisions True
along the false branches. Only one true
branch can execute. (True or False?)
5. A branch can itself have a decision, known nested branches
as ?
6. Multiple if branches can be created, which True
are independent, so more than one true
branch can execute. (True or False?)
7. ==, !=, <, <=, >, >= Valid equality and relational operators
8. and, or, not logical operators
9. In an expression, operators are evaluated True
in a specific order based on precedence
rules (just like in math). True or False?
10. Because floating-point numbers aren't rep- True
resented exactly, they shouldn't be com-
pared for equality (using ==). Instead, they
, WGU Scripting and Programming - Foundations - C173
Study online at https://quizlet.com/_dfefct
can be compared for "close enough" True
or False?
11. Branches in pseudocode use words like if, else, and elseif
______, ________, and _______ , and a branch's indented
statements appear ____________ starting on
a next line.
12. A program should output "Too heavy" if if
weight is over 200 pounds. Otherwise, the
program outputs nothing. if weight > 200
if Put "Too heavy" to output
if-else
if-elseif
13. A program should output "Too heavy" if if-else
weight is over 200, and output "OK" other-
wise. if weight > 200
if Put "Too heavy" to output
if-else else
if-elseif Put "OK" to output
14. A program should output "Too heavy" if if-elseif
weight is over 200, "Warning" if weight is
over 180, and "OK" otherwise. if weight > 200
if Put "Too heavy" to output
if-else elseif weight > 180
if-elseif Put "Warning" to output
else
Put "OK" to output
15. Each time through a loop's statements is iteration
called an _________