CIS116: QUIZ 4

Lakukan tugas rumah & ujian kamu dengan baik sekarang menggunakan Quizwiz!

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

AND

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

All of these

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

And

Which operator would make the following expression false? True_____False - AND - NOT - OR - All of these - None of these

And

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

And and Or

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

Control

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

False

The first line of the case structure starts with the word CASE followed by the test expression. - True - False

False

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

False

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

Multiple

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

NOT

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

None of these

If the expression is false, the ________ operator will return true. - AND - NOT - OR - All of these - None of these

Not

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

Not

Which operator would make the following expression true? False_____True - AND - NOT - OR - All of these - None of these

OR

What type of operators are the following? > < >= <= == != - Boolean - Relational - Logical - Mathematical - None of these

Relational

A nested decision structure can achieve the same logic as a case structure. - True - False

True

A nested decision structure can be used to test more than one condition. - True - False

True

Decision structures are also known as selection structures. - True - False

True

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

True


Set pelajaran terkait

Managerial Accounting Formulas Final

View Set

Section 4: Sleep and Dreaming (Module 8)

View Set

OSHA: Responding to an Emergency

View Set

Comparing the Major a Personality Theories

View Set