Exam 7: Complex Conditions
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
The following JavaScript code is a repetition statement.
if (age >= 18 && age <= 65) {
document.write("The age is between 18 and 65." + BR);
}
Free
(True/False)
4.7/5
(34)
Correct Answer:
False
In JavaScript, a single condition can be negated with the keyword Nor.
Free
(True/False)
4.9/5
(33)
Correct Answer:
False
If you are assigning a value to a Boolean variable, you need to include the assignment operator and the value = True or = False.
(True/False)
4.8/5
(41)
In JavaScript, you should use parentheses to make your intentions clear to both the computer and the reader.
(True/False)
4.8/5
(33)
And and Or are called ____ because they operate on two conditions, joining them into a combined condition.
(Multiple Choice)
4.9/5
(29)
In the following pseudocode, if any of three conditions evaluates as true, the combined condition is also true.
If code == "SF" Or code == "SP" Or code == "SB" Then
Display "Your order has been shipped."
End If
(True/False)
4.9/5
(25)
Which of the following is considered a dual-outcome selection?
(Multiple Choice)
4.8/5
(37)
Which of the following pseudocode statements expresses the condition below?
A hotel customer gets a 10% discount for showing a hotel club card or a travel club card.
(Multiple Choice)
5.0/5
(35)
Logical operations have a specified order of precedence, just as arithmetic operations do.
(True/False)
4.7/5
(39)
A(n) ____ is used when you need one action performed when the combined condition is true and another action performed when the combined condition is false.
(Multiple Choice)
4.9/5
(35)
A ____ traces all combinations by starting with one condition and splitting into true and false paths.
(Multiple Choice)
4.9/5
(45)
Numeric variables can be used to hold values such as "true" and "false" or "yes" and "no."
(True/False)
4.7/5
(45)
When two conditions joined by the logical And operator are evaluated, if the first one is false, there is no need for the computer to evaluate the second one.
(True/False)
4.8/5
(37)
The Boolean variable was developed by Tim Berners-Lee, who also developed logical concepts.
(True/False)
5.0/5
(46)
Showing 1 - 20 of 49
Filters
- Essay(0)
- Multiple Choice(0)
- Short Answer(0)
- True False(0)
- Matching(0)