Boolean Expressions MCQ Practice

Question 1 of 10

What is the value of the expression (true AND false)?

  1. A. false
  2. B. 0
  3. C. undefined
  4. D. true

Question 2 of 10

What is the value of NOT (false)?

  1. A. 0
  2. B. true
  3. C. false
  4. D. NOT

Question 3 of 10

Evaluate (true OR false) AND false. Parentheses are evaluated as written.

  1. A. NOT false
  2. B. true
  3. C. false
  4. D. true OR false

Question 4 of 10

Which row of the truth table for A AND B is incorrect?

A B A AND B
true true true
true false false
false true true
false false false
  1. A. Row 4
  2. B. Row 1
  3. C. Row 2
  4. D. Row 3

Question 5 of 10

Let p be true and q be false. What is NOT (p OR q) AND (p OR NOT q)? Expand using a truth-table style trace.

  1. A. false
  2. B. p
  3. C. q
  4. D. true

Question 6 of 10

Evaluate (false OR (true AND NOT false)).

  1. A. false OR false
  2. B. true
  3. C. false
  4. D. NOT true

Question 7 of 10

If raining is true and weekend is false, what is raining OR weekend?

  1. A. raining
  2. B. weekend
  3. C. true
  4. D. false

Question 8 of 10

Which expression is equivalent to NOT (a AND b) based on a truth-table comparison?

  1. A. a OR b
  2. B. a AND NOT b
  3. C. NOT a AND NOT b
  4. D. (NOT a) OR (NOT b)

Question 9 of 10

For x = 4 and y = 9, evaluate the Boolean expression (x < 5) AND (y > 10).

  1. A. false
  2. B. 4
  3. C. 9
  4. D. true

Question 10 of 10

What is displayed?

a โ† true
b โ† false
DISPLAY ((NOT a) OR b)
  1. A. true
  2. B. false
  3. C. NOT a
  4. D. a OR b