Mathorio
Answer key
Introduction to Boolean Logic
Show your work for each problem.
- 1.In Boolean logic, how many possible values are there?
- a)Unlimited
- b)3
- c)2
- d)1
Answer: 1
Boolean logic has exactly 2 values: TRUE (1) and FALSE (0). This binary system is the foundation of all computing.
- 2.What is TRUE AND TRUE?
- a)TRUE
- b)MAYBE
- c)ERROR
- d)FALSE
Answer: TRUE
TRUE AND TRUE = TRUE. The AND operator only returns TRUE when both inputs are TRUE. Since both values are TRUE here, the result is TRUE.
- 3.What is TRUE AND FALSE?
- a)MAYBE
- b)FALSE
- c)TRUE
- d)ERROR
Answer: FALSE
TRUE AND FALSE = FALSE. Since AND requires both values to be TRUE, having one FALSE makes the entire expression FALSE.
- 4.What is NOT TRUE? Write TRUE or FALSE.
Answer: FALSE
NOT TRUE = FALSE. The NOT operator simply reverses the Boolean value. TRUE becomes FALSE.
- 5.What is FALSE OR TRUE? Write TRUE or FALSE.
Answer: TRUE
FALSE OR TRUE = TRUE. The OR operator returns TRUE if at least one input is TRUE. Since we have one TRUE, the result is TRUE.
- 6.What is FALSE OR FALSE?
- a)TRUE
- b)ERROR
- c)FALSE
- d)MAYBE
Answer: FALSE
FALSE OR FALSE = FALSE. OR returns TRUE only if at least one value is TRUE. Since both are FALSE, the result is FALSE.
- 7.What is NOT FALSE? Write TRUE or FALSE.
Answer: TRUE
NOT FALSE = TRUE. The NOT operator flips the value. FALSE becomes TRUE.
- 8.Evaluate: (TRUE AND FALSE) OR TRUE
Answer: TRUE
- First, solve the parentheses: TRUE AND FALSE = ? FALSE
- Now we have: FALSE OR TRUE = ? TRUE
- 9.Evaluate: NOT (TRUE OR FALSE)
Answer: FALSE
- First, solve the parentheses: TRUE OR FALSE = ? TRUE
- Now apply NOT: NOT TRUE = ? FALSE
- 10.Which statement about OR is correct?
- a)TRUE OR TRUE = TRUE
- b)OR requires both to be TRUE
- c)TRUE OR TRUE = FALSE
- d)OR always returns FALSE
Answer: TRUE OR TRUE = TRUE
TRUE OR TRUE = TRUE. In Boolean logic, OR returns TRUE if at least one input is TRUE. This includes when both are TRUE (called 'inclusive or').
- 11.Evaluate: TRUE AND (NOT FALSE)
Answer: TRUE
- First, solve the parentheses: NOT FALSE = ? TRUE
- Now we have: TRUE AND TRUE = ? TRUE
- 12.Evaluate: (TRUE OR FALSE) AND (NOT TRUE)
Answer: FALSE
- Solve first parentheses: TRUE OR FALSE = ? TRUE
- Solve second parentheses: NOT TRUE = ? FALSE
- Now combine: TRUE AND FALSE = ? FALSE
- 13.Evaluate: NOT (FALSE AND FALSE) OR TRUE
Answer: TRUE
- Solve innermost parentheses: FALSE AND FALSE = ? FALSE
- Apply NOT: NOT FALSE = ? TRUE
- Final OR: TRUE OR TRUE = ? TRUE
- 14.You need a ticket AND (adult OR accompanied_by_adult) to enter. You have a ticket (TRUE), you're not an adult (FALSE), and you're accompanied by an adult (TRUE). Can you enter?
- a)Only with extra payment
- b)Not enough information
- c)No, I cannot enter
- d)Yes, I can enter
Answer: Yes, I can enter
ticket AND (adult OR accompanied) = TRUE AND (FALSE OR TRUE) = TRUE AND TRUE = TRUE. You can enter!
- 15.Evaluate: (NOT TRUE) AND (NOT FALSE)
Answer: FALSE
- Solve first NOT: NOT TRUE = ? FALSE
- Solve second NOT: NOT FALSE = ? TRUE
- Combine with AND: FALSE AND TRUE = ? FALSE