Exam 7: Complex Conditions

arrow
  • Select Tags
search iconSearch Question
  • Select Tags

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:
Verified

False

In JavaScript, a single condition can be negated with the keyword Nor.

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

False

In JavaScript, the And operator is &.

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

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)

In JavaScript, the Not operator is ||.

(True/False)
4.7/5
(35)

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)

On a binary tree, ____ are used to represent outcomes.

(Multiple Choice)
4.9/5
(31)

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)

Which of the following sets of conditions is equivalent?

(Multiple Choice)
4.8/5
(43)

Numeric variables can be used to hold values such as "true" and "false" or "yes" and "no."

(True/False)
4.7/5
(45)

On a binary tree, ____ are used to represent conditions.

(Multiple Choice)
4.9/5
(33)

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)

The keywords And, Or, and Not, are known as ____.

(Multiple Choice)
4.8/5
(34)
Showing 1 - 20 of 49
close modal

Filters

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