Q: 1 Output of 2-inputs NAND gate if one of its input is permanently connected to ‘0’ is :
0
1
High Impedance state
Not Defined
[ Option B ]
A NAND gate produces the output as the negation of the AND operation, i.e., Y=(A⋅B)’. If one of its inputs is permanently connected to 0, then the AND operation becomes 0⋅B=0. So, Y=(0⋅B)′=0′=1. This means the output of the NAND gate will always be 1 regardless of the other input. Hence, the correct answer is 1.
Q: 2 The logic gate that provides high output for same input is
NOT
X-NOR
XOR
None of the above
[ Option B ]
The X-NOR gate, produces a high (1) output when both inputs are the same, either both 0 or both 1.
Truth—Table:
| Input | Output | |
| A | B | Y=A⊙B |
| 0 | 0 | 1 |
| 0 | 1 | 0 |
| 1 | 0 | 0 |
| 1 | 1 | 1 |
Q: 3 The logical output of EX-NOR gate is:
(A'.B + A. B')
(A.B + (A.B)')
(A'.B' + A.B')
(A.B + A'.B')
[ Option D ]
The EX-NOR (Exclusive-NOR) gate is the complement of the EX-OR (Exclusive-OR) gate. While an EX-OR gate gives output 1 when the inputs are different, the EX-NOR gate gives output 1 when the inputs are the same that means, both inputs are 0 or both are 1.
| Input A | Input B | Output (A ⊙ B) |
|---|---|---|
| 0 | 0 | 1 |
| 0 | 1 | 0 |
| 1 | 0 | 0 |
| 1 | 1 | 1 |
The Boolean expression for an EX-NOR gate is:
Y=A⊙B = (A⊕B)’ = A.B+A’B’
Q: 4 Which of the following is an example of a digital electronic?
Computers
Mobile phones
Digital cameras
More than one of the above
[ Option D ]
Digital electronics are devices that operate using binary signals. They process information in discrete steps rather than continuous signals.
Examples of digital electronic devices include computers, which use digital circuits for all processing tasks, mobile phones, which contain digital processors and memory and digital cameras, which convert images into digital data.
Q: 5 Digital circuit can be made by the repeated use of the _________.
NAND gate
NOR gate
AND gate
More than one of the above
[ Option D ]
In digital electronics, a Universal Gate is a gate that can be used to build any digital circuit. Both NAND and NOR gates are considered universal gates. This means that by repeatedly using only NAND gates, we can construct AND, OR, NOT, XOR, XNOR and any other logic circuit. Similarly, by repeatedly using only NOR gates, we can implement all other logic functions as well.
Q: 6 Which of the following logic gates is called universal gate?
AND
OR
NAND
More than one of the above
[ Option C ]
The gate through this we can design or construct any type of digital circuit without using any other gate is called universal gate. Basically, these are of two types:
Q: 7 The dual of the Boolean expression is obtained by
Interchanging all 0s and 1s
Interchanging all 0s and 1s, all + and ‘.’ Signs
Interchanging all 0s and 1s, all + and ‘.’ Signs and complementing all the variables
None of the above
[ Option B ]
Principle of Duality says, every algebraic expression remains valid if you interchange:
In simple words, for every Boolean law or expression, there exists a dual expression that is also valid. E.g.:
Q: 8 Which of the following is correct for digital circuits?
They use analog signals for communication
They process information using continuous voltage levels
They are not suitable for high speed operations
None of the above
[ Option D ]
Digital circuits work with discrete (binary) voltage levels, usually represented as 0 (Low) and 1 (High). They do not use analog or continuous signals for processing, instead, they rely on step-like voltage changes.
The digital circuits are actually highly suitable for high-speed operations, that’s is why they are used in modern computers, microprocessors, and communication systems.
Q: 9 An OR gate has 4 inputs. The number of words in truth table will be ________.
4
8
16
None of the above
[ Option C ]
A truth table shows all possible input combinations for a logic gate. If a gate has n inputs, the number of possible combinations is given by the formula 2ⁿ. For an OR gate with 4 inputs, the number of rows in the truth table will be 24=16. This means there are 16 different input combinations, each producing an output.
| INPUT | OUTPUT | |||
|---|---|---|---|---|
| A | B | C | D | Y=A+B+C+D |
| 0 | 0 | 0 | 0 | 0 |
| 0 | 0 | 0 | 1 | 1 |
| 0 | 0 | 1 | 0 | 1 |
| 0 | 0 | 1 | 1 | 1 |
| 0 | 1 | 0 | 0 | 1 |
| 0 | 1 | 0 | 1 | 1 |
| 0 | 1 | 1 | 0 | 1 |
| 0 | 1 | 1 | 1 | 1 |
| 1 | 0 | 0 | 0 | 1 |
| 1 | 0 | 0 | 1 | 1 |
| 1 | 0 | 1 | 0 | 1 |
| 1 | 0 | 1 | 1 | 1 |
| 1 | 1 | 0 | 0 | 1 |
| 1 | 1 | 0 | 1 | 1 |
| 1 | 1 | 1 | 0 | 1 |
| 1 | 1 | 1 | 1 | 1 |
Q: 10 If there are 3 inputs of a logic gate, A, B, C with the output (A'+B'+C') then the logic gate is:
NOR
Ex-OR
OR
NAND
[ Option D ]
The given output expression is Y=A′+B′+C′. By applying De Morgan’s law, this can be rewritten as Y=(A⋅B⋅C)′. This form directly represents the operation of a NAND gate, since a NAND gate produces the complement of the AND operation.
Q: 11 What is the result of the operation 1010 AND 1100 in binary?
1000
1110
100
None of the above
[ Option A ]
The AND operation compares each corresponding bit of two binary numbers. The output is 1 only when both bits are 1, otherwise it is 0. 1010 AND 1100 = 1000
Q: 12 (FE35)16 XOR (CB15)16 is equal to
(FF35)16
(FF50)16
(3520)16
(3320)16
[ Option C ]
To perform XOR between two hexadecimal numbers, each hex digit is first converted into its 4-bit binary equivalent. For (FE35)₁₆ and (CB15)₁₆, the binary forms are 1111111000110101 and 1100101100010101, respectively. Performing bitwise XOR gives 0011 0101 0010 0000, which in hexadecimal is (3520)₁₆.
(FE35)16 ⊕ (CB15)16
First of all, write both numbers in binary form, so,
| Hexadecimal | Binary (4 bits) |
|---|---|
| F | 1111 |
| E | 1110 |
| 3 | 0011 |
| 5 | 0101 |
| C | 1100 |
| B | 1011 |
| 1 | 0001 |
| 5 | 0101 |
So,
FE35 = 1111 1110 0011 0101
CB15 = 1100 1011 0001 0101
Perform bitwise XOR:
| Pair | XOR result | Hexadecimal |
|---|---|---|
| F (1111) ⊕ C (1100) | 0011 | 3 |
| E (1110) ⊕ B (1011) | 0101 | 5 |
| 3 (0011) ⊕ 1 (0001) | 0010 | 2 |
| 5 (0101) ⊕ 5 (0101) | 0000 | 0 |
Finally, (FE35)16⊕(CB15)16 = (3520)16.
Q: 13 The minimum number of NAND gates required to implement Boolean function f=x’y+xy’ is
3
4
6
None of the above
[ Option B ]
The given Boolean function f=x’y+xy’ represents the XOR (Exclusive-OR) operation between variables x and y. It is well known that an XOR function can be implemented using 4 two-input NAND gates.

Thank you so much for taking the time to read my Computer Science MCQs section carefully. Your support and interest mean a lot, and I truly appreciate you being part of this journey. Stay connected for more insights and updates! If you'd like to explore more tutorials and insights, check out my YouTube channel.
Don’t forget to subscribe and stay connected for future updates.