Digital Electronics MCQs
10 practice questions on digital electronics — logic gates, binary numbers and flip-flops — with answers and explanations.
Q1. An AND gate gives output 1 only when:
- (a) Any one input is 1
- (b) All inputs are 1
- (c) All inputs are 0
- (d) The inputs are different
Answer: (b) All inputs are 1 — AND means every input must be high for the output to go high.
Q2. A NAND gate is called a universal gate because:
- (a) It is the fastest gate
- (b) Any logic function can be built using only NAND gates
- (c) It has the most inputs
- (d) It works on both AC and DC
Answer: (b) Any logic function can be built using only NAND gates — AND, OR and NOT can all be made from NANDs, so a whole circuit can use one gate type.
Q3. An XOR gate gives output 1 when:
- (a) Both inputs are 1
- (b) Both inputs are 0
- (c) The inputs are different
- (d) Any input is 0
Answer: (c) The inputs are different — XOR is 1 when one input is 1 and the other is 0, and 0 when both inputs match.
Q4. What is binary 1010 in decimal?
- (a) 10
- (b) 12
- (c) 8
- (d) 5
Answer: (a) 10 — 1010 = 8 + 0 + 2 + 0 = 10.
Q5. What is binary 1111 in decimal?
- (a) 7
- (b) 15
- (c) 31
- (d) 8
Answer: (b) 15 — 1111 = 8 + 4 + 2 + 1 = 15.
Q6. What is decimal 13 in binary?
- (a) 1101
- (b) 1011
- (c) 1110
- (d) 1001
Answer: (a) 1101 — 13 = 8 + 4 + 0 + 1 = 1101.
Q7. A NOT gate:
- (a) Adds two inputs
- (b) Inverts its input — 1 becomes 0 and 0 becomes 1
- (c) Gives output 1 only when both inputs are 1
- (d) Stores one bit
Answer: (b) Inverts its input — 1 becomes 0 and 0 becomes 1; it is also called an inverter.
Q8. One byte is equal to:
- (a) 4 bits
- (b) 8 bits
- (c) 16 bits
- (d) 2 bits
Answer: (b) 8 bits — a byte is a group of 8 bits, and 1 kilobyte is 1,024 bytes.
Q9. A flip-flop is used to:
- (a) Store one bit of data
- (b) Amplify a signal
- (c) Convert AC to DC
- (d) Measure voltage
Answer: (a) Store one bit of data — a flip-flop holds its output (0 or 1) until it is told to change, which is the basis of computer memory.
Q10. A NOR gate gives output 1 only when:
- (a) Any input is 1
- (b) All inputs are 0
- (c) All inputs are 1
- (d) The inputs are different
Answer: (b) All inputs are 0 — NOR is OR followed by NOT, so it is 1 only when no input is 1.
Also read: Logic Gates Explained | Electronics Basics MCQs | All MCQ Topics