CIS116- QUIZ 4

Your page rank:

Total word count: 475
Pages: 2

Calculate the Price

- -
275 words
Looking for Expert Opinion?
Let us have a look at your work and suggest how to improve it!
Get a Consultant

Which of the following operators reverses the logic of its operand?

– NOT
– AND
– OR
– All of these
– None of these

NOT

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

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

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

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

Which operator is used to determine that the operands are not exactly of the same value?

– =
– !
– =!
– ==
– None of these

None of these

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

– True
– False

True

The ________ operator could be used, in some situations, to simplify nested selection structures.

– AND
– NOT
– OR
– All of these
– None of these

AND

Which operator would make the following expression true?
False_____True

– AND
– NOT
– OR
– All of these
– None of these

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 ________ operator is a unary operator, as it works with only one operand.

– AND
– NOT
– OR
– All of these
– None of these

Not

A case structure is a ________ alternative decision structure.

– Single
– Dual
– Multiple
– Single or dual
– All of these

Multiple

Decision structures are also known as selection structures.

– True
– False

True

Which of the following is a logical operator?

– AND
– NOT
– OR
– All of these
– None of these

All of these

If the expression is false, the ________ operator will return true.

– AND
– NOT
– OR
– All of these
– None of these

Not

What type of operators are the following?
> < >= <= == !=

– Boolean
– Relational
– Logical
– Mathematical
– None of these

Relational

Share This
Flashcard

More flashcards like this

NCLEX 10000 Integumentary Disorders

When assessing a client with partial-thickness burns over 60% of the body, which finding should the nurse report immediately? a) ...

Read more

NCLEX 300-NEURO

A client with amyotrophic lateral sclerosis (ALS) tells the nurse, "Sometimes I feel so frustrated. I can’t do anything without ...

Read more

NASM Flashcards

Which of the following is the process of getting oxygen from the environment to the tissues of the body? Diffusion ...

Read more

Unfinished tasks keep piling up?

Let us complete them for you. Quickly and professionally.

Check Price

Successful message
sending