Filters
Question type

Study Flashcards

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


A) AND
B) NOT
C) OR
D) All of the above
E) None of the above

F) D) and E)
G) B) and E)

Correct Answer

verifed

verified

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

A) True
B) False

Correct Answer

verifed

verified

False

The __________ operator requires both sub expressions to be true for the compound expression to be true.

Correct Answer

verifed

verified

A case structure is a ___________ alternative decision structure.


A) Single
B) Dual
C) Multiple
D) Single or dual
E) All of the above

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

Correct Answer

verifed

verified

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


A) =
B) !
C) =!
D) ==
E) None of the above

F) A) and E)
G) B) and E)

Correct Answer

verifed

verified

When a program performs actions only under certain conditions,it is using a _________ structure.

Correct Answer

verifed

verified

Which operator is best to determine whether x contains a value in the range of 10 through 57?


A) AND
B) NOT
C) OR
D) ==
E) None of the above

F) A) and B)
G) A) and C)

Correct Answer

verifed

verified

Which of the following is a logical operator?


A) AND
B) NOT
C) OR
D) All of the above
E) None of the above

F) C) and D)
G) A) and B)

Correct Answer

verifed

verified

D

The _____ operator is best to determine whether a number is outside a range.

Correct Answer

verifed

verified

Although the sequence structure is heavily used in programming,it cannot handle every type of task.

A) True
B) False

Correct Answer

verifed

verified

True

Boolean variables are commonly used as __________,which indicate whether a specific condition exits.

Correct Answer

verifed

verified

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

A) True
B) False

Correct Answer

verifed

verified

A ____________ expression evaluates as either true or false.

Correct Answer

verifed

verified

The expression with an AND operator ___________ when the expression on its left is false and so it does not evaluate the expression on its right.

Correct Answer

verifed

verified

In many languages the case structure is called a ____________ statement.


A) Branch
B) Jump
C) Selective
D) Switch
E) All of the above

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

Correct Answer

verifed

verified

Consider the following statement: A store is giving a discount of 30% for all purchases of over $100. Which of the following is not the appropriate structure to use to program the statement?


A) Control
B) Decision
C) Selection
D) Sequence
E) None of the above

F) B) and D)
G) A) and B)

Correct Answer

verifed

verified

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


A) Boolean
B) Relational
C) Logical
D) Mathematical
E) None of the above

F) A) and D)
G) None of the above

Correct Answer

verifed

verified

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

A) True
B) False

Correct Answer

verifed

verified

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

A) True
B) False

Correct Answer

verifed

verified

The _________________ decision structure provides only one alternative path of execution.

Correct Answer

verifed

verified

Showing 1 - 20 of 44

Related Exams

Show Answer