Which logic gate gives output 1 only when all its inputs are 1?
Solution
AND outputs 1 only if every input is 1.
20 technical questions of moderate difficulty, as asked in campus placement and company tests. Each has a short explanation.
Which logic gate gives output 1 only when all its inputs are 1?
AND outputs 1 only if every input is 1.
Which gates are called universal gates?
Any Boolean function can be built using only NAND gates or only NOR gates.
What is the binary equivalent of decimal 25?
25 = 16 + 8 + 1 = 11001₂.
What is the decimal value of hexadecimal 2F?
2F = 2 × 16 + 15 = 47.
What is the 2's complement of the 4-bit number 0101?
Invert the bits (1010) and add 1: 1011.
Simplify the Boolean expression A + AB.
By the absorption law, A + AB = A(1 + B) = A.
By De Morgan's theorem, (A · B)' equals:
The complement of a product is the sum of the complements.
The output of an XOR gate is 1 when:
XOR gives 1 for an odd number of 1s; for two inputs, when they differ.
How many select lines does an 8-to-1 multiplexer need?
2³ = 8, so three select lines choose one of eight inputs.
A half adder has how many outputs?
A half adder produces a sum (A ⊕ B) and a carry (A · B).
Which flip-flop toggles its output when its input is 1 on each clock edge?
A T (toggle) flip-flop changes state when T = 1.
Which flip-flop has an invalid (forbidden) input state?
S = R = 1 is not allowed in an SR flip-flop; the JK flip-flop removes this problem.
A 4-bit ripple counter can count how many distinct states?
4 bits give 2⁴ = 16 states (0 to 15).
Combinational circuits differ from sequential circuits because they:
The output of a combinational circuit depends only on the present inputs.
How many 2-input NAND gates are needed to build an XOR gate?
The standard NAND-only XOR uses four 2-input NAND gates.
What is the Gray code for binary 0110?
Gray bits: keep the MSB (0), then XOR adjacent bits: 0⊕1 = 1, 1⊕1 = 0, 1⊕0 = 1, giving 0101.
A decoder with n inputs has at most how many outputs?
Each input combination activates one output.
Which logic family is known for very low static power consumption?
CMOS draws almost no current except while switching.
What is the BCD representation of decimal 59?
Each decimal digit is coded separately: 5 = 0101 and 9 = 1001.
A shift register that accepts data one bit at a time and outputs all bits together is:
Serial input, parallel output.
Want guided preparation? Placement Papers Prep courses by Dr. Kiran Derle, with video lessons and full-length mocks.
See placement courses ↗