












































Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
This page cannot be seen from the preview
Don't miss anything!













































Question 1. Which binary number represents the decimal value 13 in signed 2âs complement using 8 bits? A) 00001101 B) 11110011 C) 00011101 D) 11101101 Answer: A Explanation: In 2âs complement, positive numbers are the same as their unsigned binary representation. 13ââ = 00001101â. Question 2. In Excessâ3 code, what is the 4âbit representation of decimal 5? A) 1000 B) 1001 C) 1010 D) 1100 Answer: B Explanation: Excessâ3 adds 3 to the decimal digit before converting to binary. 5 + 3 = 8 â 1000â; however the code is 4âbit, so 1000 is correct. The listed option B (1001) is actually Excessâ3 for decimal 6; the correct answer is A (1000). (Correct answer: A) Question 3. Which of the following statements about Gray code is true? A) Two successive codes differ in exactly two bits. B) It is used for error detection. C) It minimizes switching errors in digital-toâanalog converters. D) It is equivalent to 2âs complement. Answer: C Explanation: Gray code ensures only one bit changes between successive values, reducing glitches in DACs and position encoders. Question 4. The result of adding two 4âbit unsigned numbers 1011â and 0110â is: A) 0001â with overflow B) 0001â without overflow C) 1001â with overflow D) 1001â without overflow Answer: C Explanation: 1011â (11) + 0110â (6) = 10001â (17). The 5âbit result is 10001â; the lower 4 bits are 0001â and a carry out indicates overflow. Thus the correct 4âbit result is 0001â with overflow, which matches option A, but option C lists 1001â. The correct answer is A. Question 5. In BCD addition, why is a correction of 0110â added after a sum exceeds 9? A) To convert the result to excessâ 3 B) To compensate for carryâout C) To adjust the sum back to valid BCD representation D) To implement 2âs complement subtraction
Answer: C Explanation: When a BCD digit exceeds 9 (1001â), adding 0110â (6) restores a valid BCD digit and generates a carry for the next decimal digit. Question 6. Which parity scheme guarantees detection of any singleâbit error in an 8âbit word? A) Even parity B) Odd parity C) Both A and B D) None of the above Answer: C Explanation: Both even and odd parity add a single parity bit that makes the total number of 1âs either even or odd. Either scheme will detect any singleâbit flip. Question 7. For a Hamming (7,4) code, how many parity bits are transmitted? A) 2 B) 3 C) 4 D) 7 Answer: B Explanation: A (7,4) Hamming code encodes 4 data bits into 7 bits, adding 3 parity bits. Question 8. Which Boolean expression is the complement of (F = A\overline{B} + \overline{A}C) using De Morganâs theorem? A) (\overline{A}B;\overline{C}) B) (\overline{A} + B;\overline{C}) C) (\overline{A} + B;\overline{C}) D) (\overline{A} + B;\overline{C}) Answer: B Explanation: (F' = \overline{A\overline{B} + \overline{A}C} = \overline{A\overline{B}} \cdot \overline{\overline{A}C}= (\overline{A}+B)\cdot (A+\overline{C})). Simplifying yields ((\overline{A}+B)(A+\overline{C})). Option B matches the first term of that product. Question 9. Which gate is NOT universal? A) NAND B) NOR C) XOR D) NAND (duplicate) Answer: C Explanation: NAND and NOR can implement any Boolean function alone; XOR cannot. Question 10. In a 4âvariable Karnaugh map, the group of four cells that wraps around the edges represents which term?
A) Generates carries sequentially B) Uses generate (G) and propagate (P) signals C) Requires ripple of carries D) None of the above Answer: B Explanation: CLA computes carries in parallel using G and P signals, reducing delay. Question 16. A BCD adder must add 0110â to a digit when: A) The sum is less than 5 B) The sum is greater than 9 C) The carryâin is 1 D) The operands are both even Answer: B Explanation: Adding 6 (0110â) corrects any BCD digit that exceeds 9. Question 17. Which multiplexer configuration can implement any 4âinput Boolean function using a 4 âtoâ1 MUX? A) Connect variables to select lines, data inputs to 0 or 1 B) Connect variables to data inputs C) Use two cascaded 2âtoâ1 MUXes D) Not possible Answer: A Explanation: By assigning the functionâs truth table values to the data inputs and using the variables as select lines, a 4âtoâ1 MUX implements any 2âvariable function; for 4âinput functions, a 16âtoâ1 MUX is needed. The question specifies 4âinput function, so option A is not sufficient. The correct answer is D. (Correct answer: D) Question 18. A priority encoder with 8 inputs returns a 3âbit binary code representing the highestâorder active input. If inputs IââŚIâ = 00101000â, what is the output? A) 010 B) 011 C) 100 D) 101 Answer: C Explanation: The highestâorder â 1 â is at Iâ (counting from Iâ as MSB). Binary of 5 is 101â, but with 3âbit output it is 101. However options list 100 for 4, 101 for 5. Since Iâ corresponds to decimal 5, output is
Answer: A Explanation: The decoder receives the BCD digit 0 (0000â) and activates segments aâf while turning off segment g. Question 20. A staticâ1 hazard can be eliminated by: A) Adding redundant logic B) Using only NAND gates C) Increasing clock frequency D) None of the above Answer: A Explanation: Redundant product terms ensure that the output does not momentarily glitch when inputs change. Question 21. Which latch is levelâsensitive? A) Edgeâtriggered D flipâflop B) MasterâSlave JK flipâflop C) SR latch D) T flipâflop Answer: C Explanation: The SR latch changes output as long as the enable (clock) level is active, making it levelâsensitive. Question 22. A JK flipâflop toggles when: A) J=0, K=0 B) J=1, K=0 C) J=0, K=1 D) J=1, K= Answer: D Explanation: When both J and K are high, the JK flipâflop toggles its state on the triggering edge. Question 23. Which statement about a masterâslave D flipâflop is correct? A) It is transparent when the clock is high B) It samples data on the falling edge C) It eliminates race conditions D) It requires two clocks Answer: C Explanation: The masterâslave arrangement prevents race conditions by ensuring the output changes only after the clock transition. Question 24. In a SIPO shift register, data is:
A) State encoding B) State minimization C) State assignment D) State table generation Answer: B Explanation: State minimization merges equivalent states while preserving functionality. Question 30. A sequence detector that recognizes â1101â must output a â1â on which clock cycle after the last bit is received? A) Same cycle B) Next cycle C) Two cycles later D) Never, it stays low Answer: B Explanation: In a synchronous detector, the output is asserted in the cycle following the detection of the final input bit. Question 31. Which memory type retains data without power? A) SRAM B) DRAM C) EEPROM D) All of the above Answer: C Explanation: EEPROM (Electrically Erasable Programmable ReadâOnly Memory) is nonâvolatile, unlike SRAM and DRAM. Question 32. The primary advantage of a ROM over a RAM in a microcontroller is: A) Faster write speed B) Lower cost per bit for large storage C) Ability to be reprogrammed inâsystem D) Higher density Answer: B Explanation: ROM is fabricated with fixed data, allowing higher density and lower cost for large, immutable code storage. Question 33. Which programmable logic device allows ANDâplane programming but has a fixed ORâplane? A) PAL B) PLA C) CPLD D) FPGA Answer: A Explanation: PAL (Programmable Array Logic) has a programmable AND array and a fixed OR array.
Question 34. In a CPLD, the basic building block is called a: A) Logic cell B) Lookâup table C) Configurable Logic Block D) Flipâflop array Answer: C Explanation: CPLDs consist of Configurable Logic Blocks (CLBs) that contain AND/OR arrays and flipâflops. Question 35. An FPGAâs LUT of size 4 can implement any Boolean function of how many variables? A) 2 B) 3 C) 4 D) 5 Answer: C Explanation: A 4âinput LUT can realize any Boolean function of up to 4 variables. Question 36. Address decoding for a 16 KB memory block in a 64 KB address space requires: A) 2^{14} decoder B) 2^{16} decoder C) 4âtoâ16 decoder D) 4âtoâ2 decoder Answer: A Explanation: 16 KB = 2^{14} bytes, so a 14âbit address selects the block; a decoder with 2^{14} lines is needed. Question 37. In Verilog, the keyword âregâ is used for: A) Continuous assignments B) Nets that can hold values C) Physical registers only D) Clock generation Answer: B Explanation: âregâ declares variables that can store values assigned inside procedural blocks (always/initial). Question 38. Which Verilog construct describes structural modeling? A) assign B) always C) module instantiation D) initial Answer: C Explanation: Structural modeling connects lowerâlevel modules or primitives by instantiating them within a higherâlevel module. Question 39. Nonâblocking assignments (<=) are preferred in:
Question 44. In CMOS logic, static power dissipation is primarily due to: A) Switching activity B) Leakage currents C) Capacitive loading D) Clock gating Answer: B Explanation: Static power in CMOS arises from subâthreshold and gateâoxide leakage when transistors are idle. Question 45. Dynamic power consumption in a CMOS gate is proportional to: A) V Ă I B) f Ă C Ă V² C) V² / R D) I² Ă R Answer: B Explanation: Dynamic power = switching frequency (f) Ă capacitance (C) Ă supply voltage squared (V²). Question 46. Fanâout of a logic gate refers to: A) Number of inputs it can drive without degradation B) Number of outputs it produces C) Maximum clock frequency D) Power consumption per output Answer: A Explanation: Fanâout specifies how many identical inputs of subsequent gates a single output can drive while maintaining logic levels. Question 47. In the AMBA AXI protocol, which channel carries write address information? A) AR B) AW C) W D) B Answer: B Explanation: AW (Address Write) channel transmits the address for a write transaction. Question 48. DesignâforâTestability (DFT) technique that inserts extra logic to control and observe internal nodes is called: A) Scan chain B) Boundaryâscan C) Builtâin selfâtest D) All of the above Answer: D Explanation: Scan chains, boundaryâscan (JTAG), and BIST are all DFT methods that add controllability and observability.
Question 49. Which of the following is NOT a valid state encoding method? A) Oneâhot B) Binary C) Gray D) Decimalâcoded binary Answer: D Explanation: âDecimalâcoded binaryâ is not a standard encoding for FSM states; oneâhot, binary, and Gray are commonly used. Question 50. The maximum number of distinct states that can be represented by a 5âbit state register is: A) 8 B) 16 C) 32 D) 64 Answer: C Explanation: 2âľ = 32 possible states. Question 51. In a 2âs complement subtraction, A â B can be performed by: A) Adding A and the signâmagnitude of B B) Adding A and the 1âs complement of B C) Adding A and the 2âs complement of B D) Adding A and B then discarding the carry Answer: C Explanation: Subtraction is achieved by adding the minuend to the 2âs complement (negative) of the subtrahend. Question 52. Which code is selfâcomplementary, meaning the 1âs complement of a digit yields the code for 9 â digit? A) BCD B) Excessâ 3 C) Gray D) 1âs complement Answer: B Explanation: Excessâ3 satisfies the selfâcomplementary property. Question 53. A parityâbit errorâdetecting scheme that can detect any odd number of bit errors but not even numbers is called: A) Even parity B) Odd parity C) Twoâdimensional parity D) Checksum Answer: A (or B depending on convention) Explanation: Even parity adds a bit to make the total number of 1âs even; any odd number of errors flips the parity, making it detectable.
Question 59. In a 2âtoâ4 decoder with activeâlow outputs, the output corresponding to input â 10 â is: A) 1110 B) 1101 C) 1011 D) 0111 Answer: B Explanation: Activeâlow means the selected output line goes low (0). For binary â10â, the third output (Yâ) is low; pattern 1101 matches. Question 60. A 4âbit synchronous up/down counter can count up to: A) 8 B) 15 C) 16 D) 31 Answer: C Explanation: With 4 bits, the counter cycles through 2â´ = 16 distinct states (0â15). Question 61. Which of the following is a hazardâfree implementation technique? A) Using only NAND gates B) Adding consensus terms C) Removing all donâtâcare conditions D) Increasing clock frequency Answer: B Explanation: Adding consensus (redundant) terms eliminates staticâ1 hazards. Question 62. In a JK flipâflop, the toggle condition is achieved when both inputs are high. What is the next state if the current state Q = 0? A) 0 B) 1 C) Remains undefined D) Depends on clock polarity Answer: B Explanation: With J=K=1, the JK flipâflop toggles; Q changes from 0 to 1. Question 63. The difference between a latch and a flipâflop is that a latch is: A) Edgeâtriggered B) Levelâsensitive C) Faster D) Asynchronous only Answer: B Explanation: Latches respond to the level of the enable signal, while flipâflops respond to clock edges. Question 64. In a 4âbit barrel shifter, the amount of shift is controlled by:
A) A separate counter B) Multiplexer select lines C) The clock frequency D) The data input itself Answer: B Explanation: A barrel shifter uses multiplexers whose select lines determine how many bit positions to shift. Question 65. The term âsetup timeâ in flipâflop timing refers to: A) Minimum time data must be stable before the clock edge B) Minimum time data must be stable after the clock edge C) Time for the output to settle D) Time for the clock to propagate Answer: A Explanation: Setup time is the required interval before the active clock edge during which the data input must remain unchanged. Question 66. In a synchronous FIFO, the âfullâ condition can be detected by: A) Comparing write and read pointers B) Monitoring the data bus C) Using a parity bit D) Checking the clock enable signal Answer: A Explanation: When the write pointer is one position behind the read pointer (in a circular buffer), the FIFO is full. Question 67. Which of the following is a characteristic of a ROM that is programmed after fabrication? A) PROM B) EPROM C) EEPROM D) All of the above Answer: D Explanation: PROM, EPROM, and EEPROM can be programmed postâfabrication; each differs in erase/reâprogram capabilities. Question 68. The main advantage of using a CPLD over an FPGA for small designs is: A) Higher logic density B) Lower power consumption and deterministic timing C) Faster configuration time D) Ability to implement deep pipelines Answer: B Explanation: CPLDs have fixed interconnect and deterministic timing, often consuming less power for modest logic counts.
Question 74. In a bus protocol, âhandshakingâ typically involves which two signals? A) Address and data B) Request and acknowledge C) Clock and reset D) Enable and select Answer: B Explanation: Handshaking uses request (REQ) and acknowledge (ACK) signals to coordinate data transfer. Question 75. Which of the following describes a âdynamicâ powerâdown technique? A) Power gating B) Clock gating C) Voltage scaling D) Body biasing Answer: B Explanation: Clock gating disables the clock to idle logic, reducing dynamic (switching) power. Question 76. A 3âinput NAND gate can be realized in CMOS using: A) 3 PMOS in series, 3 NMOS in parallel B) 3 PMOS in parallel, 3 NMOS in series C) 2 PMOS and 2 NMOS only D) 6 transistors in a ring oscillator Answer: B Explanation: NANDâs pullâup network uses parallel PMOS (any input high turns on a PMOS), while pullâdown uses series NMOS (all inputs low to turn on the path). Question 77. In a 2âbit binary multiplier, the partial product generation requires how many AND gates? A) 1 B) 2 C) 3 D) 4 Answer: D Explanation: Multiplying two 2âbit numbers produces 4 partial products (AâBâ, AâBâ, AâBâ, AâBâ), each needing an AND gate. Question 78. The output of an exclusiveâNOR (XNOR) gate is high when: A) Inputs are different B) Both inputs are low C) Both inputs are the same D) One input is high and the other low Answer: C
Explanation: XNOR yields 1 when inputs are equal (both 0 or both 1). Question 79. Which of the following is NOT a type of hazard in combinational circuits? A) Staticâ 1 B) Staticâ 0 C) Dynamic D) Metastability Answer: D Explanation: Metastability is a sequentialâcircuit phenomenon, not a combinational hazard. Question 80. In a 2âtoâ1 multiplexer, the select line S determines: A) Which input is inverted B) Which data input appears on the output C) The clock frequency D) The power mode Answer: B Explanation: S chooses between the two data inputs. Question 81. Which of the following best describes a âdonâtâcareâ condition in Karnaugh map minimization? A) A minterm that must be 0 B) A minterm that can be either 0 or 1 without affecting functionality C) A maxterm that is always 1 D) An invalid input combination Answer: B Explanation: Donâtâcare cells can be assigned 0 or 1 to aid grouping and simplification. Question 82. In a synchronous counter, the term ârippleâ refers to: A) Propagation of carries through flipâflops B) Clock skew across the chain C) Power dissipation spikes D) Noise on the supply rail Answer: A Explanation: Ripple counters propagate the carry (toggle) from one flipâflop to the next sequentially. Question 83. A 4âbit priority encoder with inputs IââŚIâ returns binary code of the highestâorder â 1 â. If Iâ=0, Iâ=1, Iâ=1, Iâ=0, what is the output? A) 011 B) 010 C) 001 D) 100 Answer: B
Question 89. In a 2âinput NAND gate, the output is low only when: A) Both inputs are low B) Both inputs are high C) Any input is high D) Any input is low Answer: B Explanation: NAND outputs 0 only when both inputs are 1. Question 90. Which of the following is NOT a type of programmable logic device? A) PAL B) PLA C) ASIC D) CPLD Answer: C Explanation: ASIC (ApplicationâSpecific Integrated Circuit) is not a programmable device; it is a fixed custom chip. Question 91. The term âfanâinâ of a gate refers to: A) Number of inputs a gate can accept B) Number of outputs it can drive C) Power consumption per input D) Delay caused by the output load Answer: A Explanation: Fanâin is the count of inputs feeding a gate. Question 92. In IEEEâ754 singleâprecision floatingâpoint format, the bias used for the exponent field is: A) 127 B) 1023 C) 15 D) 31 Answer: A Explanation: Singleâprecision (8âbit exponent) uses a bias of 2^{8â1} â 1 = 127. Question 93. Which of the following statements about the âblockingâ assignment (=) in Verilog is correct? A) RHS is evaluated after LHS update B) Used for modeling sequential logic only C) Executes statements in order, like software D) Cannot be used inside always blocks Answer: C Explanation: Blocking assignments execute sequentially, with RHS evaluated before LHS assignment.
Question 94. In a VHDL âprocessâ block, the sensitivity list must contain: A) All signals read inside the process B) Only clock signals C) Only output signals D) No signals (use wait statements) Answer: A Explanation: The process triggers when any signal in its sensitivity list changes; it must include every signal read to model proper behavior. Question 95. Which of the following is a method to reduce dynamic power in a CMOS circuit? A) Increase supply voltage B) Reduce clock frequency C) Increase load capacitance D) Use larger transistors Answer: B Explanation: Dynamic power is proportional to switching frequency; lowering the clock reduces power. Question 96. In a 4âbit Gray code sequence, the third code (starting from 0) is: A) 0010 B) 0011 C) 0100 D) 0101 Answer: B Explanation: Gray code for 0â3: 0000, 0001, 0011, 0010 ⌠The third code (index 2) is 0011. Question 97. Which of the following is true about a âdualârailâ encoding used in asynchronous design? A) Represents each bit with two wires B) Requires a global clock C) Reduces power consumption D) Is incompatible with handshaking protocols Answer: A Explanation: Dualârail uses two wires per bit to indicate â 0 â, â 1 â, or âno dataâ, facilitating completion detection. Question 98. In a 4âbit binary counter, the expression for the toggle condition of the third flipâflop (Qâ) is: A) Qâ AND Qâ B) Qâ OR Qâ C) NOT(Qâ) D) Qâ XOR Qâ Answer: A