1) In a decision structure, the _____ clause executes when the condition is fals
ID: 638722 • Letter: 1
Question
1) In a decision structure, the _____ clause executes when the condition is false.
a) If
b) While
c) Else
d) Case
2) The expression amount < 10 is a(n) _____ expression.
a) arithmetic
b) logical
c) Boolean
d) unary
3) Both conditions must be false in order for the _____ operator to evaluate to false
a) &&
b) ||
c) !=
d) ==
4) Which Boolean expression would be used to select all employees who make between $10 and $12 per hour?
a) rate < 10 || rate > 12
b) rate < 10 && rate > 12
c) rate >= 10 || rate <= 12
d) rate >= 10 && rate <= 12
5) Evaluate each of the following conditions (as being true or false). Assume A
= 3, B = 6, C = 3, and D = 18.
A * B = D AND A != C
a) True
b) False
6) Evaluate each of the following conditions (as being true or false). Assume A
= 3, B = 10, and Z =
Explanation / Answer
i think that 1)A 2)B 3)A 4)C 5)A 6)B 7)D 8)A 9)A
Related Questions
Navigate
Integrity-first tutoring: explanations and feedback only — we do not complete graded work. Learn more.