1. Which of the following is the smallest binary number that can
be represented in 4 bits?
A. 0
B. 1
C. -8
D. -1
Answer: A) 0
Rationale: In a 4-bit binary number system, the smallest value is
0000, which is equivalent to 0 in decimal.
2. What is the result of performing the operation 1011 AND
1101?
A. 1111
B. 1011
,C. 1001
D. 1101
Answer: C) 1001
Rationale: The AND operation between two bits results in 1 only
if both bits are 1. Performing bitwise AND between 1011 and
1101 gives 1001.
3. Which of the following logic gates is also known as an inverter?
A. AND
B. OR
C. NOT
D. XOR
Answer: C) NOT
Rationale: A NOT gate inverts the input signal, i.e., it outputs the
opposite value of the input.
,4. The truth table for a NAND gate has how many rows?
A. 2
B. 4
C. 8
D. 16
Answer: B) 4
Rationale: A NAND gate is a 2-input gate. A truth table for any 2-
input gate has 4 possible combinations of inputs, so the NAND
gate truth table will have 4 rows.
5. What is the result of performing the operation 1101 XOR 1011?
A. 0110
B. 1111
C. 0100
D. 1000
Answer: A) 0110
, Rationale: The XOR operation gives 1 when the input bits are
different. Performing XOR between 1101 and 1011 results in
0110.
6. Which of the following is the Boolean expression for an AND
gate with two inputs A and B?
A. A + B
B. A * B
C. A + B'
D. A' * B
Answer: B) A * B
Rationale: The Boolean expression for an AND gate is A * B,
which represents the logical AND of inputs A and B.
7. A flip-flop can be used to store how many bits of information?
A. 1
B. 2
be represented in 4 bits?
A. 0
B. 1
C. -8
D. -1
Answer: A) 0
Rationale: In a 4-bit binary number system, the smallest value is
0000, which is equivalent to 0 in decimal.
2. What is the result of performing the operation 1011 AND
1101?
A. 1111
B. 1011
,C. 1001
D. 1101
Answer: C) 1001
Rationale: The AND operation between two bits results in 1 only
if both bits are 1. Performing bitwise AND between 1011 and
1101 gives 1001.
3. Which of the following logic gates is also known as an inverter?
A. AND
B. OR
C. NOT
D. XOR
Answer: C) NOT
Rationale: A NOT gate inverts the input signal, i.e., it outputs the
opposite value of the input.
,4. The truth table for a NAND gate has how many rows?
A. 2
B. 4
C. 8
D. 16
Answer: B) 4
Rationale: A NAND gate is a 2-input gate. A truth table for any 2-
input gate has 4 possible combinations of inputs, so the NAND
gate truth table will have 4 rows.
5. What is the result of performing the operation 1101 XOR 1011?
A. 0110
B. 1111
C. 0100
D. 1000
Answer: A) 0110
, Rationale: The XOR operation gives 1 when the input bits are
different. Performing XOR between 1101 and 1011 results in
0110.
6. Which of the following is the Boolean expression for an AND
gate with two inputs A and B?
A. A + B
B. A * B
C. A + B'
D. A' * B
Answer: B) A * B
Rationale: The Boolean expression for an AND gate is A * B,
which represents the logical AND of inputs A and B.
7. A flip-flop can be used to store how many bits of information?
A. 1
B. 2