Docsity

Digital Design Ultimate Exam, Exams of Technology

Toggle sidebar
bg1
Digital Design Ultimate Exam
**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
pf3
pf4
pf5
pf8
pf9
pfa
pfd
pfe
pff
pf12
pf13
pf14
pf15
pf16
pf17
pf18
pf19
pf1a
pf1b
pf1c
pf1d
pf1e
pf1f
pf20
pf21
pf22
pf23
pf24
pf25
pf26
pf27
pf28
pf29
pf2a
pf2b
pf2c
pf2d
pf2e
pf2f
pf30
pf31
pf32
pf33
pf34

Partial preview of the text

Download Digital Design Ultimate Exam and more Exams Technology in PDF only on Docsity!

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

  1. Option D. Question 19. In a 7‑segment display decoder, which input pattern lights segments a, b, c, d, e, f (i.e., displays “ 0 ”)? A) 0000 B) 1001 C) 0110 D) 1111

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