Exam 9: Time to Leave the Nest Nested Selection Structures

arrow
  • Select Tags
search iconSearch Question
flashcardsStudy Flashcards
  • Select Tags

When the computer processes the expression 12 > 0 AndAlso 12 < 10 * 2, it evaluates the ____ operator first.

Free
(Multiple Choice)
4.8/5
(34)
Correct Answer:
Verified

A

When swapping values there is no need to swap when the two numbers are equal.

Free
(True/False)
4.9/5
(36)
Correct Answer:
Verified

True

Only one path in a selection structure can include instructions that declare variables, perform calculations, and so on.

Free
(True/False)
4.8/5
(43)
Correct Answer:
Verified

False

With the ____ operator, all conditions must be True for the compound condition to be True.

(Multiple Choice)
4.7/5
(36)

You use the selection structure to make a decision and then select the appropriate path-either the true path or the false path-based on the result.

(True/False)
4.8/5
(41)

The AndAlso operator has a precedence number of 2.

(True/False)
4.7/5
(36)

When comparing two numbers, keep in mind that the first number can be greater than, less than, or equal to the second number.

(True/False)
4.8/5
(35)

The instructions in the true path of a nested structure should not be indented within the inner selection structure.

(True/False)
4.9/5
(37)

You use a ____ selection structure when more than one decision must be made before the appropriate action can be taken.

(Multiple Choice)
4.8/5
(42)

In a nested structure, the instructions in both the true and false paths should be ____ within the outer selection structure.

(Multiple Choice)
4.7/5
(33)

If an expression contains logical operators, comparison operators, and arithmetic operators, ____.

(Multiple Choice)
4.9/5
(33)

With the ____ operator, only one of the conditions needs to be True for the compound condition to be True.

(Multiple Choice)
4.9/5
(41)

The pseudocode "if the hours worked are greater than or equal to 0 but less than or equal to 40" is coded as ____ in Visual Basic.

(Multiple Choice)
4.9/5
(27)

When either a selection structure's true path or its false path contains another selection structure, the inner selection structure is referred to as a(n) ____ structure.

(Multiple Choice)
4.9/5
(38)

You cannot use a nested selection structure when more than one decision must be made before the appropriate action can be taken.

(True/False)
4.9/5
(39)

When the computer processes the expression 12 > 0 AndAlso 12 < 10 * 2, it evaluates the ____ operator last.

(Multiple Choice)
5.0/5
(36)

Expressions containing logical operators always evaluate to a(n) ____ value.

(Multiple Choice)
4.9/5
(34)

The OrElse operator has a precedence number of 9.

(True/False)
4.7/5
(48)

Logical operators are always evaluated before any comparison operators in an expression.

(True/False)
4.8/5
(40)

Only one path in a selection structure can include other selection structures.

(True/False)
4.7/5
(46)
Showing 1 - 20 of 25
close modal

Filters

  • Essay(0)
  • Multiple Choice(0)
  • Short Answer(0)
  • True False(0)
  • Matching(0)