Filters
Question type

Study Flashcards

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


A) True
B) False
C) 8
D) 5

E) B) and D)
F) All of the above

Correct Answer

verifed

verified

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

Correct Answer

verifed

verified

Short -circuit evaluation is only performed with the not operator.

A) True
B) False

Correct Answer

verifed

verified

Multiple Boolean expressions can be combined by using a logical operator to create __________ expressions.


A) sequential
B) logical
C) compound
D) mathematical

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

Correct Answer

verifed

verified

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


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

E) A) and D)
F) All of the above

Correct Answer

verifed

verified

A Boolean variable can reference one of two values which are


A) yes or no
B) True or False
C) T or F
D) Y or N

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

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

Decision structures are also known as selection structures.

A) True
B) False

Correct Answer

verifed

verified

Nested decision statements are one way to test more than one condition.

A) True
B) False

Correct Answer

verifed

verified

True

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

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) All of the above
F) A) and D)

Correct Answer

verifed

verified

C

Python allows you to compare strings,but it is not case sensitive.

A) True
B) False

Correct Answer

verifed

verified

False

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

Correct Answer

verifed

verified

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


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

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

Correct Answer

verifed

verified

Python uses the same symbols for the assignment operator as for the equality operator.

A) True
B) False

Correct Answer

verifed

verified

An action in a single alternative decision structure is performed only when the condition is true.

A) True
B) False

Correct Answer

verifed

verified

In Python the __________ symbol is used as the not-equal-to operator.


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

E) All of the above
F) A) and B)

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

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) All of the above
F) A) and D)

Correct Answer

verifed

verified

The logical __________ operator reverses the truth of a Boolean expression.

Correct Answer

verifed

verified

Showing 1 - 20 of 40

Related Exams

Show Answer