CIS116: QUIZ 4

24 July 2022
4.7 (114 reviews)
20 test answers

Unlock all answers in this set

Unlock answers (16)
question
Which of the following operators reverses the logic of its operand? - NOT - AND - OR - All of these - None of these
answer
NOT
question
Which operator is best to determine whether x contains a value in the range of 10 through 57? - AND - NOT - OR - == - None of these
answer
And
question
Which operator would make the following expression false? True_____False - AND - NOT - OR - All of these - None of these
answer
And
question
A nested decision structure can achieve the same logic as a case structure. - True - False
answer
True
question
A nested decision structure can be used to test more than one condition. - True - False
answer
True
question
What two logical operators perform short-circuit evaluation? - NOT and OR - AND and OR - AND and NOT - All of these - None of these
answer
And and Or
question
The first line of the case structure starts with the word CASE followed by the test expression. - True - False
answer
False
question
The short-circuit evaluation is performed with expressions containing any logical operators. - True - False
answer
False
question
Which operator is used to determine that the operands are not exactly of the same value? - = - ! - =! - == - None of these
answer
None of these
question
The If-Then-Else statement can be used to simplify a complex nested decision structure. - True - False
answer
True
question
The ________ operator could be used, in some situations, to simplify nested selection structures. - AND - NOT - OR - All of these - None of these
answer
AND
question
Which operator would make the following expression true? False_____True - AND - NOT - OR - All of these - None of these
answer
OR
question
Which structure is a logical design that controls the order in which a set of statements executes? - Control - Sequence - Module - Terminal - None of these
answer
Control
question
An If statement will produce unpredictable results if the programmer does not use proper indentations in pseudocode. - True - False
answer
False
question
The ________ operator is a unary operator, as it works with only one operand. - AND - NOT - OR - All of these - None of these
answer
Not
question
A case structure is a ________ alternative decision structure. - Single - Dual - Multiple - Single or dual - All of these
answer
Multiple
question
Decision structures are also known as selection structures. - True - False
answer
True
question
Which of the following is a logical operator? - AND - NOT - OR - All of these - None of these
answer
All of these
question
If the expression is false, the ________ operator will return true. - AND - NOT - OR - All of these - None of these
answer
Not
question
What type of operators are the following? > < >= <= == != - Boolean - Relational - Logical - Mathematical - None of these
answer
Relational