Filters
Question type

Study Flashcards

What is the result of the following Boolean expression, if x equals 5, y equals 3, and z equals 8? X < y or z > x


A) true
B) false
C) 8
D) 5

E) C) and D)
F) A) and C)

Correct Answer

verifed

verified

The decision structure that has two possible paths of execution is known as _____.


A) single alternative
B) double alternative
C) dual alternative
D) two alternative

E) A) and B)
F) A) and D)

Correct Answer

verifed

verified

C

The _______________ statement is used to create a decision structure.

Correct Answer

verifed

verified

Boolean variables are commonly used as _______________ to indicate whether a specific condition exists.

Correct Answer

verifed

verified

A(n) _______________ decision structure provides only one alternative path of execution.

Correct Answer

verifed

verified

A(n) _______________ expression is made up of two or more Boolean expressions.

Correct Answer

verifed

verified

The not operator is a unary operator and it must be a compound expression.

A) True
B) False

Correct Answer

verifed

verified

Expressions that are tested by the if statement are called Boolean expressions.

A) True
B) False

Correct Answer

verifed

verified

What is the result of the following Boolean expression, if x equals 5, y equals 3, and z equals 8? Not (x < y or z > x) and y < z


A) true
B) false
C) 8
D) 5

E) A) and B)
F) A) and C)

Correct Answer

verifed

verified

Python provides a special version of a decision structure known as the _______________ statement, which makes the logic of the nested decision structure simpler to write.

Correct Answer

verifed

verified

In flowcharting, the _______________ symbol is used to represent a Boolean expression.

Correct Answer

verifed

verified

What is the result of the following Boolean expression, if x equals 5, y equals 3, and z equals 8? X < y and z > x


A) true
B) false
C) 8
D) 5

E) All of the above
F) None of the above

Correct Answer

verifed

verified

In a decision structure, the action is _______________ executed because it is performed only when a certain condition is true.

Correct Answer

verifed

verified

When using the _____ operator, one or both subexpressions must be true for the compound expression to be true.


A) Or
B) And
C) Not
D) Maybe

E) B) and C)
F) A) and D)

Correct Answer

verifed

verified

The if statement causes one or more statements to execute only when a Boolean expression is true.

A) True
B) False

Correct Answer

verifed

verified

In Python the _____ symbol is used as the equality operator.


A) ==
B) =
C) >=
D) <=

E) C) and D)
F) A) and B)

Correct Answer

verifed

verified

A

Decision structures are also known as selection structures.

A) True
B) False

Correct Answer

verifed

verified

Which logical operators perform short-circuit evaluation?


A) or, not
B) not, and
C) or, and
D) and, or, not

E) C) and D)
F) A) and D)

Correct Answer

verifed

verified

The Python language is not sensitive to block structuring of code.

A) True
B) False

Correct Answer

verifed

verified

False

A(n) _______________ operator determines whether a specific relationship exists between two values.

Correct Answer

verifed

verified

Showing 1 - 20 of 35

Related Exams

Show Answer