Boolean Logic Practice Questions

GCSE · GCSE Computer Science · 152 free MCQs with instant results and detailed explanations.

152
Total
46
Easy
77
Medium
29
Hard

Start Practicing Boolean Logic

Take a timed quiz or customize your practice session

Quick Quiz (10 Qs) → Mock Test (25 Qs) ⚙ Customize

Sample Questions from Boolean Logic

Here are 10 sample questions. Start a quiz to get randomized questions with scoring.

Q1
Easy
Which of the following expressions evaluates to true when A is true and B is false?
A. A AND B
B. A OR B
C. NOT A
D. A XOR B
Show Answer & Explanation
Correct Answer: B
The expression 'A OR B' evaluates to true if either A or B is true. Here, A is true and B is false, so 'A OR B' is true.
Q2
Easy
What is the result of the expression (A AND B) OR (NOT A AND C) when A is false, B is true, and C is true?
A. True
B. False
C. Undefined
D. Depends on B
Show Answer & Explanation
Correct Answer: A
The expression evaluates as follows: (False AND True) OR (True AND True) = False OR True = True.
Q3
Easy
If the expression 'A XOR B' yields true, what can be concluded about A and B?
A. Both A and B are true.
B. Both A and B are false.
C. One of A or B is true, but not both.
D. A is true and B is false.
Show Answer & Explanation
Correct Answer: C
'A XOR B' is true only when exactly one of A or B is true, meaning either A is true and B is false, or A is false and B is true.
Q4
Medium
What is the result of the Boolean expression A AND (B OR C) when A is true, B is false, and C is true?
A. true
B. false
C. undefined
D. cannot be determined
Show Answer & Explanation
Correct Answer: A
The expression evaluates to true because A is true, and (B OR C) is also true (since C is true). Therefore, true AND true equals true.
Q5
Medium
If a binary expression is represented as A = NOT(B AND C), what is the value of A when B is true and C is false?
A. true
B. false
C. undefined
D. depends on D
Show Answer & Explanation
Correct Answer: A
The expression B AND C evaluates to false (true AND false = false). Therefore, NOT(false) equals true.
Q6
Medium
In a truth table for the expression A OR B, how many unique output combinations exist when both variables can be either true or false?
A. 2
B. 3
C. 4
D. 1
Show Answer & Explanation
Correct Answer: C
There are four possible combinations of A and B (TT, TF, FT, FF), leading to four unique outputs in the truth table: true, true, true, false.
Q7
Medium
If A = true, B = false, and C = true, what is the result of the expression (A AND B) OR (NOT C)?
A. true
B. false
C. undefined
D. cannot be determined
Show Answer & Explanation
Correct Answer: B
First, (A AND B) evaluates to false (true AND false = false). Next, NOT C is false (NOT true = false). Finally, false OR false is false.
Q8
Hard
Which of the following Boolean expressions is equivalent to A AND (B OR C)?
A. A AND B OR A AND C
B. A OR B AND C
C. A OR (B AND C)
D. A AND B AND C
Show Answer & Explanation
Correct Answer: A
The expression A AND (B OR C) can be distributed to A AND B OR A AND C, which means it is logically equivalent.
Q9
Hard
In a digital circuit using Boolean logic, if the inputs A, B, and C are such that A = 1, B = 0, and C = 1, what is the output of the expression (A AND NOT B) OR (C AND B)?
A. 1
B. 0
C. 0.5
D. Undefined
Show Answer & Explanation
Correct Answer: A
Substituting the values, we have (1 AND NOT 0) OR (1 AND 0) = (1 AND 1) OR (1 AND 0) = 1 OR 0 = 1.
Q10
Hard
If A is true, B is false, and C is true, what is the value of the expression A AND (B OR C)?
A. true
B. false
C. undefined
D. none of the above
Show Answer & Explanation
Correct Answer: A
The expression evaluates to true because B OR C is true (as C is true), and A AND true is true.

Showing 10 of 152 questions. Start a quiz to practice all questions with scoring and timer.

Practice All 152 Questions →

Boolean Logic โ€” GCSE GCSE Computer Science Practice Questions Online

This page contains 152 practice MCQs for the chapter Boolean Logic in GCSE GCSE Computer Science. The questions are organized by difficulty โ€” 46 easy, 77 medium, 29 hard โ€” so you can choose the right level for your preparation.

Every question includes a detailed explanation to help you understand the concept, not just memorize answers. Take a timed quiz to simulate exam conditions, or practice at your own pace with no time limit.