Logic Gates
Q. If A = 0 and B = 0, what is the output of A AND B?
-
A.
0
-
B.
1
-
C.
2
-
D.
Undefined
Solution
The AND gate outputs 1 only when both inputs are 1. Since both A and B are 0, the output is 0.
Correct Answer: A — 0
Learn More →
Q. If A = 0 and B = 1, what is the output of A AND B?
-
A.
0
-
B.
1
-
C.
Undefined
-
D.
Both 0 and 1
Solution
The output of A AND B is 0 when A is 0.
Correct Answer: A — 0
Learn More →
Q. If A = 0 and B = 1, what is the output of the OR gate?
-
A.
0
-
B.
1
-
C.
2
-
D.
Undefined
Solution
An OR gate outputs 1 if at least one input is high. Since B is 1, the output is 1.
Correct Answer: B — 1
Learn More →
Q. If A = 0 and B = 1, what is the output of the XOR gate?
-
A.
0
-
B.
1
-
C.
2
-
D.
Undefined
Solution
The XOR gate outputs 1 when the inputs are different. Since A is 0 and B is 1, the output is 1.
Correct Answer: B — 1
Learn More →
Q. If A = 1 and B = 1, what is the output of the AND gate?
-
A.
0
-
B.
1
-
C.
2
-
D.
Undefined
Solution
The AND gate outputs 1 only when both inputs are high. Since A = 1 and B = 1, the output is 1.
Correct Answer: B — 1
Learn More →
Q. If A = 1 and B = 1, what is the output of the XOR gate?
-
A.
0
-
B.
1
-
C.
2
-
D.
Undefined
Solution
An XOR gate outputs 1 only when the inputs are different. Since both inputs are 1, the output is 0.
Correct Answer: A — 0
Learn More →
Q. If A = 1, B = 1, and C = 0, what is the output of A OR (B AND C)?
-
A.
0
-
B.
1
-
C.
2
-
D.
Undefined
Solution
B AND C = 1 AND 0 = 0. Then, A OR 0 = 1 OR 0 = 1.
Correct Answer: B — 1
Learn More →
Q. If A = 1, B = 1, and C = 0, what is the output of the expression (A OR B) AND C?
Solution
First, evaluate A OR B, which is 1 OR 1 = 1. Then, 1 AND 0 = 0.
Correct Answer: A — 0
Learn More →
Q. In a circuit with two inputs A and B, if A = 0 and B = 0, what is the output of an OR gate?
Solution
An OR gate outputs 1 if at least one input is 1. Since both inputs are 0, the output is 0.
Correct Answer: A — 0
Learn More →
Q. What is the output of a NAND gate when both inputs are high?
-
A.
0
-
B.
1
-
C.
Undefined
-
D.
Depends on the circuit
Solution
A NAND gate outputs 0 only when both inputs are 1. Therefore, if both inputs are high (1), the output is 0.
Correct Answer: A — 0
Learn More →
Q. What is the output of a NAND gate when both inputs are true?
-
A.
True
-
B.
False
-
C.
Undefined
-
D.
Depends on the circuit
Solution
A NAND gate outputs false when both inputs are true.
Correct Answer: B — False
Learn More →
Q. What is the output of a NOR gate when both inputs are false?
-
A.
True
-
B.
False
-
C.
Both true
-
D.
Both false
Solution
A NOR gate outputs true when both inputs are false.
Correct Answer: A — True
Learn More →
Q. What is the output of a NOR gate when both inputs are low?
-
A.
0
-
B.
1
-
C.
Undefined
-
D.
Depends on the circuit
Solution
A NOR gate outputs 1 only when both inputs are 0. Therefore, if both inputs are low (0), the output is 1.
Correct Answer: B — 1
Learn More →
Q. What is the output of a NOT gate when the input is 0?
-
A.
0
-
B.
1
-
C.
Undefined
-
D.
Depends on the circuit
Solution
A NOT gate inverts the input. Therefore, NOT 0 = 1.
Correct Answer: B — 1
Learn More →
Q. What is the output of a NOT gate when the input is true?
-
A.
True
-
B.
False
-
C.
Both True and False
-
D.
Undefined
Solution
A NOT gate outputs false when the input is true.
Correct Answer: B — False
Learn More →
Q. What is the output of an AND gate with inputs 0 and 1?
Solution
An AND gate outputs 1 only when both inputs are 1. Since one input is 0, the output is 0.
Correct Answer: A — 0
Learn More →
Q. What is the output of an AND gate with inputs A = 0 and B = 0?
-
A.
0
-
B.
1
-
C.
2
-
D.
Undefined
Solution
An AND gate outputs 1 only when both inputs are high. Since both A and B are 0, the output is 0.
Correct Answer: A — 0
Learn More →
Q. What is the output of an AND gate with inputs A = 0 and B = 1?
-
A.
0
-
B.
1
-
C.
2
-
D.
Undefined
Solution
An AND gate outputs 1 only when both inputs are high. Since A = 0, the output is 0.
Correct Answer: A — 0
Learn More →
Q. What is the output of an OR gate if one input is false and the other is true?
-
A.
True
-
B.
False
-
C.
Both True
-
D.
Both False
Solution
An OR gate outputs true if at least one input is true.
Correct Answer: A — True
Learn More →
Q. What is the output of an OR gate when both inputs are low?
-
A.
0
-
B.
1
-
C.
2
-
D.
Undefined
Solution
An OR gate outputs 0 only when both inputs are low. Therefore, the output is 0.
Correct Answer: A — 0
Learn More →
Q. What is the output of an XOR gate when both inputs are the same?
-
A.
True
-
B.
False
-
C.
Both True and False
-
D.
Undefined
Solution
An XOR gate outputs false when both inputs are the same.
Correct Answer: B — False
Learn More →
Q. What is the output of the expression NOT (A AND B) when A = 0 and B = 1?
-
A.
0
-
B.
1
-
C.
2
-
D.
Undefined
Solution
A AND B = 0 AND 1 = 0. Therefore, NOT (0) = 1.
Correct Answer: B — 1
Learn More →
Q. What is the truth value of the expression A AND (B OR C) when A = 1, B = 0, and C = 1?
Solution
First, evaluate B OR C, which is 0 OR 1 = 1. Then, A AND 1 = 1 AND 1 = 1.
Correct Answer: B — 1
Learn More →
Q. What is the truth value of the expression A AND (B OR C) when A = 1, B = 0, C = 1?
-
A.
0
-
B.
1
-
C.
2
-
D.
Undefined
Solution
B OR C = 0 OR 1 = 1. Then, A AND 1 = 1 AND 1 = 1.
Correct Answer: B — 1
Learn More →
Q. Which gate can be used to create a NOT operation using only NAND gates?
-
A.
Two NAND gates
-
B.
One NAND gate
-
C.
Three NAND gates
-
D.
Four NAND gates
Solution
A NOT operation can be created using two NAND gates.
Correct Answer: A — Two NAND gates
Learn More →
Q. Which gate can be used to invert the output of an AND gate?
-
A.
OR Gate
-
B.
NAND Gate
-
C.
XOR Gate
-
D.
NOT Gate
Solution
A NAND gate inverts the output of an AND gate.
Correct Answer: B — NAND Gate
Learn More →
Q. Which gate outputs true only when all inputs are false?
-
A.
AND
-
B.
OR
-
C.
NOR
-
D.
NAND
Solution
The NOR gate outputs true only when all inputs are false.
Correct Answer: C — NOR
Learn More →
Q. Which logic gate is equivalent to an AND gate followed by a NOT gate?
-
A.
OR
-
B.
NAND
-
C.
NOR
-
D.
XOR
Solution
The NAND gate is equivalent to an AND gate followed by a NOT gate, as it inverts the output of the AND gate.
Correct Answer: B — NAND
Learn More →
Q. Which logic gate is represented by the symbol '⊕'?
-
A.
AND Gate
-
B.
OR Gate
-
C.
NAND Gate
-
D.
XOR Gate
Solution
The symbol '⊕' represents the XOR gate.
Correct Answer: D — XOR Gate
Learn More →
Q. Which logic gate outputs true only when all inputs are false?
-
A.
AND
-
B.
OR
-
C.
NOR
-
D.
NAND
Solution
The NOR gate outputs true (1) only when all inputs are false (0).
Correct Answer: C — NOR
Learn More →
Showing 1 to 30 of 38 (2 Pages)