Title: Module 3 Quiz (Ungraded)
Course: COP 1510 Programming Concepts > Section: Module 3 - Decision Structures and Boolean Logic

Q: The ________ symbol indicates that some condition must be tested in a flowchart.
- Rectangle
- Oval
- Parallelogram
- Square
- Diamond
A: Diamond

- Control
- Decision
- Selection
- Sequence
- None of these
A: Sequence

Q: Which structure is a logical design that controls the order in which a set of statements executes?
- Control
- Sequence
- Module
- Terminal
- None of these
A: Control

Q: Which of the following is a logical operator?
- AND
- NOT
- OR
- All of these
- None of these
A: All of these

Q: A case structure is a ________ alternative decision structure.
- Single
- Dual
- Multiple
- Single or dual
- All of these
A: Multiple

Q: Which operator is used to determine that the operands are not exactly of the same value?
- =
- !
- =!
- ==
- None of these
A: None of these

Q: What type of operator can be used to determine whether a specific relationship exists between two values?
- Boolean
- Relational
- Logical
- Mathematical
- None of these
A: Relational

- AND
- NOT
- OR
- All of these
- None of these
A: OR

Q: Which operator is best to determine whether x contains a value in the range of 10 through 57?
- AND
- NOT
- OR
- ==
- None of these
A: AND

Q: The ________ operator could be used, in some situations, to simplify nested selection structures.
- AND
- NOT
- OR
- All of these
- None of these
A: AND

Q: The ________ operator is a unary operator, as it works with only one operand.
- AND
- NOT
- OR
- All of these
- None of these
A: NOT

Q: A condition is a ________ expression.
- Boolean
- Relational
- Logical
- Mathematical
- None of these
A: Boolean

Q: Which of the following operators reverses the logic of its operand?
- NOT
- AND
- OR
- All of these
- None of these
A: NOT

- Boolean
- Relational
- Logical
- Mathematical
- None of these
A: Relational

Q: What two logical operators perform short-circuit evaluation?
- NOT and OR
- AND and OR
- AND and NOT
- All of these
- None of these
A: AND and OR

Q: True/False: Although the sequence structure is heavily used in programming, it cannot handle every type of task.
- True
- False
A: True

Q: True/False: The short-circuit evaluation is performed with expressions containing any logical operators.
- True
- False
A: False

Q: True/False: The If-Then-Else statement should be used to write a single alternative decision structure.
- True
- False
A: False

Q: True/False: An If statement will produce unpredictable results if the programmer does not use proper indentations in pseudocode.
- True
- False
A: False

Q: True/False: The If-Then-Else statement can be used to simplify a complex nested decision structure.
- True
- False
A: True