GoConqr has a new look! Let us know what you think.

Quiz

comp ch5

David Berman 12 questions

Take the quiz

Questions in this quiz (12)

  1. 1Which of the following is not a valid value for a boolean?
    1. Atrue
    2. Bfalse
    3. Cyes
    4. DThe above are all valid
  2. 2What symbol represents the and operator in JavaScript?
    1. AAND
    2. Band
    3. C&
    4. D&&
  3. 3What symbol represents the or operator in JavaScript?
    1. AOR
    2. Bor
    3. C|
    4. D| |
  4. 4After the following code runs, what is the value of isWeekend?

    var isSaturday = true;
    var isSunday = false;
    var isWeekend = isSaturday || isSunday;
    1. Atrue
    2. Bfalse
    3. C"isWeekend"
    4. D"isSaturday || isSunday"
  5. 5What is the proper way to compare if two values are equal in a boolean expression in JavaScript?
    1. A=
    2. B==
    3. CEQUALS
    4. DIS
  6. 6What is the proper operator for “not equals” in JavaScript?
    1. A=!
    2. B!=
    3. C~=
    4. DNOT EQUALS
  7. 7Determine whether the following expression would evaluate to true or false?

    7 = 6 OR 8 ≥ 4
    1. ATrue
    2. BFalse
  8. 8Determine whether the following expression would evaluate to true or false?

    (9 ≠ 13 AND 12 < 4) OR 15 < 9
    1. ATrue
    2. BFalse
  9. 9Which of the following Boolean expressions is equivalent to the expression?

    a AND (b OR c)
    1. A(a AND b) OR c
    2. B(a AND b) AND (a AND c)
    3. C(a AND b) OR (a AND c)
    4. D(b AND c) OR a
  10. 10Which of the following Boolean expressions is equivalent to the expression

    (a OR b) AND NOT (c OR d)
    1. A(a OR b) AND ((NOT c) OR (NOT d))
    2. B(a AND NOT (c OR d)) OR b
    3. C(a OR b) AND (NOT c) AND (NOT d)
    4. DNOT (a AND b) AND NOT (c OR d)

Information

Description
Quiz on comp ch5, created by David Berman on 02/12/2019.
Language
English
Views
0
Rating
No ratings yet
Rate this quiz
Rate this quiz

Feedback

What is it about?

What do you think of the new look?

How do you like it?