Exam 5: The Selection Structure
Exam 1: The Craft of Programming50 Questions
Exam 2: The Javascript Language49 Questions
Exam 3: Objects, Events, and Graphical User Interfaces48 Questions
Exam 4: The Sequence Structure50 Questions
Exam 5: The Selection Structure50 Questions
Exam 6: The Repetition Structure50 Questions
Exam 7: Complex Conditions49 Questions
Exam 8: Modules and Functions50 Questions
Exam 9: Menus and Data Validation50 Questions
Exam 10: Arrays50 Questions
Exam 11: Building Programs50 Questions
Exam 12: Sorting Data30 Questions
Exam 13: Recursion50 Questions
Select questions type
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 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
Filters
- Essay(0)
- Multiple Choice(0)
- Short Answer(0)
- True False(0)
- Matching(0)