Exam 5: The Selection Structure

arrow
  • Select Tags
search iconSearch Question
  • Select Tags

A ____ evaluates to a true or false value.

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

C

Programs with several levels of nesting can be hard to follow.

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

True

A Case structure is used most often when conditions are treated separately.

Free
(True/False)
4.7/5
(31)
Correct Answer:
Verified

True

Based on the grading scale below, what is the most efficient way of determining a grade? • A if the grade percentage is greater than or equal to 90 • B if it's greater than or equal to 80 and less than 90 • C if it's greater than or equal to 70 and less than 80 • D if it's greater than or equal to 60 and less than 70 • F if the grade percentage is less than 60

(Multiple Choice)
4.9/5
(47)

In some languages, including JavaScript, the Case structure can test only for equality of values, not inequalities using ranges of numbers.

(True/False)
4.9/5
(45)

Which of the following statements corresponds to the question below? Is the value of status not equal to "denied"?

(Multiple Choice)
4.9/5
(38)

  -The flowchart segment in the accompanying figure depicts a ____. -The flowchart segment in the accompanying figure depicts a ____.

(Multiple Choice)
4.8/5
(42)

Which of the following is an example of a single-outcome selection?

(Multiple Choice)
4.8/5
(45)

Pseudocode uses indentation and the keywords End If to define the scope.

(True/False)
4.9/5
(37)

On a flowchart, a question mark at the end of the expression emphasizes that the condition must be evaluated.

(True/False)
4.8/5
(34)

  -The flowchart in the accompanying figure depicts a ____. -The flowchart in the accompanying figure depicts a ____.

(Multiple Choice)
4.8/5
(37)

Which of the following statements corresponds to the question below? Is the value of hours greater than 40?

(Multiple Choice)
4.9/5
(45)

Which of the following statements corresponds to the question below? Is the value of grade greater than or equal to 90?

(Multiple Choice)
4.8/5
(42)

  -The flowchart in the accompanying figure depicts a ____. -The flowchart in the accompanying figure depicts a ____.

(Multiple Choice)
4.8/5
(23)

A ____ performs one set of steps if the condition is true and a different set of steps if the condition is false.

(Multiple Choice)
4.7/5
(34)

A selection structure depends on a(n) ____, an expression describing the relationship between two values that's evaluated when it appears in program code.

(Multiple Choice)
4.8/5
(31)

The word "if" is the foundation of the selection structure.

(True/False)
4.8/5
(45)

Which of the following programs displays a "passing grade" message if the score is 60 or above?

(Multiple Choice)
4.9/5
(42)

  -The following flowchart is an example of a ____. -The following flowchart is an example of a ____.

(Multiple Choice)
4.9/5
(44)

A Case structure is limited in most languages to integers (whole numbers), text characters and decimal numbers.

(True/False)
4.8/5
(47)
Showing 1 - 20 of 50
close modal

Filters

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