CS302 — Digital Logic Design: Midterm & Finalterm Solved MCQs and Subjective
CS302 Digital Logic Design covers full adders, binary numbers, Boolean laws, SOP expressions, Karnaugh maps, TTL logic, ASCII codes, programmable logic devices, 2's complement and S-R latches. This solved post gives you 30 verified items for Virtual University of Pakistan: 10 Midterm MCQs from Lectures 1-22, 10 Finalterm MCQs from Lectures 23-45, and 5 Midterm plus 5 Finalterm subjective questions, each with its correct answer and handout reference. Practice every question instantly in the quiz for this course. Take the CS302 quiz
1. Midterm Solved MCQs
Q1. A particular Full Adder has:
A) 3 inputs and 2 outputs
B) 3 inputs and 3 outputs
C) 2 inputs and 3 outputs
D) 2 inputs and 2 outputs
Correct answer: A — 3 inputs and 2 outputs
Reference: VU handout, Lecture 13 — Full Adder.
Status: Verified
Q2. The binary value "1010110" is equivalent to decimal:
A) 86
B) 87
C) 88
D) 89
Correct answer: A — 86
Reference: VU handout, Lecture 2 — Binary number system; Sum-of-Weights method.
Status: Verified
Q3. A.(B.C) = (A.B).C is an expression of:
A) De Morgan's Law
B) Distributive Law
C) Commutative Law
D) Associative Law
Correct answer: D — Associative Law
Reference: VU handout, Lecture 8 — Boolean laws; Associative Law.
Status: Verified
Q4. A SOP expression can be implemented by a combination of gates:
A) OR-XOR
B) AND-AND
C) AND-OR
D) XOR-NOR
Correct answer: C — AND-OR
Reference: VU handout, Lecture 9 — Sum of Products (SOP) form.
Status: Verified
Q5. A 3-variable Karnaugh map has:
A) Eight cells
B) Three cells
C) Sixteen cells
D) Four cells
Correct answer: A — Eight cells
Reference: VU handout, Lecture 10 — Karnaugh maps.
Status: Verified
Q6. TTL based devices work with a dc supply of:
A) +10 V
B) +5 V
C) +3 V
D) 3.3 V
Correct answer: B — +5 V
Reference: VU handout, Lecture 6 — TTL logic family.
Status: Verified
Q7. The ASCII Code (American Standard Code for Information Interchange) is a _____ code:
A) 2-bit
B) 7-bit
C) 8-bit
D) 16-bit
Correct answer: B — 7-bit
Reference: VU handout, Lecture 3 — Codes; ASCII.
Status: Verified
Q8. GAL is an acronym for:
A) Giant Array Logic
B) General Array Logic
C) Generic Array Logic
D) Generic Analysis Logic
Correct answer: C — Generic Array Logic
Reference: VU handout, Lecture 20 — Programmable Logic Devices; GAL.
Status: Verified
Q9. The 4-bit 2's complement representation of "-7" is:
A) 0111
B) 1111
C) 1001
D) 0110
Correct answer: C — 1001
Reference: VU handout, Lecture 2 — 2's complement representation.
Status: Verified
Q10. An S-R latch can be implemented by using _____ gates:
A) AND, OR
B) NAND, NOR
C) NAND, XOR
D) NOT, XOR
Correct answer: B — NAND, NOR
Reference: VU handout, Lecture 22 — Latches; S-R latch.
Status: Verified
2. Finalterm Solved MCQs
Q1. __________ occurs when the same clock signal arrives at different times at different clock inputs due to propagation delay.
A) Race condition
B) Clock Skew
C) Ripple Effect
D) None of given options
Correct answer: B — Clock Skew
Reference: VU handout, Lecture 26 — Clock skew.
Status: Verified
Q2. A decade counter is:
A) Mod-3 counter
B) Mod-5 counter
C) Mod-8 counter
D) Mod-10 counter
Correct answer: D — Mod-10 counter
Reference: VU handout, Lecture 26 — Counters; decade counter.
Status: Verified
Q3. FIFO is an acronym for:
A) First In, First Out
B) Fly in, Fly Out
C) Fast in, Fast Out
D) None of given options
Correct answer: A — First In, First Out
Reference: VU handout, Lecture 42 — Memory; FIFO.
Status: Verified
Q4. LUT is an acronym for:
A) Look Up Table
B) Local User Terminal
C) Least Upper Time Period
D) None of given options
Correct answer: A — Look Up Table
Reference: VU handout, Lecture 44 — FPGA; Look-Up Table.
Status: Verified
Q5. Demultiplexer converts _____ data to _____ data:
A) Parallel data, serial data
B) Serial data, parallel data
C) Encoded data, decoded data
D) All of the given options
Correct answer: B — Serial data, parallel data
Reference: VU handout, Lecture 24 — Demultiplexer.
Status: Verified
Q6. A 5-bit Johnson counter sequences through _____ states:
A) 7
B) 10
C) 32
D) 25
Correct answer: B — 10
Reference: VU handout, Lecture 35 — Johnson (twisted-ring) counter.
Status: Verified
Q7. The storage cell in SRAM is:
A) A flip-flop
B) A capacitor
C) A fuse
D) A resistor
Correct answer: A — A flip-flop
Reference: VU handout, Lecture 42 — Semiconductor memories; SRAM.
Status: Verified
Q8. A positive edge-triggered flip-flop changes its state when:
A) Low-to-high transition of clock
B) High-to-low transition of clock
C) Enable input (EN) is set
D) Preset input (PRE) is set
Correct answer: A — Low-to-high transition of clock
Reference: VU handout, Lecture 27 — Edge-triggered flip-flops.
Status: Verified
Q9. "A + B = B + A" is:
A) De Morgan's Law
B) Distributive Law
C) Commutative Law
D) Associative Law
Correct answer: C — Commutative Law
Reference: VU handout, Lecture 8 — Boolean laws; Commutative Law.
Status: Verified
Q10. For a D-Latch, if EN = 1 and D = 1 then Q(t+1) =:
A) 0
B) 1
C) Q(t)
D) Invalid
Correct answer: B — 1
Reference: VU handout, Lecture 22 — D-latch.
Status: Verified
3. Midterm Subjective
Q1. Convert the binary number 1010110 to decimal, and explain the Sum-of-Weights method.
Answer: The Sum-of-Weights method multiplies each bit by the weight of its position (2⁰, 2¹, 2², … from the right) and adds the results. For 1010110: 1×2⁶ + 0×2⁵ + 1×2⁴ + 0×2³ + 1×2² + 1×2¹ + 0×2⁰ = 64 + 0 + 16 + 0 + 4 + 2 + 0 = 86. So 1010110₂ = 86₁₀. The most significant bit (leftmost 1) has weight 2⁶ = 64.
Reference: VU handout, Lectures 1–2 — Number systems; Sum-of-Weights method.
Status: Verified
Q2. What is the difference between Sum of Products (SOP) and Product of Sums (POS) form? Give one example of each.
Answer: SOP is a sum (OR) of product (AND) terms, e.g. F = AB + C'D. Each product term is 1 when all its literals are 1, and the output is 1 if any product term is 1. POS is a product (AND) of sum (OR) terms, e.g. F = (A + B)(C + D'). Each sum term is 0 when all its literals are 0, and the output is 0 if any sum term is 0. A standard (canonical) SOP uses minterms containing all variables; a standard POS uses maxterms containing all variables. SOP is implemented with AND gates followed by an OR gate; POS with OR gates followed by an AND gate.
Reference: VU handout, Lectures 8–9 — SOP and POS forms.
Status: Verified
Q3. What is a Karnaugh map, and how is it used to simplify a Boolean expression?
Answer: A Karnaugh map (K-map) is a graphical arrangement of a truth table in which adjacent cells differ in only one variable, so that minterms differing in one literal can be grouped. A 3-variable map has 8 cells and a 4-variable map 16 cells. Simplification: group adjacent 1s in powers of two (1, 2, 4, 8, …); each group of 2ⁿ cells eliminates n variables, because the variable that changes within the group drops out. The simplified SOP expression is the OR of one product term per group, with each group made as large as possible and using as few groups as possible. Example: grouping four adjacent 1s in a 4-variable map eliminates two variables.
Reference: VU handout, Lecture 10 — Karnaugh maps.
Status: Verified
Q4. Differentiate between a half adder and a full adder. Write the Boolean expressions for the sum and carry of a full adder.
Answer: A half adder adds two single bits (A, B) and produces Sum and Carry: Sum = A ⊕ B, Carry = AB. It has no carry input, so it cannot add a carry from a previous stage. A full adder adds three bits (A, B and carry-in Cin) and produces Sum and Carry-out: Sum = A ⊕ B ⊕ Cin, Carry-out = AB + Cin(A ⊕ B). Full adders are cascaded to build multi-bit adders; a half adder is used only for the least significant bit (or on its own). A full adder has 3 inputs and 2 outputs.
Reference: VU handout, Lecture 13 — Half adder; Full adder.
Status: Verified
Q5. In which situations do we need sequential circuits instead of combinational circuits?
Answer: Combinational circuits have no memory: their output depends only on the present inputs. Sequential circuits are needed whenever the output must depend on the history of past inputs as well as the present input — i.e. whenever the circuit must remember something. Examples: counters (must remember the current count), registers and shift registers (must store data), memory elements, and state machines such as traffic-light controllers and vending machines. Sequential circuits therefore contain memory elements (latches/flip-flops) with a feedback path, and their next state is determined by the present state and the external input.
Reference: VU handout, Lectures 22–26 — Sequential circuits; latches and flip-flops.
Status: Verified
4. Finalterm Subjective
Q1. Write down the ABEL symbols used for NOT, AND, OR and XOR operations.
Answer: In ABEL (Advanced Boolean Expression Language): NOT is !, AND is &, OR is #, and XOR is $. ABEL equations must end with a semicolon ;. Example: Y = !A & B # C $ D; means Y = (NOT A AND B) OR (C XOR D). ABEL is the hardware description language used in the course to describe programmable logic devices (PAL/GAL).
Reference: VU handout, Lecture 20 — ABEL.
Status: Verified
Q2. How many bytes will there be in a 16K × 8 memory?
Answer: 16K × 8 means 16K locations, each 8 bits (1 byte) wide. 16K = 16 × 1024 = 16,384 locations, so the memory holds 16,384 bytes = 16 KB. In general, a memory of N locations × M bits holds N × M bits, i.e. (N × M)/8 bytes.
Reference: VU handout, Lectures 41–43 — Memory organisation.
Status: Verified
Q3. If the highest frequency component in an analog signal is 20 kHz, what is the minimum sampling frequency? State the rule used.
Answer: By the Nyquist sampling theorem, the sampling frequency must be at least twice the highest frequency component in the signal: f_s ≥ 2 × f_max. Here f_s ≥ 2 × 20 kHz = 40 kHz. Sampling below this rate causes aliasing, where higher frequencies fold back and appear as lower frequencies.
Reference: VU handout, Lecture 43 — Analog-to-digital conversion; sampling.
Status: Verified
Q4. What is the difference between the State Assignment and State Reduction processes?
Answer: State reduction is used to minimise the number of states of a sequential circuit: equivalent states (states that behave identically for all inputs) are merged, so the state table becomes smaller. State assignment is used to simplify the circuit that determines the next state: binary codes are assigned to the remaining states in a way that makes the flip-flop input (excitation) equations as simple as possible, e.g. by giving adjacent codes to states that are often next to each other. So reduction reduces the number of states; assignment chooses the coding of the states that remain.
Reference: VU handout, Lectures 37–38 — State reduction; State assignment.
Status: Verified
Q5. Explain latches in your own words. How does a D-latch work?
Answer: A latch is a bistable memory element: it has two stable states (Q = 0 and Q = 1) and retains its state until its input changes (or power is removed). It is built from cross-coupled NAND or NOR gates with a feedback path. A D-latch has a data input D and an enable input EN: when EN = 1 the latch is transparent and Q follows D (Q(t+1) = D); when EN = 0 the latch holds its previous value regardless of D. Unlike a flip-flop, a latch is level-sensitive rather than edge-triggered. Latches are the basic building blocks of registers and memory.
Reference: VU handout, Lecture 22 — Latches; D-latch.
Status: Verified
Frequently asked questions
Is the Midterm from Lectures 1-22?
Yes — Midterm covers Lectures 1-22 and Finalterm covers Lectures 23-45.
Does the quiz work from this post?
Yes — use the 'Take the CS302 quiz' link above; the quiz is already live for this course.
Are the answers verified?
Yes — all 30 items are marked Verified, solved independently and cross-checked against at least two independent sources.
More Solved Papers
See the Solved MCQs page and the midterm and finalterm mega hubs for solved papers for every subject.

Comments
Post a Comment