ITP-100 Unit 2 Test Set 1 – Flashcards

Unlock all answers in this set

Unlock answers
question
A case structure is a ________ alternative decision structure. a. Single b. Dual c. Multiple d. Single or dual e. All of these
answer
Multiple
question
A nested decision structure can achieve the same logic as a case structure. True False
answer
True
question
Although the sequence structure is heavily used in programming, it cannot handle every type of task. Selected Answer: True False
answer
True
question
Consider the following statement: Which of the following is not the appropriate structure to use to program the statement? a. Control b. Decision c. Selection d. Sequence e. None of these
answer
Sequence
question
If the expression is false, the ________ operator will return true. a. AND b. NOT c. OR d. All of these e. None of these
answer
NOT
question
In many languages the case structure is called a ________ statement. a. Branch b. Jump c. Selective d. Switch e. All of these
answer
Switch
question
Pseudocode could be logically incorrect if not properly indented. True False
answer
False
question
The If-Then-Else statement should be used to write a single alternative decision structure. True False
answer
False
question
The ________ operator is a unary operator, as it works with only one operand. a. AND b. NOT c. OR d. All of these e. None of these
answer
NOT
question
The first line of the case structure starts with the word CASE followed by the test expression. True False
answer
False
question
What two logical operators perform short-circuit evaluation? a. NOT and OR b. AND and OR c. AND and NOT d. All of these e. None of these
answer
AND and OR
question
What type of operators are the following? a. Boolean b. Relational c. Logical d. Mathematical e. None of these
answer
Relational
question
Which of the following operators reverses the logic of its operand? a. NOT b. AND c. OR d. All of these e. None of these
answer
NOT
question
Which operator is used to determine that the operands are not exactly of the same value? a. = b. ! c. =! d. == e. None of these
answer
None of these
question
Which operator would make the following expression true? a. AND b. NOT c. OR d. All of these e. None of these
answer
OR
Get an explanation on any task
Get unstuck with the help of our AI assistant in seconds
New