Exam 5: The Selection Structure

arrow
  • Select Tags
search iconSearch Question
  • Select Tags

You should use braces for all selection structures, even if the scope of the true or false branch consists of only one statement.

(True/False)
4.8/5
(41)

You should put a semicolon after the condition in a selection structure.

(True/False)
4.9/5
(37)

In a JavaScript, the entire Case structure is enclosed in a set of braces. However, the scope for each condition does not have to be enclosed in a separate set of braces.

(True/False)
4.8/5
(34)

When creating a flowchart to represent selection structures, you use the rectangular symbol for a condition expression.

(True/False)
4.8/5
(38)

In JavaScript, a Case structure starts with the keyword ____, and the name of the variable to test is enclosed in parentheses.

(Multiple Choice)
4.8/5
(41)

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

(Multiple Choice)
4.7/5
(46)

  -The flowchart segment in the accompanying figure depicts a dual-outcome selection that tests the value of the number of correct items. -The flowchart segment in the accompanying figure depicts a dual-outcome selection that tests the value of the number of correct items.

(True/False)
4.8/5
(38)

The selection structure and its variations with Else If statements and Case structures are among the most powerful tools a programmer has.

(True/False)
4.8/5
(42)

A ____ structure evaluates a condition, which is an expression that's true or false.

(Multiple Choice)
4.9/5
(42)

The JavaScript code for the following algorithm is ____. If age >= 65 Then DiscountRate = 0.10 End If

(Multiple Choice)
4.9/5
(31)
Showing 41 - 50 of 50
close modal

Filters

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