Ch 4/Week 9 Intro to Decision Structures

¡Supera tus tareas y exámenes ahora con Quizwiz!

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

AND

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

AND and OR

Assuming x is 5, y is 6, and z is 8, indicate by circling the T or F whether each of the following relational expressions is true or false: x ==5

True

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

True

True/False: In an expression with an OR operator, it does not matter which sub expression is true for the compound expression to be true.

True

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

True

You can use relational operators to compare strings.

True

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

Diamond

Assuming x is 5, y is 6, and z is 8, indicate by circling the T or F whether each of the following relational expressions is true or false: (2 + x) != y

False

Assuming x is 5, y is 6, and z is 8, indicate by circling the T or F whether each of the following relational expressions is true or false: x <= (y * 2)

False

The = operator and the == operator perform the same operation when used in a Boolean expression.

False

The If-Then-Else statement should be used to write a single alternative decision structure.

False

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

False

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

Multiple

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

NOT

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

NOT


Conjuntos de estudio relacionados

2020 IAAP CAP Exam Domain 1 - Organizational Communication (PO1)

View Set

JSRCC NSG 170 - PrepU 1. Gas Exchange

View Set

Principles of Supervision Chapter 3

View Set

Abbreviated Business Plan Outline p.156

View Set