Exam 7: Complex Conditions

arrow
  • Select Tags
search iconSearch Question
  • Select Tags

When testing whether the value of a Boolean variable is true, you do not need to include the relational operator and the value (as in == True) in the condition.

(True/False)
4.8/5
(36)

Conditions in JavaScript are enclosed in parentheses.

(True/False)
4.9/5
(38)

Which of the following pseudocode statements express the condition below? A movie theater admits a customer free if he or she is under 2 years old or if he or she is 65 or older.

(Multiple Choice)
4.9/5
(34)

A ____ occurs when two or more conditions have to be evaluated for an action to take place.

(Multiple Choice)
4.8/5
(35)

In JavaScript, the Or operator takes precedence over And.

(True/False)
4.8/5
(31)

Conditions are joined with the keyword And or Or.

(True/False)
4.7/5
(35)

The Not operator, which is placed before a condition to negate it, is a(n) ____ because it operates on a single condition or a single combined condition.

(Multiple Choice)
4.8/5
(33)

A method for indicating the outcome of combining conditions that appeals to right-brained people is a ____.

(Multiple Choice)
4.8/5
(39)

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

(Multiple Choice)
4.8/5
(42)

Which of the following generates a random number between 0 and 1?

(Multiple Choice)
5.0/5
(38)

An advantage of the Boolean data type is that when testing a variable's value, a true value is assumed without having to state it.

(True/False)
4.9/5
(49)

Each path on a binary tree leads to another condition that also splits into two paths.

(True/False)
4.8/5
(41)

Which of the following uses the unary logical operator?

(Multiple Choice)
4.9/5
(36)

Which of the following represents an example of data validation?

(Multiple Choice)
4.9/5
(47)

The Math class in JavaScript has the random() method.

(True/False)
4.8/5
(34)

When one of the conditions in a complex condition is treated differently than the combined condition, nested conditions result in the clearest logic and the fewest comparisons.

(True/False)
4.8/5
(33)

In a decision table, you put a dash in cells containing irrelevant conditions and then merge the columns.

(True/False)
4.7/5
(36)

A decision table is usually converted into a binary tree.

(True/False)
4.8/5
(38)

When testing to see whether a Boolean variable's value is false, you must include the == True or use the keyword Not in front of the variable.

(True/False)
4.9/5
(35)

When two conditions are joined by the logical ____ operator, both must be true for the combined condition to be true.

(Multiple Choice)
4.9/5
(33)
Showing 21 - 40 of 49
close modal

Filters

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