Chapter 3
Digital Logic System
PU BCA past exam questions
Past questions and answers
78 questions set from this chapter, 8 of them more than once; 2 are most repeated (set, or a close variant set, in 3 or more exams). Most repeated first.
- Most repeated · 4 of 7 exams
- Asked 4 times
- 2025 Spring · 8 marks
- 2024 Fall · 7 marks
- 2024 Spring · 7 marks
- 2023 Fall · 8 marks
What is flip flop? Explain about JK flip-flop with diagram.
Answer
Flip-flop. A flip-flop is a bistable sequential circuit. It has two stable states (0 and 1) and stores one bit of information. Its output depends on the present inputs and the previous state, and it changes state only when a clock pulse arrives. It is the basic memory element of registers and counters. Types are SR, JK, D and T.
JK flip-flop. The JK flip-flop removes the invalid condition of the SR flip-flop. Its inputs are (set), (reset) and the clock . Its outputs are and .
Logic diagram (clocked SR latch built from NAND gates, with feedback from the outputs)
J ──────────[NAND1]──┐
Q' ─────────┘ [NAND3]──┬── Q
CLK ────────┘ │ (cross-coupled)
CLK ────────┐ │
Q ──────────[NAND2]──┐ [NAND4]── Q'
K ──────────┘ └───────┘
receives and receives . Their outputs feed the cross-coupled latch , .
Characteristic (truth) table
| Operation | |||
|---|---|---|---|
| 0 | 0 | No change (hold) | |
| 0 | 1 | 0 | Reset |
| 1 | 0 | 1 | Set |
| 1 | 1 | Toggle |
Characteristic equation
Operation
- : both NAND gates output 1, so the latch holds its state.
- : only is active when , so the flip-flop resets to .
- : only is active when , so it sets to .
- : the output toggles on each clock pulse. This is the feature that SR lacks.
Race-around condition. When and the clock pulse is wider than the propagation delay, the output toggles repeatedly during one pulse. This is avoided by using a master-slave or edge-triggered JK flip-flop. Applications include counters, frequency dividers and shift registers.
Answer checked by Claude Sonnet · Oct 21, 2026
Test yourself · 2 MCQs
Loading…
- Most repeated · 3 of 7 exams
- Asked 3 times
- 2025 Spring · 5 marks
- 2024 Fall · 5 marks
- 2024 Spring · 5 marks
Write short notes on: Don't Care Condition
Answer
Don't care condition. For some input combinations of a logic function, the output is not specified because those combinations never occur, or because the output has no effect on the system. Such conditions are called don't care conditions and are marked X (or d) in the truth table or K-map.
Use in simplification. Each X may be treated as 0 or 1, whichever helps to form larger groups in the K-map. This gives a simpler expression with fewer literals and gates. An X is included in a group only if it helps; it is never necessary to cover it.
Example. For with inputs , taking as 1 allows the group column with :
Without the don't care, the best result would be .
Common applications. The unused codes in BCD (1010 to 1111), code converters such as BCD to excess-3, and seven-segment decoders.
Answer checked by Claude Sonnet · Oct 21, 2026
Test yourself · 2 MCQs
Loading…
- Asked 2 times
- 2025 Spring · 8 marks
- 2024 Fall · 7 marks
Simplify the given equation using K-map and implement using NOR gates only.
Answer
Step 1: K-map (rows , columns ; X = don't care)
| 00 | 01 | 11 | 10 | |
|---|---|---|---|---|
| 00 | 1 (m0) | 1 (m1) | X (m3) | X (m2) |
| 01 | 1 (m4) | 0 (m5) | 0 (m7) | X (m6) |
| 11 | 1 (m12) | 0 (m13) | X (m15) | 0 (m14) |
| 10 | 1 (m8) | X (m9) | 1 (m11) | 1 (m10) |
Step 2: Grouping
- Quad of m0, m1, m3, m2, m8, m9, m11, m10 (all cells with ), using the don't cares m2, m3, m9. This gives .
- Quad of m0, m4, m12, m8 (column ). This gives .
All the 1s (0, 1, 4, 8, 10, 11, 12) are covered. The don't cares m6, m15 are left as 0.
Step 3: NOR-only implementation
Using :
An OR is a NOR followed by a NOR used as an inverter, so four 2-input NOR gates are enough:
B ──[NOR]──┐
[NOR]──[NOR as NOT]── F
C ──[NOR]──┘
D ──┘
Answer checked by Claude Sonnet · Oct 21, 2026
Test yourself · 2 MCQs
Loading…
- Asked 2 times
- 2025 Spring · 5 marks
- 2024 Fall · 5 marks
Write short notes on: Status Register
Answer
Status register (flag register or condition code register). It is a register of the processor whose individual bits, called flags, record conditions produced by the most recent arithmetic or logic operation in the ALU. These flags are used by conditional branch instructions to decide the program flow.
Common flags (4-bit status register)
| Flag | Name | Set (=1) when |
|---|---|---|
| C | Carry | The operation produces a carry out of the most significant bit |
| S | Sign | The most significant bit of the result is 1 (negative) |
| Z | Zero | The result is zero |
| V | Overflow | The result of a signed operation exceeds the range |
Working. After an ALU operation, the output carry, the sign bit, an 8-input NOR of the result bits (for zero) and the exclusive-OR of the last two carries (for overflow) are loaded into the flip-flops of the status register.
Uses. Conditional jumps (branch if zero, branch if carry), comparison of numbers, and checking for overflow in signed arithmetic. Larger processors add more flags such as parity, auxiliary carry, interrupt enable and trap.
Answer checked by Claude Sonnet · Oct 21, 2026
Test yourself · 2 MCQs
Loading…
- Asked 2 times
- 2024 Fall · 8 marks
- 2021 Fall · 7 marks
Implement a circuit for full adder using half adder and OR gate.
Answer
Half adder. It adds two bits and :
It is one XOR gate and one AND gate.
Full adder from two half adders and an OR gate
A full adder adds , and :
- Half adder 1 adds and : , .
- Half adder 2 adds and : , .
- OR gate combines the two carries: .
A ──┐ S1 ──┐
[HA 1]── S1 ────────── [HA 2]── S (Sum)
B ──┘ └─ C1 ──┐ Cin ──┘ └─ C2 ──┐
[ OR ]──────────── Cout
Verification. For : , ; , ; . So , which is correct. For : , , , , , giving , which is correct.
The carry equation matches the sum-of-products form , since .
Answer checked by Claude Sonnet · Oct 21, 2026
Test yourself · 2 MCQs
Loading…
- Asked 2 times
- 2024 Fall · 7 marks
- 2021 Fall · 7 marks
Explain ALU with all operation.
Answer
ALU (Arithmetic Logic Unit). The ALU is the part of the CPU that performs all arithmetic and logic operations. It is a combinational circuit with two data inputs (, ), function-select lines, a data output , and status outputs (flags).
A ──┐ ┌──> F (result)
[ ALU ]──────┤
B ──┘ ^ └──> Status flags (C, S, Z, V)
|
Function select (opcode)
Operations
- Arithmetic operations: addition (), subtraction ( using 2's complement), increment (), decrement (), negation, and (in larger ALUs) multiplication and division.
- Logic operations: AND, OR, NOT (complement), XOR and NAND/NOR, done bit by bit on corresponding bits of and .
- Shift and rotate operations: logical shift left or right, arithmetic shift, rotate.
- Comparison: compare two numbers by subtracting them and checking the flags (zero, sign, carry), without storing the result.
Typical function table (select lines , mode )
| Operation | ||
|---|---|---|
| 0 | 00 | |
| 0 | 01 | |
| 0 | 10 | |
| 0 | 11 | |
| 1 | 00 | (AND) |
| 1 | 01 | (OR) |
| 1 | 10 | (XOR) |
| 1 | 11 | (NOT) |
Structure. The arithmetic section uses full adders in a chain, with a MUX to pick , , 0 or all 1s. The logic section uses an AND, OR, XOR and NOT gate on each bit with a MUX to pick one output. A final MUX controlled by the mode selects the arithmetic or logic result.
Status flags. Carry (C), Sign (S), Zero (Z) and Overflow (V) are set according to the result and stored in the status register.
Answer checked by Claude Sonnet · Oct 21, 2026
Test yourself · 2 MCQs
Loading…
- Asked 2 times
- 2024 Spring · 8 marks
- 2021 Fall · 8 marks
What is SR flipflop? Explain its operation with the help of logic circuit and truth table.
Answer
SR flip-flop. The SR (Set-Reset) flip-flop is the basic clocked flip-flop with two inputs, (set) and (reset), a clock input, and outputs and . It stores one bit.
Logic circuit (clocked, NAND based)
S ──┐
[NAND1]──────┐
CLK ┤ [NAND3]──┬── Q
[NAND2]──┐ │ ^ │
R ──┘ └── [NAND4]──┴── Q'
and gate and with the clock. Their outputs drive the cross-coupled NAND latch (, ). When the latch holds its value; when the inputs act.
Truth (characteristic) table
| Operation | |||
|---|---|---|---|
| 0 | 0 | No change (hold) | |
| 0 | 1 | 0 | Reset |
| 1 | 0 | 1 | Set |
| 1 | 1 | ? | Invalid (forbidden) |
Operation
- : both clocked gates output 1, so the latch keeps its previous state.
- : the latch is reset, so and .
- : the latch is set, so and .
- : both outputs would be forced to the same value, and the final state after the clock returns to 0 is unpredictable. This combination must be avoided.
Characteristic equation
Limitation. The invalid condition is removed in the JK flip-flop.
Answer checked by Claude Sonnet · Oct 21, 2026
Test yourself · 2 MCQs
Loading…
- Asked 2 times
- 2024 Spring · 8 marks
- 2023 Fall · 7 marks
Design a 4-bit ALU and explain its operation.
Answer
4-bit ALU design. A 4-bit ALU performs arithmetic and logic operations on two 4-bit operands and and produces a 4-bit result . It is built from four identical one-bit stages, each with an arithmetic section and a logic section, plus a mode select.
Arithmetic section. A full adder in each stage adds to and the carry. A 4:1 MUX chooses from , , 0 or 1 using select lines . The first stage receives carry-in ; the carries ripple to of stage 3. The result is .
| 00 | |||
| 01 | |||
| 10 | 0 | ||
| 11 | all 1s |
Logic section. Each stage has AND, OR, XOR and NOT gates on and , feeding a 4:1 MUX selected by .
| 00 | (AND) |
| 01 | (OR) |
| 10 | (XOR) |
| 11 | (NOT) |
Complete stage. A mode line controls a 2:1 MUX at the output: when (arithmetic) and when (logic). So 3 control bits (plus for arithmetic) select among 8 logic/arithmetic basic functions, or 16 functions with .
S1 S0
|
A_i --> [Arithmetic: FA + Y-MUX] --D_i--\
B_i --> [2:1 MUX, M] --> F_i
A_i --> [Logic: gates + MUX] ---E_i-----/
Operation example. With , , : (2's complement subtraction). With , : bit by bit. The carry-out and the result are used to set the status flags.
Answer checked by Claude Sonnet · Oct 21, 2026
Test yourself · 2 MCQs
Loading…
- 2025 Spring · 7 marks
Implement using NOR and NAND gates.
Similar questions: XOR using NOR and NAND (2024 Fall)
Answer
(a) Using NAND gates only
Apply double complement and De Morgan's law:
So the circuit needs three 2-input NAND gates:
- : NAND with both inputs tied to , giving .
- : NAND of and , giving .
- : NAND of the outputs of and , giving .
A ──┬──[NAND]── A' ──┐
└──┘ [NAND]── F = A + BC
B ──[NAND]── (BC)' ──┘
C ──┘
(b) Using NOR gates only
Use the distributive law and De Morgan's law:
This needs three 2-input NOR gates:
- : NOR of and , giving .
- : NOR of and , giving .
- : NOR of the outputs of and , giving .
A ──[NOR]── (A+B)' ──┐
B ──┘ [NOR]── F = A + BC
A ──[NOR]── (A+C)' ──┘
C ──┘
Verification. For : . In the NOR circuit, and , so . For : , , so , which agrees with .
Answer checked by Claude Sonnet · Oct 21, 2026
Test yourself · 2 MCQs
Loading…
- 2025 Spring · 8 marks
What is combinational circuit? Design 2 4 2 1 to 8 4 -2 -1 code converter.
Similar questions: 8 4 -2 -1 to BCD converter (2024 Fall)
Answer
Combinational circuit. A combinational circuit is a logic circuit whose output depends only on the present values of its inputs, not on past inputs. It has no memory or feedback. It is built from gates, and examples are adders, multiplexers, decoders and code converters.
Design of the 2421 to 8 4 -2 -1 converter
Let the inputs be (2421 code) and the outputs (8 4 -2 -1 code). Input combinations 0101 to 1010 (m5 to m10) never occur in 2421, so they are don't cares.
| Digit | (2421) | (84-2-1) |
|---|---|---|
| 0 | 0000 | 0000 |
| 1 | 0001 | 0111 |
| 2 | 0010 | 0110 |
| 3 | 0011 | 0101 |
| 4 | 0100 | 0100 |
| 5 | 1011 | 1011 |
| 6 | 1100 | 1010 |
| 7 | 1101 | 1001 |
| 8 | 1110 | 1000 |
| 9 | 1111 | 1111 |
K-map simplification (don't cares m5 to m10)
- is 1 for m11 to m15, and the don't cares m8, m9, m10 let one group of the whole half cover them: .
- is 1 for m1, m3, m11, m13, m15, so .
- follows when and the complement when , so .
- is 1 for m1, m2, m3, m4, m15. Using the don't cares, the groups are (m1, m3, plus don't cares), (m2, m3), (m4) and the pair (m7 with m15).
Check. For digit 6, : ; ; ; . This gives 1010, which is 6 in 8 4 -2 -1 code (). For digit 9, : , , giving 1111, which is .
Implementation. Inputs and pass straight through to and . Two XOR gates give . Three AND gates, one 3-input AND and one OR give .
Answer checked by Claude Sonnet · Oct 21, 2026
Test yourself · 2 MCQs
Loading…
- 2025 Spring · 8 marks
Define counter. Design 3-bit up counter using D-Flip Flop.
Similar questions: 3-bit up counter with S-R flip-flop (2024 Fall)
Answer
Counter. A counter is a sequential circuit made of flip-flops that goes through a prescribed sequence of states when clock pulses are applied. It is used to count pulses, divide frequency and generate timing. A -bit binary counter has states.
Design of a 3-bit synchronous up counter using D flip-flops (sequence 0 to 7, then back to 0)
For a D flip-flop, the next state equals the input: .
| Present | Next | |||
|---|---|---|---|---|
| 000 | 001 | 0 | 0 | 1 |
| 001 | 010 | 0 | 1 | 0 |
| 010 | 011 | 0 | 1 | 1 |
| 011 | 100 | 1 | 0 | 0 |
| 100 | 101 | 1 | 0 | 1 |
| 101 | 110 | 1 | 1 | 0 |
| 110 | 111 | 1 | 1 | 1 |
| 111 | 000 | 0 | 0 | 0 |
K-map simplification
- for states 000, 010, 100, 110 (those with ), so .
- for states 001, 010, 101, 110 (), so .
- for states 011, 100, 101, 110, which gives .
Circuit. Three D flip-flops share a common clock. feeds back through a NOT gate to . An XOR gate (inputs ) feeds . An AND gate () and an XOR gate (with ) feed . The outputs count 000, 001, ..., 111, 000, ... on successive clock pulses.
Answer checked by Claude Sonnet · Oct 21, 2026
Test yourself · 2 MCQs
Loading…
- 2024 Fall · 8 marks
Implement X-OR gate using NOR and NAND gates.
Similar questions: A+BC with NOR and NAND (2025 Spring)
Answer
The XOR function is .
(a) Using NAND gates only (4 gates)
Simplified: , whose complement is .
A ─┬────────────[NAND2]──┐
└─[NAND1]─┬─────────── [NAND4]── A⊕B
B ─┬─────────┘ │
└────────────[NAND3]──┘
(b) Using NOR gates only (5 gates)
- (NOR)
- , (NOR inverters)
- (NOR)
Check for : NAND version gives , , , . NOR version gives , , . Both are correct for XOR. For : NAND gives , , , .
Answer checked by Claude Sonnet · Oct 21, 2026
Test yourself · 2 MCQs
Loading…
- 2024 Fall · 8 marks
What is combinational circuit? Design 8 4 -2 -1 to BCD code converter.
Similar questions: 2421 to 8 4 -2 -1 converter (2025 Spring)
Answer
Combinational circuit. A combinational circuit is a logic circuit whose outputs depend only on the present inputs, with no memory or feedback. Examples are adders, multiplexers, decoders and code converters.
Design of the 8 4 -2 -1 to BCD converter
Inputs (8 4 -2 -1 code) and outputs (BCD). The combinations 0001, 0010, 0011, 1100, 1101, 1110 never occur and are don't cares.
| Digit | ||
|---|---|---|
| 0 | 0000 | 0000 |
| 1 | 0111 | 0001 |
| 2 | 0110 | 0010 |
| 3 | 0101 | 0011 |
| 4 | 0100 | 0100 |
| 5 | 1011 | 0101 |
| 6 | 1010 | 0110 |
| 7 | 1001 | 0111 |
| 8 | 1000 | 1000 |
| 9 | 1111 | 1001 |
K-map simplification
- with don't cares 12, 13, 14: groups m12 to m15 give ; m8 with m12 gives . So .
- : m1, m3, m9, m11 gives ; m2, m3, m10, m11 gives ; m4 with m12 gives . So .
- : m1, m5, m9, m13 gives ; m2, m6, m10, m14 gives . So .
- (the 1s of BCD): all have , so .
Check. Digit 9, : ; ; ; , giving 1001. Digit 5, : ; ; ; , giving 0101.
Implementation. is a direct wire from , is one XOR gate, and and use AND-OR logic.
Answer checked by Claude Sonnet · Oct 21, 2026
Test yourself · 2 MCQs
Loading…
- 2024 Fall · 8 marks
What is counter? Briefly explain 3-bit up counter using S-R Flip Flop.
Similar questions: 3-bit up counter with D flip-flop (2025 Spring)
Answer
Counter. A counter is a sequential circuit built from flip-flops that goes through a fixed sequence of states when clock pulses arrive. It counts pulses and is used for timing, frequency division and addressing.
3-bit synchronous up counter using SR flip-flops (count 000 to 111, then back to 000)
SR excitation table
| 0 to 0 | 0 | X |
| 0 to 1 | 1 | 0 |
| 1 to 0 | 0 | 1 |
| 1 to 1 | X | 0 |
State table
| Present | Next | |||
|---|---|---|---|---|
| 000 | 001 | 0X | 0X | 10 |
| 001 | 010 | 0X | 10 | 01 |
| 010 | 011 | 0X | X0 | 10 |
| 011 | 100 | 10 | 01 | 01 |
| 100 | 101 | X0 | 0X | 10 |
| 101 | 110 | X0 | 10 | 01 |
| 110 | 111 | X0 | X0 | 10 |
| 111 | 000 | 01 | 01 | 01 |
Simplification by K-map
- when , so ; when , so .
- at 001 and 101, so ; at 011 and 111, so .
- only at 011, so ; only at 111, so .
In no state are and both 1, so the forbidden input never occurs.
Circuit. Three SR flip-flops share a clock. and drive and directly. Two-input AND gates give and , and three-input AND gates give and . The outputs count 0 to 7 and repeat.
Answer checked by Claude Sonnet · Oct 21, 2026
Test yourself · 2 MCQs
Loading…
- 2024 Spring · 10 marks
Perform the following conversions:
(i)
(ii)
(iii)
(iv)
(v)
Similar questions: Number conversions (2023 Fall)
Answer
(i)
(ii)
(iii)
The MSB is copied; each following binary bit is the previous binary bit XOR the next Gray bit.
(iv)
.
Division method (remainders from the last upward): r 0; r 0; r 0; r 1; r 0; r 0; r 0; r 0; r 1; r 0; r 1; r 0; r 0; r 1.
(v)
Pad to 4 bits: .
Answer checked by Claude Sonnet · Oct 21, 2026
Test yourself · 2 MCQs
Loading…
- 2023 Fall · 8 marks
Perform the following conversions:
(i)
(ii)
(iii)
(iv)
Similar questions: Number conversions (2024 Spring)
Answer
(i)
Hex to binary: , , . , , .
Regroup in 3 bits from the point: integer part gives ; fraction part gives .
(ii)
Replace each octal digit by 3 bits: , , .
(iii)
Copy the MSB; then .
(iv)
Answer checked by Claude Sonnet · Oct 21, 2026
Test yourself · 2 MCQs
Loading…
- 2021 Spring · 8 marks
Design 3-bit up/down asynchronous counter.
Similar questions: 3-bit up/down counter (2021 Fall)
Answer
An asynchronous (ripple) counter applies the clock only to the first flip-flop; each later flip-flop is clocked by the output of the previous one. A 3-bit up/down counter counts in up mode and in down mode, selected by a control input .
Basic idea. Use three JK flip-flops with (so each toggles on a clock edge), triggered on the falling (negative) edge.
- Up counting: each flip-flop is clocked from the output of the previous one. toggling from 1 to 0 gives a clock edge to the next stage.
- Down counting: each flip-flop is clocked from the output of the previous one.
Mode selection. A control input is used ( up, down), and the clock of each stage is
is the external clock. These are implemented with two AND gates and an OR gate (a 2-to-1 multiplexer) between successive stages.
Count sequence
| Up () | Down () |
|---|---|
| 000 | 111 |
| 001 | 110 |
| 010 | 101 |
| 011 | 100 |
| 100 | 011 |
| 101 | 010 |
| 110 | 001 |
| 111 | 000 |
| 000 | 111 |
Circuit
- Three JK flip-flops with , falling-edge triggered.
- External clock to .
- Multiplexer logic as above in front of and .
- Outputs .
Limitation. The propagation delay accumulates through the stages, so the counter is slower than a synchronous counter and can show brief false states.
Answer checked by Claude Sonnet · Oct 21, 2026
Test yourself · 2 MCQs
Loading…
- 2021 Fall · 8 marks
Design 3-bit UP/Down Counter.
Similar questions: 3-bit up/down asynchronous counter (2021 Spring)
Answer
A 3-bit synchronous up/down counter counts when the control input (up) and when (down). The same clock is applied to all three flip-flops.
Using T-type behaviour (JK flip-flops with ): a flip-flop must toggle when
- counting up: all lower bits are 1,
- counting down: all lower bits are 0.
Design (JK flip-flops)
State table (excerpt)
| Present | Next | Flip-flops that toggle | |
|---|---|---|---|
| 1 | 000 | 001 | |
| 1 | 001 | 010 | |
| 1 | 011 | 100 | |
| 1 | 111 | 000 | |
| 0 | 000 | 111 | |
| 0 | 100 | 011 | |
| 0 | 011 | 010 | |
| 0 | 001 | 000 |
Circuit
- Three JK flip-flops with a common clock.
- .
- For : an XNOR (or AND-OR) circuit of and gives .
- For : two AND gates and with an OR gate give .
Check. Up, state : , , so all three toggle and the next state is . Down, state : and , so all three toggle, giving .
Answer checked by Claude Sonnet · Oct 21, 2026
Test yourself · 2 MCQs
Loading…
- 2025 Spring · 7 marks
In modern day of communication why digital systems are preferred over analog system.
Answer
In modern communication, digital systems are preferred over analog systems for the following reasons.
- Noise immunity: A digital signal has only two levels (0 and 1), so a receiver can recover the original even with some noise; analog signals pick up noise that cannot be separated.
- Error detection and correction: Techniques such as parity, CRC and Hamming codes can detect and correct errors.
- Regeneration: Digital signals can be regenerated by repeaters with no accumulating noise over long distances, whereas amplification of analog also amplifies noise.
- Easy storage and processing: Data can be stored in memory and processed by computers and DSP, and compressed.
- Security: Encryption is simple, ensuring secure communication.
- Multiplexing and integration: Voice, data and video can be combined and transmitted over the same network (time-division multiplexing).
- Cost and size: Digital ICs are cheaper, smaller, more reliable and consume less power. They have higher accuracy and are easy to design with Boolean logic.
- Quality and flexibility: Faithful copies without degradation, and easy upgrade by software.
The drawback is the larger bandwidth needed and quantisation error, but the advantages outweigh these.
Answer checked by Claude Sonnet · Oct 21, 2026
Test yourself · 2 MCQs
Loading…
- 2025 Spring · 8 marks
Perform the following conversion:
(i)
(ii)
(iii)
(iv)
Answer
(i)
Convert each hex digit to 4 bits: A = 1010, B = 1011, 5 = 0101, 9 = 1001, C = 1100.
Group in 3 bits from the radix point: integer part = 5 2 6 5; fractional part = 4 7 0.
(ii)
To decimal: .
Divide by 4 repeatedly: 1683 = 420 r 3; 420 = 105 r 0; 105 = 26 r 1; 26 = 6 r 2; 6 = 1 r 2; 1 = 0 r 1.
Reading remainders upward:
Check: .
(iii)
MSB is copied: . Next, : , , , , .
(iv)
Code each decimal digit in 2421: 4 = 0100, 3 = 0011, 5 = 1011, 6 = 1100.
Answer checked by Claude Sonnet · Oct 21, 2026
Test yourself · 2 MCQs
Loading…
- 2025 Spring · 7 marks
Deduce the given expression in minimum literals using Boolean algebra and derive the truth table and implement in NAND logic.
Answer
Simplification
Inside the braces: .
Since (absorption form ), this is .
So the bracket becomes
Multiply by :
Then
Minimum expression: (3 literals; does not matter).
Truth table (C is a don't-care, so it is shown for )
| A | B | D | BD | F = A + BD |
|---|---|---|---|---|
| 0 | 0 | 0 | 0 | 0 |
| 0 | 0 | 1 | 0 | 0 |
| 0 | 1 | 0 | 0 | 0 |
| 0 | 1 | 1 | 1 | 1 |
| 1 | 0 | 0 | 0 | 1 |
| 1 | 0 | 1 | 0 | 1 |
| 1 | 1 | 0 | 0 | 1 |
| 1 | 1 | 1 | 1 | 1 |
NAND implementation
Using double complement and De Morgan:
- Gate 1:
- Gate 2:
- Gate 3:
Total: 3 two-input NAND gates.
Answer checked by Claude Sonnet · Oct 21, 2026
Test yourself · 2 MCQs
Loading…
- 2025 Spring · 7 marks
Design full adder with proper truth table and K-map.
Answer
A full adder adds three 1-bit inputs: , and the carry-in . It produces a Sum and a Carry-out .
Truth table
| 0 | 0 | 0 | 0 | 0 |
| 0 | 0 | 1 | 1 | 0 |
| 0 | 1 | 0 | 1 | 0 |
| 0 | 1 | 1 | 0 | 1 |
| 1 | 0 | 0 | 1 | 0 |
| 1 | 0 | 1 | 0 | 1 |
| 1 | 1 | 0 | 0 | 1 |
| 1 | 1 | 1 | 1 | 1 |
and .
K-map for Sum (rows , columns in Gray order 00, 01, 11, 10)
| 00 | 01 | 11 | 10 | |
|---|---|---|---|---|
| 0 | 0 | 1 | 0 | 1 |
| 1 | 1 | 0 | 1 | 0 |
The 1s form a checkerboard, so no two are adjacent and no grouping is possible:
K-map for Carry
| 00 | 01 | 11 | 10 | |
|---|---|---|---|---|
| 0 | 0 | 0 | 1 | 0 |
| 1 | 0 | 1 | 1 | 1 |
Three pairs: m3 with m7 gives ; m5 with m7 gives ; m6 with m7 gives .
Circuit. Two XOR gates give (, then XOR with ). Two AND gates and one OR gate give , either as or as .
Answer checked by Claude Sonnet · Oct 21, 2026
Test yourself · 2 MCQs
Loading…
- 2025 Spring · 8 marks
Convert excess-3 code to BCD code.
Answer
Excess-3 code is the BCD digit plus 3. To convert back, subtract 3 from the code. Let the inputs be (excess-3) and the outputs (BCD). Combinations 0000, 0001, 0010, 1101, 1110, 1111 do not occur, so they are don't cares (X).
| Digit | Excess-3 | BCD |
|---|---|---|
| 0 | 0011 | 0000 |
| 1 | 0100 | 0001 |
| 2 | 0101 | 0010 |
| 3 | 0110 | 0011 |
| 4 | 0111 | 0100 |
| 5 | 1000 | 0101 |
| 6 | 1001 | 0110 |
| 7 | 1010 | 0111 |
| 8 | 1011 | 1000 |
| 9 | 1100 | 1001 |
K-map simplification (don't cares m0, m1, m2, m13, m14, m15)
- : group m12, m13, m14, m15 gives , and m11 with m15 gives . So .
- : group m0, m1, m8, m9 gives ; group m0, m2, m8, m10 gives ; m7 with m15 gives . So .
- : the 1s sit at , so .
- : all 1s have , so .
Check. Excess-3 for 7 is . Then ; ; ; . This gives , which is 7.
Implementation. One NOT gate for , one XOR for , and AND-OR logic for and .
Answer checked by Claude Sonnet · Oct 21, 2026
Test yourself · 2 MCQs
Loading…
- 2025 Spring · 7 marks
Define multiplexer. Design 8:1 multiplexer.
Answer
Multiplexer (MUX). A multiplexer is a combinational circuit with data inputs, select lines and a single output. It passes one selected input to the output, so it works as a digital data selector. It is also called a many-to-one switch.
Design of an 8:1 multiplexer
An 8:1 MUX has 8 data inputs , 3 select lines and one output .
| 0 | 0 | 0 | |
| 0 | 0 | 1 | |
| 0 | 1 | 0 | |
| 0 | 1 | 1 | |
| 1 | 0 | 0 | |
| 1 | 0 | 1 | |
| 1 | 1 | 0 | |
| 1 | 1 | 1 |
Boolean expression
Circuit. The circuit has:
- three NOT gates to produce
- eight 4-input AND gates, each taking one data input and one combination of select lines (a 3-to-8 decoder merged with the data inputs)
- one 8-input OR gate that gives
I0 ─[AND]┐
I1 ─[AND]┤
... ├─[8-input OR]── Y
I7 ─[AND]┘
^ each AND is also fed by a decoded combination of S2 S1 S0
Alternative. An 8:1 MUX can be built from two 4:1 MUXes (selected by ) and one 2:1 MUX (selected by ) that picks between their outputs.
Answer checked by Claude Sonnet · Oct 21, 2026
Test yourself · 2 MCQs
Loading…
- 2025 Spring · 7 marks
Draw a 4 bit PISO shift register and explain the operation along the timing waveform with the 1101 data load in input.
Answer
PISO (Parallel-In Serial-Out) register. The register loads all four bits at once through parallel inputs and shifts them out one bit at a time through a single output.
Circuit. It consists of four D flip-flops with a common clock. A control line drives a 2:1 selector at the input of each flip-flop (built from AND-OR gates).
D3 D2 D1 D0 (parallel inputs)
| | | |
0 -->[MUX] [MUX]<--Q3 [MUX]<--Q2 [MUX]<--Q1
| | | |
[FF3]---->[FF2]---->[FF1]---->[FF0]---> Serial out (Q0)
^ ^ ^ ^
CLK ------ common clock to all flip-flops
Each MUX: SHIFT/LOAD' = 0 selects the parallel bit, 1 selects the previous Q
Operation with data 1101 ()
- Load mode (): on a clock pulse the data enters in parallel, so . The serial output is .
- Shift mode (): each clock pulse moves the contents one place to the right and shifts a 0 into .
| Clock pulse | Serial out | |
|---|---|---|
| Load | 1101 | 1 |
| 1 | 0110 | 0 |
| 2 | 0011 | 1 |
| 3 | 0001 | 1 |
| 4 | 0000 | 0 |
The serial output stream is therefore 1, 0, 1, 1 (the first bit is , then , , ). It is read in the sequence 1 0 1 1 over the first four clock cycles after loading.
Timing waveform. The clock is a continuous pulse train. is 1 after loading, goes low at the first shift, high at the second and third, then low. , , show the same pattern delayed by one clock each. The 1101 pattern appears bit by bit at the output, and after four shifts the register is empty.
Total time to send 4 bits is 4 clock periods, against one period for a parallel transfer.
Answer checked by Claude Sonnet · Oct 21, 2026
Test yourself · 2 MCQs
Loading…
- 2025 Spring · 8 marks
Design 4 bit of arithmetic and logic operation with the necessary circuit and logic table.
Answer
A 4-bit arithmetic-logic circuit has four identical stages, one for each bit. It performs arithmetic operations on and and also logic operations, selected by control lines.
Arithmetic circuit. Each stage is a full adder. Its inputs are , a modified and the carry. A 4:1 multiplexer on each line, controlled by , chooses from , , 0 or 1. The input carry goes to the first stage. Output .
| 0 | 0 | (add) | ||
| 0 | 1 | (subtract) | ||
| 1 | 0 | 0 | (transfer) | (increment) |
| 1 | 1 | all 1s | (decrement) | (transfer) |
(All-1s equals in 2's complement, so .)
Logic circuit. For each bit, a 4:1 MUX with select lines chooses among four gates fed by and :
| Output | Operation | ||
|---|---|---|---|
| 0 | 0 | AND | |
| 0 | 1 | OR | |
| 1 | 0 | XOR | |
| 1 | 1 | NOT |
Combining. A mode select drives a final 2:1 MUX per bit: outputs the arithmetic result and outputs the logic result . The carry-out of the last adder stage is the arithmetic status flag.
A_i B_i --> [Arithmetic stage: FA + Y-select] --D_i--\
[2:1 MUX, M] --> F_i
A_i B_i --> [Logic stage: AND/OR/XOR/NOT MUX] --E_i--/
Answer checked by Claude Sonnet · Oct 21, 2026
Test yourself · 2 MCQs
Loading…
- 2025 Spring · 5 marks
Write short notes on: Universal Gate
Answer
Universal gate. A universal gate is a gate from which every other basic gate (NOT, AND, OR) and hence any Boolean function can be built. NAND and NOR are universal gates.
Using NAND
- NOT:
- AND: (a NAND followed by a NAND inverter)
- OR: (invert both inputs, then NAND)
Using NOR
- NOT:
- OR:
- AND:
Why they are important. Using only one gate type reduces the number of IC types needed, makes fabrication cheaper and simpler, and lets whole circuits be designed in NAND-NAND or NOR-NOR form.
Answer checked by Claude Sonnet · Oct 21, 2026
Test yourself · 2 MCQs
Loading…
- 2024 Fall · 8 marks
Explain the Digital Computer System. Write the advantage of Digital System over the Analog System.
Answer
Digital computer system. A digital computer is an electronic machine that processes data represented as discrete binary values (0 and 1). It accepts data and instructions, stores them, processes them according to a stored program and gives results. The data is represented by two voltage levels (for example 0 V and 5 V).
Main units
Input unit --> [ CPU: ALU + Control unit + Registers ] --> Output unit
^ |
| v
Memory (primary / secondary)
- Input unit: keyboard, mouse, scanner; converts data into binary.
- Memory unit: holds data and programs. Primary memory (RAM, ROM) is fast; secondary memory (disk) is large and permanent.
- ALU: performs arithmetic and logic operations.
- Control unit: fetches, decodes and executes instructions and coordinates all units.
- Output unit: monitor, printer; converts binary results to human form.
Advantages of digital systems over analog systems
- Noise immunity: only two levels exist, so small noise does not change the value. Analog signals are distorted by noise.
- Accuracy and precision: more bits give higher precision; analog accuracy is limited by component tolerances.
- Easy storage: data can be stored for long periods in memory without degradation.
- Programmability: behaviour can be changed by software without changing the hardware.
- Error detection and correction: parity and Hamming codes can find and fix errors.
- Easy design and integration: logic gates can be integrated on ICs in very large numbers, with low cost and power.
- Reproducible, easy to transmit and process: copies are exact; digital signals can be compressed, encrypted and regenerated.
Disadvantage. Real-world signals are analog, so ADC and DAC are needed, and digital systems have a finite resolution.
Answer checked by Claude Sonnet · Oct 21, 2026
Test yourself · 2 MCQs
Loading…
- 2024 Fall · 7 marks
What is the weighted code and non-weighted code? Perform the conversions indicated:
(i)
(ii)
(iii)
(iv) using 2's complement.
Answer
Weighted code. Each digit position has a fixed weight, and the value is the sum of the weights of the 1 bits. Examples: BCD (8421), 2421, 84-2-1.
Non-weighted code. The positions have no fixed weights. Examples: Gray code, excess-3 code.
(i)
Convert each hex digit to 4 bits: , , , , , .
Regroup in 3s from the point: integer gives ; fraction gives .
(ii)
The digit 5 is not valid in base 4 (digits are 0 to 3), so is not a valid number. If the intended number is :
(If the base were 6, .)
(iii)
The MSB is copied; each next bit is the previous binary bit XOR the next Gray bit.
(iv) using 2's complement
and . The 2's complement of (5 bits) is .
The carry out is discarded, so the answer is (check: ).
Answer checked by Claude Sonnet · Oct 21, 2026
Test yourself · 2 MCQs
Loading…
- 2024 Fall · 8 marks
Design combinational circuit that has four input and two outputs, one of the output is high when majority of inputs are high. The second output is high only when all inputs are same type.
Answer
Let the inputs be and the outputs (majority high) and (all inputs the same). Majority means more than half of the four inputs are high, which is at least three 1s.
Truth table (rows with output 1 only are shown in full; all other rows have )
| 0000 | 0 | 1 |
| 0111 | 1 | 0 |
| 1011 | 1 | 0 |
| 1101 | 1 | 0 |
| 1110 | 1 | 0 |
| 1111 | 1 | 1 |
| other 10 rows | 0 | 0 |
and .
K-map for (rows , columns )
| 00 | 01 | 11 | 10 | |
|---|---|---|---|---|
| 00 | 0 | 0 | 0 | 0 |
| 01 | 0 | 0 | 1 | 0 |
| 11 | 0 | 1 | 1 | 1 |
| 10 | 0 | 0 | 1 | 0 |
Four pairs, each containing m15: m7 and m15 give ; m11 and m15 give ; m13 and m15 give ; m14 and m15 give .
. m0 and m15 are not adjacent, so there is no simplification:
Circuit. For : four 3-input AND gates feeding a 4-input OR gate. For : one 4-input AND on and one 4-input AND on the complemented inputs (four NOT gates), feeding a 2-input OR gate.
Answer checked by Claude Sonnet · Oct 21, 2026
Test yourself · 2 MCQs
Loading…
- 2024 Fall · 7 marks
Define Mux and De-Mux. Implement using Mux.
Answer
Multiplexer (MUX). A combinational circuit with data inputs, select lines and one output. It selects one of the inputs and passes it to the output (many-to-one).
Demultiplexer (DEMUX). A combinational circuit with one data input, select lines and outputs. It routes the single input to one of the outputs chosen by the select lines (one-to-many). A 1:4 DEMUX has , , , .
Implementation of using an 8:1 MUX
Use as select lines () and as the data variable. Each select combination covers two minterms, (with ) and (with ).
| Select | Minterms | for | for | Input |
|---|---|---|---|---|
| 000 | 0, 1 | 1 | 1 | |
| 001 | 2, 3 | 0 | 1 | |
| 010 | 4, 5 | 1 | 0 | |
| 011 | 6, 7 | 0 | 0 | |
| 100 | 8, 9 | 1 | 1 | |
| 101 | 10, 11 | 0 | 0 | |
| 110 | 12, 13 | 0 | 0 | |
| 111 | 14, 15 | 0 | 1 |
Connections
I0 = 1
I1 = D
I2 = D' (via NOT gate)
I3 = 0
I4 = 1 8:1 MUX --> F
I5 = 0 S2 = A, S1 = B, S0 = C
I6 = 0
I7 = D
Answer checked by Claude Sonnet · Oct 21, 2026
Test yourself · 2 MCQs
Loading…
- 2024 Fall · 7 marks
What do you mean by Serial register? Explain the Serial In Serial Out register with the timing diagram.
Answer
Serial register. A shift register in which data is entered or taken out one bit at a time, in sequence, through a single line. The bits move through the flip-flops, one position for each clock pulse.
Serial In Serial Out (SISO) shift register. It consists of D flip-flops connected in cascade: the output of each flip-flop feeds the input of the next, and all share one clock. Data enters at the first flip-flop and leaves from the last.
Serial in --> [D FF0] --> [D FF1] --> [D FF2] --> [D FF3] --> Serial out
^ ^ ^ ^
+------------+---- CLK ----+------------+
Operation (4-bit register, initially 0000; the bits 1, 0, 1, 1 are applied in that order on successive clock pulses, then 0s)
| Clock | Serial in | Serial out () | |
|---|---|---|---|
| Initial | - | 0000 | 0 |
| 1 | 1 | 1000 | 0 |
| 2 | 0 | 0100 | 0 |
| 3 | 1 | 1010 | 0 |
| 4 | 1 | 1101 | 1 (the first bit entered) |
| 5 | 0 | 0110 | 0 |
| 6 | 0 | 0011 | 1 |
| 7 | 0 | 0001 | 1 |
| 8 | 0 | 0000 | 0 |
Each bit takes 4 clock pulses to travel from input to output. The first bit entered appears at the output on the 4th pulse and the following bits appear one per pulse (1, 0, 1, 1 at from pulse 4 to pulse 7).
Timing diagram. On each rising clock edge every flip-flop copies the value of the previous one, so the waveform at is the input delayed by one clock, by two, by three and by four clocks. The same data pattern appears on all four outputs, each shifted by one clock period.
Features. It needs only one input and one output pin, so it is used for serial data transmission and for delays. Its drawback is that it is slow: clock pulses are needed to load or read bits.
Answer checked by Claude Sonnet · Oct 21, 2026
Test yourself · 2 MCQs
Loading…
- 2024 Fall · 7 marks
Draw a PIPO register. Explain in brief.
Answer
PIPO (Parallel-In Parallel-Out) register. All bits of the data word are loaded at the same time through parallel inputs, and all bits are available at the same time at the parallel outputs. It is built from D flip-flops with a common clock and needs no shifting.
Diagram (4-bit)
D3 D2 D1 D0 (parallel data inputs)
| | | |
[D FF] [D FF] [D FF] [D FF] <---- common CLK
| | | |
Q3 Q2 Q1 Q0 (parallel data outputs)
Operation
- The 4-bit word is applied to the inputs.
- On the active clock edge, each flip-flop stores its own input bit, so .
- The outputs hold the data until the next clock edge, even if the inputs change.
For example, the input 1010 appears at the outputs as after one clock pulse.
Features. It is the fastest register, needing only one clock pulse to load and to read. It is used as a temporary storage (buffer) register, for example in CPUs and interface circuits. It uses a flip-flop for each bit, so the wiring is more complex than a serial register.
Answer checked by Claude Sonnet · Oct 21, 2026
Test yourself · 2 MCQs
Loading…
- 2024 Fall · 5 marks
Write short notes on: Duality principle
Answer
Duality principle. In Boolean algebra, every identity remains valid if we interchange the AND and OR operators and interchange the identity elements 0 and 1 throughout the expression. The new expression obtained is the dual of the original.
Rules to form the dual
- Replace by and by .
- Replace 0 by 1 and 1 by 0.
- Variables and complements are left unchanged.
Examples
| Original | Dual |
|---|---|
| De Morgan: |
Importance. Every theorem has a dual, so proving one theorem proves the other, which halves the work. The postulates and theorems of Boolean algebra are listed in dual pairs. Duality is also the basis for converting between NAND and NOR designs, and for switching between sum-of-products and product-of-sums forms.
Answer checked by Claude Sonnet · Oct 21, 2026
Test yourself · 2 MCQs
Loading…
- 2024 Spring · 5 marks
What are basic theorem and properties of Boolean Algebra.
Answer
Basic postulates and properties
| Property | AND form | OR form |
|---|---|---|
| Identity | ||
| Null (domination) | ||
| Idempotent | ||
| Complement | ||
| Involution | ||
| Commutative | ||
| Associative | ||
| Distributive |
Basic theorems
| Theorem | AND form | OR form |
|---|---|---|
| Absorption | ||
| Simplification | ||
| Consensus | ||
| De Morgan's |
Every identity has a dual obtained by swapping AND with OR and 0 with 1 (duality principle). These laws are used to simplify Boolean expressions and reduce the number of gates in a circuit.
Answer checked by Claude Sonnet · Oct 21, 2026
Test yourself · 2 MCQs
Loading…
- 2024 Spring · 7 marks
What is the Involution law? Define logic gates and truth tables.
Answer
Involution law. Complementing a variable twice gives back the original variable:
It is verified by a truth table: if , and ; if , and . In circuits, two NOT gates in series cancel.
Logic gates. A logic gate is an electronic circuit with one or more inputs and one output, which performs a basic logical operation on binary inputs. The relation between inputs and output is shown by a truth table, which lists the output for every combination of inputs.
| Gate | Symbol / expression | Output |
|---|---|---|
| NOT | complement of input | |
| AND | 1 only if all inputs are 1 | |
| OR | 1 if any input is 1 | |
| NAND | 0 only if all inputs are 1 | |
| NOR | 1 only if all inputs are 0 | |
| XOR | 1 if inputs differ | |
| XNOR | 1 if inputs are equal |
Truth tables (two inputs)
| AND | OR | NAND | NOR | XOR | XNOR | ||
|---|---|---|---|---|---|---|---|
| 0 | 0 | 0 | 0 | 1 | 1 | 0 | 1 |
| 0 | 1 | 0 | 1 | 1 | 0 | 1 | 0 |
| 1 | 0 | 0 | 1 | 1 | 0 | 1 | 0 |
| 1 | 1 | 1 | 1 | 0 | 0 | 0 | 1 |
NOT: gives ; gives .
Answer checked by Claude Sonnet · Oct 21, 2026
Test yourself · 2 MCQs
Loading…
- 2024 Spring · 8 marks
Explain about De-Morgan's law of 3 input variables.
Answer
De Morgan's laws relate AND, OR and complement. For three variables :
First law. The complement of a sum equals the product of the complements:
Second law. The complement of a product equals the sum of the complements:
Proof by truth table
| 0 | 0 | 0 | 1 | 1 | 1 | 1 |
| 0 | 0 | 1 | 0 | 0 | 1 | 1 |
| 0 | 1 | 0 | 0 | 0 | 1 | 1 |
| 0 | 1 | 1 | 0 | 0 | 1 | 1 |
| 1 | 0 | 0 | 0 | 0 | 1 | 1 |
| 1 | 0 | 1 | 0 | 0 | 1 | 1 |
| 1 | 1 | 0 | 0 | 0 | 1 | 1 |
| 1 | 1 | 1 | 0 | 0 | 0 | 0 |
The columns are identical in pairs, so both laws hold.
Algebraic proof. Apply the two-variable law twice: . Similarly, .
Gate equivalents. A 3-input NOR gate equals a 3-input AND gate with all inputs inverted; a 3-input NAND gate equals a 3-input OR gate with all inputs inverted. The laws extend to any number of variables and are the basis of NAND/NOR-only designs.
Answer checked by Claude Sonnet · Oct 21, 2026
Test yourself · 2 MCQs
Loading…
- 2024 Spring · 7 marks
Explain full adder circuit with required diagrams.
Answer
Full adder. A combinational circuit that adds three 1-bit numbers: two input bits and and a carry-in from the previous stage. It has two outputs, the sum and the carry-out . Cascading full adders gives a multi-bit adder.
Truth table
| 0 | 0 | 0 | 0 | 0 |
| 0 | 0 | 1 | 1 | 0 |
| 0 | 1 | 0 | 1 | 0 |
| 0 | 1 | 1 | 0 | 1 |
| 1 | 0 | 0 | 1 | 0 |
| 1 | 0 | 1 | 0 | 1 |
| 1 | 1 | 0 | 0 | 1 |
| 1 | 1 | 1 | 1 | 1 |
Boolean expressions (from K-maps)
Logic diagram (two XORs, two ANDs, one OR)
A ──┬──[XOR1]──┬──────────[XOR2]── S
B ──┤ │ Cin ───┘ │
│ └─────────[AND2]─┐
└────────────────[AND1]─────[OR]── Cout
gives ; gives . gives ; gives . The OR gate gives .
Alternative. It can also be drawn using two half adders and an OR gate (the first half adder adds and , the second adds the sum to , and the OR combines the two carries).
Check: : , , giving .
Answer checked by Claude Sonnet · Oct 21, 2026
Test yourself · 2 MCQs
Loading…
- 2024 Spring · 8 marks
Design a code converter to convert 8 4 -2 -1 code to 2421.
Answer
Design of the 8 4 -2 -1 to 2421 code converter
Inputs (8 4 -2 -1) and outputs (2421). The combinations 0001, 0010, 0011, 1100, 1101, 1110 do not occur and are don't cares.
| Digit | (84-2-1) | (2421) |
|---|---|---|
| 0 | 0000 | 0000 |
| 1 | 0111 | 0001 |
| 2 | 0110 | 0010 |
| 3 | 0101 | 0011 |
| 4 | 0100 | 0100 |
| 5 | 1011 | 1011 |
| 6 | 1010 | 1100 |
| 7 | 1001 | 1101 |
| 8 | 1000 | 1110 |
| 9 | 1111 | 1111 |
K-map simplification
- for (digits 5 to 9) and 0 for , so .
- for 0111, 0101, 1011, 1001, 1111, all with , so .
- at m4, m8, m9, m10, m15. Groups: m8, m9, m12, m13 give ; m8, m10, m12, m14 give ; m12 to m15 give ; m4 with m12 gives . So .
- at m5, m6, m8, m11, m15. The term covers m5 and m6; the term covers m8 and m11 (and m15); covers m15 and the don't cares m12 to m14. So .
Check. Digit 8, : ; ; ; , giving 1110. Digit 3, : ; ; ; , giving 0011.
Circuit. and are straight connections of and . An XOR on is shared by the logic, which uses AND-OR gates; uses AND-OR logic.
Answer checked by Claude Sonnet · Oct 21, 2026
Test yourself · 2 MCQs
Loading…
- 2024 Spring · 8 marks
Design a synchronous 4-bit up counter.
Answer
Synchronous counter. All flip-flops receive the same clock pulse at the same time, so there is no ripple delay and it is faster than an asynchronous counter. A 4-bit up counter counts 0000 to 1111 (0 to 15) and then returns to 0000.
Design using JK flip-flops
For a JK flip-flop in toggle form, a flip-flop must toggle () when all lower bits are 1, and hold () otherwise. This follows from the excitation table:
| 0 to 0 | 0 | X |
| 0 to 1 | 1 | X |
| 1 to 0 | X | 1 |
| 1 to 1 | X | 0 |
State sequence (binary up count): 0000, 0001, 0010, 0011, 0100, ..., 1110, 1111, 0000.
- toggles on every clock: .
- toggles when : .
- toggles when : .
- toggles when : .
Circuit. Four JK flip-flops share the clock. are tied to logic 1. are connected to . A 2-input AND gate () feeds , and a 3-input AND gate () feeds .
Check. At 0111: , so toggles to 1; (), and also toggle to 0, so the next state is 1000. At 1111 all four toggle, giving 0000.
Answer checked by Claude Sonnet · Oct 21, 2026
Test yourself · 2 MCQs
Loading…
- 2024 Spring · 7 marks
Explain the operation of PIPO shift register with the help of necessary diagram.
Answer
PIPO shift register. In a Parallel-In Parallel-Out register the bits are loaded into all flip-flops at the same time, and the outputs of all flip-flops are available at the same time. It is the register used for temporary storage of a data word.
Diagram (4-bit, D flip-flops)
D3 D2 D1 D0 (parallel inputs)
| | | |
[D FF3][D FF2][D FF1][D FF0] <--- CLK (common)
| | | |
Q3 Q2 Q1 Q0 (parallel outputs)
Operation
- The 4-bit data word is placed on the inputs .
- When the clock pulse arrives, every flip-flop captures its input at the same instant (D flip-flop: ).
- The outputs immediately show the stored word and hold it until the next clock pulse, regardless of later changes at the inputs.
Example: with , after one clock pulse .
Because loading and reading take one clock pulse each, it is the fastest type of register. A clear (reset) input can be added to set all outputs to 0. It is used in CPUs as general-purpose registers, and in buffers and latches.
Answer checked by Claude Sonnet · Oct 21, 2026
Test yourself · 2 MCQs
Loading…
- 2024 Spring · 5 marks
Write short notes on: Multiplexer
Answer
Multiplexer (MUX). A multiplexer is a combinational circuit that selects one of data inputs and sends it to a single output, under the control of select lines. It is also called a data selector.
Example: 4:1 MUX (inputs , selects )
| 0 | 0 | |
| 0 | 1 | |
| 1 | 0 | |
| 1 | 1 |
It consists of NOT gates, AND gates (one per input) and one OR gate.
Uses
- Data routing and parallel-to-serial conversion.
- Implementing Boolean functions: a MUX can realise any function of variables.
- Selecting registers or sources in a CPU, and in ALU designs.
- Communication systems for time-division multiplexing.
Larger multiplexers can be built from smaller ones (for example, an 8:1 MUX from two 4:1 MUXes and one 2:1 MUX).
Answer checked by Claude Sonnet · Oct 21, 2026
Test yourself · 2 MCQs
Loading…
- 2024 Spring · 5 marks
Write short notes on: Processor bus organization
Answer
Processor bus organization. The processor bus is the set of lines that carry data and addresses between the registers, the ALU and memory inside the CPU. It determines how many register transfers can occur in one clock cycle.
Types
- Single-bus organization: all registers, the ALU and the memory interface share one common bus. Only one data transfer can take place at a time, so an ALU operation takes several steps. The ALU inputs need temporary registers (such as and ). It is simple and cheap but slow.
- Two-bus organization: two buses let two operands be read in the same cycle, or one operand and a result to be moved together. This reduces the number of steps.
- Three-bus organization: one bus carries the first operand, the second carries the other operand, and the third carries the result back to the register file. The ALU computes in a single clock cycle. It is faster but needs more hardware and wires.
Control. Each register has input-enable and output-enable signals (tri-state gates connect register outputs to the bus). The control unit activates these in the proper sequence to move data.
Example (single bus, add )
- out, in
- out, ALU add, in
- out, in
Answer checked by Claude Sonnet · Oct 21, 2026
Test yourself · 2 MCQs
Loading…
- 2023 Fall · 7 marks
Show NAND and NOR gates as universal gates.
Answer
A universal gate can realise all basic gates (NOT, AND, OR), and therefore any logic function. NAND and NOR are universal gates.
NAND as a universal gate
| Gate | Construction | Proof |
|---|---|---|
| NOT | Tie both inputs of a NAND together | |
| AND | NAND followed by a NAND used as NOT | |
| OR | NOT each input, then NAND them |
NOR as a universal gate
| Gate | Construction | Proof |
|---|---|---|
| NOT | Tie both inputs of a NOR together | |
| OR | NOR followed by a NOR used as NOT | |
| AND | NOT each input, then NOR them |
NAND-based:
NOT: A ─┬─[NAND]── A'
└─┘
AND: A,B ─[NAND]─[NAND as NOT]── AB
OR: A ─[NAND as NOT]─┐
B ─[NAND as NOT]─┴─[NAND]── A+B
Since NOT, AND and OR can form any Boolean function, NAND alone, or NOR alone, is enough to build any digital circuit. Using one type of gate also simplifies IC manufacturing.
Answer checked by Claude Sonnet · Oct 21, 2026
Test yourself · 2 MCQs
Loading…
- 2023 Fall · 7 marks
What is the dual of a function. Explain involution law.
Answer
Dual of a function. The dual of a Boolean expression is obtained by replacing each AND by OR, each OR by AND, each 0 by 1 and each 1 by 0, while the variables and their complements stay unchanged.
Examples:
- Dual of is .
- Dual of is .
- Dual of is .
The dual should not be confused with the complement: the complement also complements the variables. By the principle of duality, if an identity is true, its dual identity is also true (for example, and ).
Involution law. Complementing a variable twice gives back the variable:
Proof by truth table:
| 0 | 1 | 0 |
| 1 | 0 | 1 |
In hardware, two NOT gates connected in series give the original signal. The same applies to longer expressions, so . This law is used when applying De Morgan's laws and when converting a circuit to NAND-only or NOR-only form.
Answer checked by Claude Sonnet · Oct 21, 2026
Test yourself · 2 MCQs
Loading…
- 2023 Fall · 8 marks
Simplify the following Boolean function with don't care condition.
Draw the logic circuit using NOR gates only.
Answer
K-map (rows , columns ; X = don't care)
| 00 | 01 | 11 | 10 | |
|---|---|---|---|---|
| 00 | 1 (0) | 1 (1) | 1 (3) | 0 (2) |
| 01 | 1 (4) | 1 (5) | 1 (7) | 1 (6) |
| 11 | X (12) | 0 (13) | X (15) | 0 (14) |
| 10 | X (8) | 0 (9) | 1 (11) | X (10) |
Simplified SOP. Groups of 1s (using don't cares where useful):
- gives
- gives
- (with ) gives
NOR-only realisation. NOR gates give a product-of-sums form, so group the 0s instead. The zeros are , and the don't cares help to enlarge the groups:
- gives
- gives
- gives
Complementing,
This is the NOR network below, since :
Check: , , , and the output NOR gives .
Circuit (NOR gates only)
- Three inverters made from NOR gates with inputs tied together: , , .
- Gate G1 = 2-input NOR of and .
- Gate G2 = 2-input NOR of and .
- Gate G3 = 3-input NOR of , and .
- Output gate = 3-input NOR of G1, G2, G3, which gives .
This uses 7 NOR gates in all.
Answer checked by Claude Sonnet · Oct 21, 2026
Test yourself · 2 MCQs
Loading…
- 2023 Fall · 8 marks
Implement a circuit full adder.
Answer
A full adder adds three 1-bit inputs: two operand bits , and a carry-in . It produces a sum bit and a carry-out .
Truth table
| 0 | 0 | 0 | 0 | 0 |
| 0 | 0 | 1 | 1 | 0 |
| 0 | 1 | 0 | 1 | 0 |
| 0 | 1 | 1 | 0 | 1 |
| 1 | 0 | 0 | 1 | 0 |
| 1 | 0 | 1 | 0 | 1 |
| 1 | 1 | 0 | 0 | 1 |
| 1 | 1 | 1 | 1 | 1 |
Boolean expressions. From the table, and .
K-map simplification of the carry (pairs , , ):
Implementation. The full adder is built from two half adders and an OR gate.
- Half adder 1 takes and . It gives and .
- Half adder 2 takes and . It gives and .
- An OR gate gives .
In total there are 2 XOR gates, 2 AND gates and 1 OR gate. Connecting full adders, with each carry-out feeding the next carry-in, gives an -bit parallel adder.
Answer checked by Claude Sonnet · Oct 21, 2026
Test yourself · 2 MCQs
Loading…
- 2023 Fall · 7 marks
Convert Excess-3 to BCD code and use K-map for circuit implementation.
Answer
Excess-3 code. Each decimal digit is coded as the 4-bit binary of . The valid codes are to . The codes never occur, so they are don't cares.
Let the Excess-3 input be and the BCD output be .
Truth table
| Digit | ||
|---|---|---|
| 0 | 0011 | 0000 |
| 1 | 0100 | 0001 |
| 2 | 0101 | 0010 |
| 3 | 0110 | 0011 |
| 4 | 0111 | 0100 |
| 5 | 1000 | 0101 |
| 6 | 1001 | 0110 |
| 7 | 1010 | 0111 |
| 8 | 1011 | 1000 |
| 9 | 1100 | 1001 |
K-map simplification (minterms are the decimal value of , with don't cares ):
- . Groups: gives , and gives . So .
- . Groups: gives ; gives ; gives . So .
- . Groups: gives ; gives . So .
- gives .
Check: for digit 0 () we get , , , , which is . For digit 9 () we get , , , , which is .
Final equations
Circuit. Use inverters for ; AND gates for , , , , ; OR gates to form and ; one XOR gate for ; and the inverter output directly for .
Answer checked by Claude Sonnet · Oct 21, 2026
Test yourself · 2 MCQs
Loading…
- 2023 Fall · 7 marks
Explain state diagram and state table. Explain it with example.
Answer
In a sequential circuit the output depends on the present inputs and also on the stored state. Its behaviour can be described in two equivalent ways.
State table. A state table lists, for every combination of present state and input, the next state and the output. It is built from the flip-flop input equations and the characteristic equation of the flip-flop.
State diagram. A state diagram is the graphical form of the state table.
- Each state is drawn as a circle labelled with the flip-flop values (for example ).
- Each transition is an arrow from the present state to the next state.
- The arrow is labelled with the input value that causes the transition. For a Mealy machine the label is input/output; for a Moore machine the output is written inside the circle.
Example. Consider a sequential circuit with one D flip-flop , one input and one output , where
Since , the state table is:
| Present state | Input | Next state | Output |
|---|---|---|---|
| 0 | 0 | 0 | 0 |
| 0 | 1 | 1 | 0 |
| 1 | 0 | 1 | 1 |
| 1 | 1 | 0 | 0 |
The state diagram has two circles, state 0 and state 1.
- Arrow labelled .
- Arrow labelled .
- Arrow labelled .
- Arrow labelled .
This circuit behaves as a toggle: it changes state whenever .
Use. From the state diagram and table, the designer derives the flip-flop input equations and output equations. This is the basis of sequential circuit analysis and design (counters, sequence detectors and so on).
Answer checked by Claude Sonnet · Oct 21, 2026
Test yourself · 2 MCQs
Loading…
- 2023 Fall · 8 marks
Explain PISO shift register.
Answer
A PISO (Parallel-In Serial-Out) shift register loads all bits at the same time through parallel inputs and then delivers them one bit per clock pulse at a single serial output.
Structure (4-bit). It uses four D flip-flops driven by a common clock. In front of each flip-flop, except the first, is a 2-to-1 selector made from AND-OR gates, controlled by a line.
- Parallel data inputs: .
- Serial output: of the last flip-flop.
- Control line: .
Operation
- Load mode (). The selector passes the parallel inputs to the D inputs. On the next clock edge , so all bits are loaded together.
- Shift mode (). The selector connects each D input to the output of the previous flip-flop. On every clock pulse the data moves one place towards the output, , and a 0 enters at the serial input end.
- The bit at the serial output appears one per clock pulse. For 4 bits, one load pulse and 3 shift pulses are needed to send the whole word out.
Example. Load .
| Clock | Serial out () | |
|---|---|---|
| Load | 1011 | 1 |
| 1 | 0101 | 1 |
| 2 | 0010 | 0 |
| 3 | 0001 | 1 |
The output sequence is (least significant bit first).
Applications. Converting parallel data from a computer into a serial stream for transmission (for example in UARTs and serial communication links), and serial output ports.
Answer checked by Claude Sonnet · Oct 21, 2026
Test yourself · 2 MCQs
Loading…
- 2023 Fall · 7 marks
Design a 3-bit synchronous down ripple counter.
Answer
A synchronous counter applies the same clock to every flip-flop, so all flip-flops change state together. A 3-bit down counter counts and then returns to (modulo-8).
State table and JK excitation. Flip-flops (JK type) are used, with the least significant bit.
| Present | Next | |||
|---|---|---|---|---|
| 111 | 110 | X0 | X0 | X1 |
| 110 | 101 | X0 | X1 | 1X |
| 101 | 100 | X0 | 0X | X1 |
| 100 | 011 | X1 | 1X | 1X |
| 011 | 010 | 0X | X0 | X1 |
| 010 | 001 | 0X | X1 | 1X |
| 001 | 000 | 0X | 0X | X1 |
| 000 | 111 | 1X | 1X | 1X |
K-map simplification gives:
This follows the rule for a down counter: a bit toggles only when all lower bits are 0.
Circuit
- Three JK flip-flops with a common clock.
- tied to logic 1.
- connected to .
- connected to the output of a 2-input AND gate whose inputs are and .
Check. From : toggles to 1, toggles to 1 (since ), toggles to 0 (since ), so the next state is as required.
Answer checked by Claude Sonnet · Oct 21, 2026
Test yourself · 2 MCQs
Loading…
- 2023 Fall · 8 marks
What is status register? Explain about RAM.
Answer
Status register. A status register (also called flag register or condition code register) is a special register that stores single-bit flags describing the result of the last ALU operation. The flags are used by conditional branch instructions to decide the program flow. The common flags are:
- C (carry): set to 1 when the operation produces a carry out of the most significant bit.
- S (sign): copy of the most significant bit of the result; 1 means negative.
- Z (zero): set to 1 when the result is zero.
- V (overflow): set to 1 when signed overflow occurs, that is, when the carry into and the carry out of the sign bit differ.
Each flag is held in a flip-flop. After every arithmetic or logic operation they are updated automatically.
RAM (Random Access Memory). RAM is the main working memory of a computer. Data can be read from or written to any location directly, and the access time is the same for every location. Its main features are:
- It is volatile: its contents are lost when the power is switched off.
- It holds the programs and data currently being executed.
- It has an address bus (to select a location), a data bus (to carry data), and control lines read/write and chip select.
- A memory of words needs address lines.
Types of RAM
- SRAM (static RAM): each bit is stored in a flip-flop (about six transistors). It is fast and needs no refreshing, but is costly and takes more space. It is used for cache memory.
- DRAM (dynamic RAM): each bit is stored as charge on a capacitor with one transistor. It is cheaper and denser, but the charge leaks, so it must be refreshed periodically. It is used for main memory.
Operation. To read, the CPU places the address on the address bus and asserts the read signal, and the data appear on the data bus. To write, the CPU puts both the address and the data on the buses and asserts the write signal.
Answer checked by Claude Sonnet · Oct 21, 2026
Test yourself · 2 MCQs
Loading…
- 2023 Fall · 5 marks
Write short notes on: Gray Code
Answer
Gray code is a non-weighted, unit-distance binary code in which two successive numbers differ in exactly one bit. It is also called the reflected binary code.
| Decimal | Binary | Gray |
|---|---|---|
| 0 | 000 | 000 |
| 1 | 001 | 001 |
| 2 | 010 | 011 |
| 3 | 011 | 010 |
| 4 | 100 | 110 |
| 5 | 101 | 111 |
| 6 | 110 | 101 |
| 7 | 111 | 100 |
Binary to Gray. The MSB is copied; each next Gray bit is the XOR of the corresponding binary bit and the binary bit to its left: . Example: .
Gray to binary. The MSB is copied; each next binary bit is the XOR of the previous binary bit and the current Gray bit: .
Uses. Because only one bit changes at a time, it avoids errors in shaft-position encoders and rotary sensors, and is used in K-map labelling and in analog-to-digital converters.
Answer checked by Claude Sonnet · Oct 21, 2026
Test yourself · 2 MCQs
Loading…
- 2023 Fall · 5 marks
Write short notes on: Postulates of boolean algebra
Answer
Boolean algebra is defined on a set with the operations OR (+), AND (·) and NOT ('). Huntington's postulates are the basic assumptions on which all theorems rest.
- Closure: the result of and is again in the set .
- Identity elements: and .
- Commutative law: and .
- Distributive law: and .
- Complement: for every there is such that and .
- Existence of at least two distinct elements ().
The postulates occur in dual pairs: interchanging OR with AND and 0 with 1 turns a true statement into another true statement (the principle of duality).
Useful theorems that follow: idempotent (, ), null (, ), involution (), absorption (), associative law and De Morgan's laws.
Answer checked by Claude Sonnet · Oct 21, 2026
Test yourself · 2 MCQs
Loading…
- 2023 Fall · 5 marks
Write short notes on: Maxterm vs Minterm
Answer
For variables there are standard terms.
Minterm. A minterm is a product (AND) term containing every variable exactly once, either complemented or uncomplemented. It equals 1 for exactly one input combination. A variable is written uncomplemented when its value is 1 and complemented when 0. For three variables, (101).
Maxterm. A maxterm is a sum (OR) term containing every variable exactly once. It equals 0 for exactly one input combination. A variable is written uncomplemented when its value is 0 and complemented when 1. For three variables, (101).
| Point | Minterm | Maxterm |
|---|---|---|
| Form | AND of literals | OR of literals |
| Value | 1 for one combination | 0 for one combination |
| Notation | ||
| Used in | Sum of products (SOP), | Product of sums (POS), |
| Literal rule | 1 gives , 0 gives | 0 gives , 1 gives |
They are complements of each other: .
A function can be written as the sum of the minterms where it is 1, or as the product of the maxterms where it is 0.
Answer checked by Claude Sonnet · Oct 21, 2026
Test yourself · 2 MCQs
Loading…
- 2021 Spring · 8 marks
Convert the following:
(i)
(ii)
(iii)
(iv)
Answer
(i) Gray. Copy the MSB and XOR each bit with the bit to its left. Treating the whole string :
(ii) decimal.
(iii) hex. Integer part, dividing by 16:
- (D)
Reading upward gives .
Fraction, multiplying by 16:
- gives C
- gives 7
- gives A
- gives E
(iv) octal. Group in threes from the binary point: gives .
Answer checked by Claude Sonnet · Oct 21, 2026
Test yourself · 2 MCQs
Loading…
- 2021 Spring · 7 marks
Subtract using 1's and 2's complement method.
(i)
(ii)
Answer
Let be the minuend and the subtrahend. Both are written with the same number of bits.
(i) (that is ). Write the subtrahend as .
1's complement method
- 1's complement of is .
- Add: .
- There is an end-around carry, so add it back: .
2's complement method
- 2's complement of is .
- Add: .
- The carry is discarded, so the result is .
Both give , which is correct.
(ii) (that is ).
1's complement method
- 1's complement of is .
- Add: .
- There is no end-around carry, so the result is negative. Take the 1's complement of the sum: .
- Result: .
2's complement method
- 2's complement of is .
- Add: .
- There is no carry, so the result is negative. Take the 2's complement of the sum: .
- Result: .
Both give , which is correct.
Answer checked by Claude Sonnet · Oct 21, 2026
Test yourself · 2 MCQs
Loading…
- 2021 Spring · 4+4 marks
State and prove De-Morgan's theorem with examples. "NAND gate is called universal gate." Justify this statement.
Answer
De Morgan's theorems
- The complement of a sum equals the product of the complements:
- The complement of a product equals the sum of the complements:
Proof by truth table
| 0 | 0 | 0 | 1 | 1 | 1 | 1 | 0 | 1 | 1 |
| 0 | 1 | 1 | 0 | 1 | 0 | 0 | 0 | 1 | 1 |
| 1 | 0 | 1 | 0 | 0 | 1 | 0 | 0 | 1 | 1 |
| 1 | 1 | 1 | 0 | 0 | 0 | 0 | 1 | 0 | 0 |
The columns and are identical, and the columns and are identical, so both theorems hold.
Example. .
NAND is a universal gate. A universal gate can implement every other gate, and so any Boolean function. NAND is .
- NOT: tie the inputs together: .
- AND: a NAND followed by a NOT (NAND with tied inputs): .
- OR: invert each input and then NAND them. By De Morgan, .
Since AND, OR and NOT are sufficient to build any logic function, and all three can be made from NAND gates only, NAND is a universal gate. (NOR is universal in the same way.)
Answer checked by Claude Sonnet · Oct 21, 2026
Test yourself · 2 MCQs
Loading…
- 2021 Spring · 7 marks
Simplify the given function using k-map and realize the expression using NAND gate only.
,
Answer
K-map (rows , columns ; X = don't care). Minterms , don't cares .
| 00 | 01 | 11 | 10 | |
|---|---|---|---|---|
| 00 | 1 (0) | X (1) | X (3) | 1 (2) |
| 01 | 1 (4) | 0 (5) | 1 (7) | 1 (6) |
| 11 | X (12) | X (13) | 1 (15) | 0 (14) |
| 10 | X (8) | 1 (9) | X (11) | 0 (10) |
Groups
- (columns 00 and 10 of rows 00 and 01) gives .
- gives .
- gives .
All the ones are covered: by ; by ; by .
NAND-only realisation. A two-level AND-OR network becomes a two-level NAND-NAND network, because by De Morgan
Circuit:
- Inverters (NAND gates with tied inputs) for and .
- Three 2-input NAND gates producing , and .
- A 3-input NAND gate that takes these three outputs and gives .
This needs 2 inverters, 3 two-input NAND gates and 1 three-input NAND gate.
Answer checked by Claude Sonnet · Oct 21, 2026
Test yourself · 2 MCQs
Loading…
- 2021 Spring · 7 marks
Design a full adder circuit with required logic diagram.
Answer
A full adder adds three bits , and the carry-in , and gives a sum and a carry-out .
Truth table
| 0 | 0 | 0 | 0 | 0 |
| 0 | 0 | 1 | 1 | 0 |
| 0 | 1 | 0 | 1 | 0 |
| 0 | 1 | 1 | 0 | 1 |
| 1 | 0 | 0 | 1 | 0 |
| 1 | 0 | 1 | 0 | 1 |
| 1 | 1 | 0 | 0 | 1 |
| 1 | 1 | 1 | 1 | 1 |
Simplification. From the K-maps:
Logic diagram.
- XOR gate 1: inputs , , output .
- XOR gate 2: inputs and , output .
- AND gate 1: inputs , , output .
- AND gate 2: inputs and , output .
- OR gate: inputs from the two AND gates, output .
This is two half adders (XOR plus AND each) joined by an OR gate. The circuit uses 2 XOR, 2 AND and 1 OR gate. Its delay is two XOR levels for the sum and about three gate levels for the carry.
Answer checked by Claude Sonnet · Oct 21, 2026
Test yourself · 2 MCQs
Loading…
- 2021 Spring · 8 marks
Design a combinational logic circuit that converts a decimal digit from BCD code to Excess-3 code.
Answer
Principle. Excess-3 code of a decimal digit is the BCD value plus 3 (). BCD inputs are ( is the MSB) and the Excess-3 outputs are . The input combinations to do not occur in BCD, so they are don't cares.
Truth table
| Digit | ||
|---|---|---|
| 0 | 0000 | 0011 |
| 1 | 0001 | 0100 |
| 2 | 0010 | 0101 |
| 3 | 0011 | 0110 |
| 4 | 0100 | 0111 |
| 5 | 0101 | 1000 |
| 6 | 0110 | 1001 |
| 7 | 0111 | 1010 |
| 8 | 1000 | 1011 |
| 9 | 1001 | 1100 |
K-map simplification (decimal value of as minterm, don't cares ):
- . Groups: gives ; gives ; gives .
- . Groups: gives ; gives ; gives .
- . Groups: gives ; gives .
- . The group of all even minterms gives .
Check. Digit 4 (): , , , , giving as required. Digit 9 (): , , , , giving as required.
Circuit. Inverters for ; AND gates for , , , , , , ; OR gates for , and ( is also the XNOR of and ); and taken directly from an inverter.
Answer checked by Claude Sonnet · Oct 21, 2026
Test yourself · 2 MCQs
Loading…
- 2021 Spring · 2+5 marks
Differentiate between flip-flop and latch. Explain the operation of J-K flip-flop with circuit diagram, characteristics table, characteristics equation.
Answer
Flip-flop vs latch
| Latch | Flip-flop |
|---|---|
| Level-sensitive: output can change as long as the enable/clock level is active | Edge-triggered: output changes only at a clock edge (rising or falling) |
| Has no clock, or uses an enable signal | Always has a clock input |
| Simple, uses fewer gates | More complex (often two latches, master and slave) |
| Output may change several times during one enable pulse | Output changes once per clock edge |
| Example: SR latch, D latch | Example: JK, D, T flip-flop |
J-K flip-flop. The JK flip-flop removes the invalid state of the SR flip-flop: acts like Set, like Reset, and makes the output toggle.
Circuit. It is an SR flip-flop with two extra AND gates (two 3-input NAND gates in the NAND version) at the inputs. The first gate receives , and and gives ; the second receives , and and gives . The outputs and are fed back to the input gates. In practice it is made edge-triggered (master-slave), so that it does not race when .
Characteristic table
| Operation | |||
|---|---|---|---|
| 0 | 0 | No change | |
| 0 | 1 | 0 | Reset |
| 1 | 0 | 1 | Set |
| 1 | 1 | Toggle |
Characteristic equation
From the K-map of in terms of , and :
Excitation table (needed for design):
| 0 to 0 | 0 | X |
| 0 to 1 | 1 | X |
| 1 to 0 | X | 1 |
| 1 to 1 | X | 0 |
Answer checked by Claude Sonnet · Oct 21, 2026
Test yourself · 2 MCQs
Loading…
- 2021 Spring · 7 marks
Describe in detail about the SIPO register with necessary diagrams also applications of register.
Answer
A SIPO (Serial-In Parallel-Out) shift register receives data one bit at a time at a serial input and makes all stored bits available together at parallel outputs.
Structure (4-bit). Four D flip-flops are connected in cascade with a common clock. The serial input goes to the D input of , and , , . The outputs are the parallel outputs.
Operation. On each clock pulse every bit moves one position to the right and a new serial bit enters at the left. After 4 clock pulses the 4-bit word is stored in the register and can be read in parallel.
Example: serial input (first bit first), register initially 0000.
| Clock | ||
|---|---|---|
| 0 | - | 0000 |
| 1 | 1 | 1000 |
| 2 | 0 | 0100 |
| 3 | 1 | 1010 |
| 4 | 1 | 1101 |
After four pulses the parallel output is , with the first bit received in the position.
Applications of shift registers
- Serial-to-parallel conversion, for example in serial communication receivers.
- Parallel-to-serial conversion (PISO) for transmission.
- Temporary data storage.
- Time delay of digital signals (delay lines).
- Multiplication and division by 2 (shift left or right).
- Building ring counters and Johnson counters, and sequence generators.
- Used in keyboards, LED displays and arithmetic units to hold operands.
Answer checked by Claude Sonnet · Oct 21, 2026
Test yourself · 2 MCQs
Loading…
- 2021 Spring · 7 marks
Design a 4 bits arithmetic circuit that performs eight different operations.
Answer
The basic idea is to use one 4-bit parallel (full-adder) adder and control its second input with selection lines , together with the carry input . With always, the output is .
Block
- Four full adders connected as a ripple-carry adder.
- Inputs: go straight to the inputs of the full adders.
- For each bit , a 4-to-1 multiplexer chooses from , , 0 and 1, selected by .
- goes to the first adder. The carry-out is .
Function table
| Output | Operation | ||||
|---|---|---|---|---|---|
| 0 | 0 | 0 | Add | ||
| 0 | 0 | 1 | Add with carry | ||
| 0 | 1 | 0 | Subtract with borrow | ||
| 0 | 1 | 1 | Subtract () | ||
| 1 | 0 | 0 | 0 | Transfer | |
| 1 | 0 | 1 | 0 | Increment | |
| 1 | 1 | 0 | all 1s | Decrement | |
| 1 | 1 | 1 | all 1s | Transfer |
In the last row, adding all 1s (that is in 2's complement) plus carry 1 gives .
Input logic. The multiplexer for each bit is equivalent to
Select 00 gives , 01 gives , 10 gives 0 and 11 gives 1.
Working. Subtraction uses 2's complement: . Incrementing and decrementing use with , and (that is ), respectively. All eight operations are obtained from the same adder just by changing the three control inputs .
Answer checked by Claude Sonnet · Oct 21, 2026
Test yourself · 2 MCQs
Loading…
- 2021 Spring · 8 marks
Explain processor organization and bus organization with required block diagram.
Answer
Processor organization. The processor (CPU) is built around a set of registers, an ALU, and a control unit. The internal organization decides how registers are connected to the ALU and how data move between them. There are three common forms:
- Single accumulator organization: one main register (accumulator) holds one operand and receives the result. Instructions are short, but the processor is slow because every operation uses the accumulator.
- General register organization: a set of registers connected to the ALU through multiplexers (buses). Any register can be an operand source or the destination.
- Stack organization: operands are taken from, and results pushed to, a stack in memory (LIFO).
General register organization (block diagram, in words).
- Registers and the input register.
- Two multiplexers (MUX A and MUX B) select the two ALU operands from the registers.
- The ALU performs the operation chosen by the operation-select code (OPR).
- The ALU output goes to the destination register chosen by a decoder, which enables the load input of only that register.
- A control word of fields SELA, SELB, SELD and OPR (for example 3+3+3+5 bits = 14 bits) defines one micro-operation.
Example: uses SELA = R2, SELB = R3, SELD = R1, OPR = ADD.
Bus organization. A bus is a common set of lines through which several registers exchange data. Instead of separate connections between every pair of registers, all registers are tied to a shared bus.
- Common bus system: each register output is connected to a multiplexer (or three-state buffer) feeding the bus. Select lines choose which register places its data on the bus. The destination register is enabled by its load (LD) control and takes the data at the clock pulse. Only one transfer can occur per clock pulse.
- Two-bus and three-bus organization: a two-bus processor lets both operands be read together; a three-bus processor has two input buses to the ALU and one output bus back to the registers, so an operation such as completes in a single clock cycle.
Advantages: fewer connections, simple control, scalable. Disadvantage of a single bus: only one transfer at a time, so it is slower.
Answer checked by Claude Sonnet · Oct 21, 2026
Test yourself · 2 MCQs
Loading…
- 2021 Spring · 5 marks
Write short notes on: Error detection and correction code
Answer
Errors can occur when binary data are stored or transmitted, because noise can flip a bit. Error codes add extra (redundant) bits so that errors can be detected, and in some codes corrected.
Parity bit (error detection). An extra bit is added so that the total number of 1s is even (even parity) or odd (odd parity).
- Example (even parity): data has four 1s, so the parity bit is and the word sent is (parity at the end). Data has five 1s, so the parity bit is .
- The receiver counts the 1s; a wrong parity means an error.
- A single parity bit detects any odd number of bit errors but cannot locate the error, and cannot detect two errors at once.
Hamming code (detection and correction). Parity bits are placed at positions that are powers of 2 () and each covers a set of bit positions. For data bits we need parity bits with . For a 4-bit data word, , so the total length is 7 bits (the (7,4) code).
At the receiver the parity checks are recomputed, giving a -bit syndrome. If it is , there is no error; otherwise its value is the position of the erroneous bit, which is then complemented. The code corrects any single-bit error. With an additional overall parity bit it also detects double-bit errors.
Other codes: checksums and cyclic redundancy check (CRC) are used for detecting errors in larger blocks of data.
Answer checked by Claude Sonnet · Oct 21, 2026
Test yourself · 2 MCQs
Loading…
- 2021 Spring · 5 marks
Write short notes on: K-Map for 3 logical variables
Answer
The Karnaugh map (K-map) is a graphical method for simplifying Boolean expressions. For 3 variables it has cells, normally drawn as 2 rows by 4 columns (or 4 by 2).
Layout. The row is (0 or 1) and the columns are in Gray code order: , so that adjacent cells differ in only one variable.
| 00 | 01 | 11 | 10 | |
|---|---|---|---|---|
| 0 | ||||
| 1 |
Procedure
- Place a 1 in each cell for which the function is 1 (from the truth table or minterm list).
- Group adjacent 1s in rectangles of size 1, 2, 4 or 8 (powers of 2). Groups may wrap around the edges (the first and last columns are adjacent) and may overlap.
- Use the largest groups possible and as few groups as possible.
- Each group gives a product term that contains only the variables that stay constant over the group. A group of 2 eliminates one variable, a group of 4 eliminates two variables, and a group of 8 gives 1.
- OR the terms to get the minimal sum of products (SOP).
Example. gives a group of four (all cells with ), so . Another: gives .
Don't-care cells (X) may be used in a group if this makes it bigger. Grouping the 0s gives the product-of-sums (POS) form.
Answer checked by Claude Sonnet · Oct 21, 2026
Test yourself · 2 MCQs
Loading…
- 2021 Spring · 5 marks
Write short notes on: Clock triggering
Answer
In a synchronous sequential circuit the flip-flops change state only when the clock signal tells them to. Triggering is the way the clock pulse causes the change.
Level triggering. The flip-flop responds as long as the clock is at a particular level (high or low). While the level is active the output can change several times if the input changes. This causes problems such as the race-around condition in a JK flip-flop. Latches are level-triggered.
Edge triggering. The flip-flop responds only at a transition of the clock:
- Positive (rising) edge triggering: the state changes at the transition.
- Negative (falling) edge triggering: the state changes at the transition. A bubble at the clock input of the symbol shows this.
The inputs are sampled just at the edge, and the output cannot change again until the next edge, so race-around is avoided.
Pulse triggering (master-slave). The input is accepted by the master during one level of the clock, and the output is passed on from the slave at the opposite level or at the edge.
Implementation of edge triggering: a short pulse is derived from the clock using an edge-detector circuit (a delay and an AND gate), or it is obtained by the master-slave arrangement.
Importance. Edge triggering makes the design of counters, registers and state machines reliable, since all flip-flops change together at a well-defined instant.
Answer checked by Claude Sonnet · Oct 21, 2026
Test yourself · 2 MCQs
Loading…
- 2021 Fall · 10 marks
Perform the conversion as indicated:
(i)
(ii)
(iii)
(iv) (gray code)
Answer
(i) octal. Divide repeatedly by 8:
Reading upward gives
Check: .
(ii) decimal.
Integer part: .
Fraction:
(iii) hex. Group in fours from the binary point, padding with zeros:
Integer: gives . Fraction: gives .
(iv) binary Gray.
, so the binary number is
Gray code: copy the MSB, then XOR each pair of adjacent bits:
Answer checked by Claude Sonnet · Oct 21, 2026
Test yourself · 2 MCQs
Loading…
- 2021 Fall · 5 marks
State and prove de-Morgan's law.
Answer
Statement of De Morgan's laws
- : the complement of a sum is the product of the complements.
- : the complement of a product is the sum of the complements.
They extend to any number of variables: and .
Proof (truth table)
| 0 | 0 | 1 | 1 | 1 | 1 |
| 0 | 1 | 0 | 0 | 1 | 1 |
| 1 | 0 | 0 | 0 | 1 | 1 |
| 1 | 1 | 0 | 0 | 0 | 0 |
The columns for and are identical, and so are those for and . Hence both laws are proved.
Algebraic proof of law 1. Two elements are complements of each other if their sum is 1 and their product is 0. Take and .
- (distributive law).
- .
Since the sum is 1 and the product is 0, is the complement of , so . Law 2 follows by duality.
Answer checked by Claude Sonnet · Oct 21, 2026
Test yourself · 2 MCQs
Loading…
- 2021 Fall · 5 marks
Define Logic gate. Prove that NAND and NOR are universal gates.
Answer
Logic gate. A logic gate is a basic digital circuit that has one or more inputs and one output and performs a Boolean operation on the inputs (AND, OR, NOT, NAND, NOR, XOR, XNOR). Its inputs and output take the values 0 and 1.
Universal gates. A gate is universal if AND, OR and NOT (and therefore any Boolean function) can be built using only that gate. NAND and NOR are universal gates.
NAND as a universal gate ()
- NOT: connect both inputs together, .
- AND: NAND followed by a NOT, .
- OR: NOT on each input and then NAND, (De Morgan).
NOR as a universal gate ()
- NOT: connect both inputs together, .
- OR: NOR followed by a NOT, .
- AND: NOT on each input and then NOR, (De Morgan).
Because NOT, AND and OR can all be realised from NAND alone, and also from NOR alone, both are universal gates. Any sum-of-products expression can therefore be implemented as a two-level NAND-NAND circuit, and any product-of-sums expression as a NOR-NOR circuit.
Answer checked by Claude Sonnet · Oct 21, 2026
Test yourself · 2 MCQs
Loading…
- 2021 Fall · 10 marks
Use k-map to simplify the given function and realize using basic gates only.
and
Answer
Given: with don't cares .
So the function is 0 at minterms ; it is a don't care at ; and it is 1 at .
K-map (rows , columns ):
| 00 | 01 | 11 | 10 | |
|---|---|---|---|---|
| 00 | X (0) | 0 (1) | 1 (3) | 1 (2) |
| 01 | 0 (4) | 1 (5) | 1 (7) | 0 (6) |
| 11 | 0 (12) | 1 (13) | X (15) | 0 (14) |
| 10 | 0 (8) | X (9) | 1 (11) | 0 (10) |
Grouping the 0s (for the product-of-sums form), using the don't cares:
- gives .
- gives .
- gives .
All the zeros are covered.
Complementing and applying De Morgan:
Check. Minterm 2 (): . Minterm 5 (): . Minterm 4 (): , , , so .
Realisation with basic gates
- Three OR gates: , and .
- One 3-input AND gate whose inputs are the three OR outputs, giving .
- Two NOT gates for and .
This is a total of 2 NOT, 3 OR and 1 AND gate.
Answer checked by Claude Sonnet · Oct 21, 2026
Test yourself · 2 MCQs
Loading…
- 2021 Fall · 8 marks
Design a combinational circuit that converts a four-bit Gray code to a four bit binary number. Implement the circuit with Exclusive OR gates.
Answer
Let the Gray inputs be and the binary outputs be .
Truth table
| 0000 | 0000 | 1100 | 1000 |
| 0001 | 0001 | 1101 | 1001 |
| 0011 | 0010 | 1111 | 1010 |
| 0010 | 0011 | 1110 | 1011 |
| 0110 | 0100 | 1010 | 1100 |
| 0111 | 0101 | 1011 | 1101 |
| 0101 | 0110 | 1001 | 1110 |
| 0100 | 0111 | 1000 | 1111 |
K-map simplification of each output gives (each map is a checkerboard of XOR patterns):
The result can be written in a chain: , , , .
Circuit (3 XOR gates)
- is connected directly to .
- XOR gate 1: inputs and gives .
- XOR gate 2: inputs and gives .
- XOR gate 3: inputs and gives .
Check. Gray : , , , , giving , which agrees with the table.
Answer checked by Claude Sonnet · Oct 21, 2026
Test yourself · 2 MCQs
Loading…
- 2021 Fall · 7 marks
Explain triggering of flip-flop in detail with example.
Answer
A flip-flop is a clocked circuit, so the way in which the clock makes it change state is called triggering. There are the following types.
1. Level triggering. The flip-flop is enabled for the whole time the clock is at a given level (high level or low level).
- The inputs are accepted for as long as the level is active, so the output can change more than once in one clock pulse if the inputs change.
- For a JK flip-flop with and a wide pulse, the output toggles repeatedly. This is the race-around condition.
- Example: gated SR latch, D latch.
2. Edge triggering. The flip-flop responds only at the instant of a clock transition.
- Positive edge triggered: the output changes on the transition.
- Negative edge triggered: the output changes on the transition; a small circle (bubble) is drawn at the clock input.
- The inputs are sampled only at the edge, so there is no race-around. Almost all counters and registers use edge-triggered flip-flops.
- Example: edge-triggered D flip-flop with . If and the rising edge arrives, becomes 1 and remains 1 even if changes to 0 later in the same pulse.
3. Master-slave (pulse) triggering. Two latches are connected in series. The master is enabled while the clock is high and the slave while it is low (through an inverter). The inputs are accepted by the master while the clock is high, and the output changes when the clock falls, so the output does not change while the inputs are being read. This also avoids race-around.
Comparison
| Type | Output changes | Problem |
|---|---|---|
| Level | During the whole active level | Race-around, noise sensitive |
| Edge | At the clock edge only | None |
| Master-slave | At the falling edge of the pulse | Slower, needs two stages |
Answer checked by Claude Sonnet · Oct 21, 2026
Test yourself · 2 MCQs
Loading…
- 2021 Fall · 7 marks
Describe about processor bus organization in digital system.
Answer
Bus. A bus is a set of common lines (a group of wires) used to transfer binary information between registers, memory and I/O units, so that separate connections between every pair of devices are not needed.
Processor bus organization. Inside the processor, the registers , the ALU and the accumulator are connected through one or more internal buses.
Single-bus organization
- All registers and the ALU share one common bus.
- The output of any register is placed on the bus through a multiplexer or three-state buffers, chosen by select lines.
- The destination register loads the bus value at the clock pulse, using its load (LD) control.
- Because the ALU needs two operands but only one can be on the bus at a time, an extra temporary register (Y) holds the first operand while the second is on the bus, and the result is held in a register Z before it is moved to the destination.
- Example: takes three steps: (, ), (, ADD, ), (, ).
Two-bus and three-bus organization
- Two buses: one operand can come on each bus, so the temporary register for an operand is not needed.
- Three buses: two input buses carry both operands to the ALU and the third carries the result back to the registers. An operation such as then completes in a single clock cycle, so this is the fastest, but it needs more hardware.
Control. The control unit supplies the select signals (SELA, SELB for the sources, SELD for the destination) and the ALU function code.
Bus system with multiplexers. For an -bit register bus of registers, multiplexers of inputs each are used, with select lines.
The memory and I/O are connected to the processor in the same way, through the external address, data and control buses.
Answer checked by Claude Sonnet · Oct 21, 2026
Test yourself · 2 MCQs
Loading…
- 2021 Fall · 5 marks
Write short notes on: Master-slave flipflop
Answer
A master-slave flip-flop is made from two flip-flops (latches) connected in series: a master and a slave. The slave receives the clock through an inverter, so the two are enabled at opposite clock levels. It is used to avoid the race-around condition of a level-triggered JK flip-flop.
Construction. Two gated SR (or JK) latches are connected so that the outputs of the master feed the inputs of the slave. The external inputs (, ) go to the master; the final outputs , are taken from the slave, and they are fed back to the master inputs.
Operation
- Clock = 1: the master is enabled and follows the inputs; the slave is disabled (clock inverted), so the output does not change.
- Clock falls to 0: the master is disabled and keeps the value it stored; the slave is enabled and copies the master's output, so takes the new value.
Thus the output changes only once per clock cycle, at the falling edge, and changes at the output do not reach the master within the same pulse. For the output toggles exactly once per pulse, so there is no race-around.
Characteristic table: same as the JK flip-flop: no change, reset, set, toggle.
Disadvantage: it needs twice as many gates as a single latch, and it is slower. It is also sensitive to input changes (ones catching) while the clock is high. These are overcome in edge-triggered flip-flops.
Answer checked by Claude Sonnet · Oct 21, 2026
Test yourself · 2 MCQs
Loading…
- 2021 Fall · 5 marks
Write short notes on: Excess-3 code
Answer
Excess-3 code is a non-weighted, self-complementing BCD code for decimal digits. Each digit is coded as the 4-bit binary of the digit plus 3.
| Digit | BCD | Excess-3 |
|---|---|---|
| 0 | 0000 | 0011 |
| 1 | 0001 | 0100 |
| 2 | 0010 | 0101 |
| 3 | 0011 | 0110 |
| 4 | 0100 | 0111 |
| 5 | 0101 | 1000 |
| 6 | 0110 | 1001 |
| 7 | 0111 | 1010 |
| 8 | 1000 | 1011 |
| 9 | 1001 | 1100 |
Properties
- It is non-weighted, so the position of a bit has no fixed weight.
- It is self-complementing: the 1's complement of the code of a digit is the code of its 9's complement. For example, digit 2 is , and its complement is the code of 7, which is . This makes subtraction by 9's complement simple.
- The codes are unused (invalid).
- There is no all-zero code, so a failure of a line (all zeros) can be detected.
Example. is in Excess-3. Excess-3 addition: add the codes, and if there is a carry add 3 to the group, else subtract 3.
Uses. In early decimal arithmetic circuits, because of the simple 9's complement and the easy carry generation.
Answer checked by Claude Sonnet · Oct 21, 2026
Test yourself · 2 MCQs
Loading…
- 2021 Fall · 5 marks
Write short notes on: Application of K-map
Answer
The Karnaugh map is a tool for simplifying Boolean expressions and for designing logic circuits. Its main applications are:
- Minimisation of Boolean functions: it gives the minimal sum-of-products (SOP) or product-of-sums (POS) form directly, with fewer gates and fewer inputs per gate, which reduces cost, size, power and delay.
- Design of combinational circuits: adders, subtractors, code converters (BCD to Excess-3, Gray to binary), decoders, multiplexers and comparators are simplified with K-maps (for 3, 4 and up to about 5 or 6 variables).
- Design of sequential circuits: the flip-flop input equations (, , , ) and the output equations obtained from state tables are simplified with K-maps, for counters and registers.
- Use of don't-care conditions: unused input combinations can be marked X and included in groups to get simpler expressions.
- Hazard detection: adjacent groups that are not overlapped show where static hazards may occur, and an extra term can be added to remove them.
- Conversion between forms: the SOP and POS forms, and NAND-only or NOR-only implementations, can be written from the same map.
- Verification: two expressions can be shown to be equivalent by plotting both on a K-map.
It is simpler and less error-prone than algebraic simplification, but it is practical only for a small number of variables; for more variables the Quine-McCluskey method is used.
Answer checked by Claude Sonnet · Oct 21, 2026
Test yourself · 2 MCQs
Loading…
Questions from PU BCA 2025 Spring Computer Fundamentals and Application (Pokhara University BCA semester exam, Spring 2025), PU BCA 2024 Fall Computer Fundamentals and Application (Pokhara University BCA semester exam, Fall 2024), PU BCA 2024 Spring Computer Fundamentals and Application (Pokhara University BCA semester exam, Spring 2024), PU BCA 2023 Fall Computer Fundamentals and Application (Pokhara University BCA semester exam, Fall 2023), PU BCA 2021 Fall Computer Fundamentals and Application (Pokhara University BCA semester exam, Fall 2021), PU BCA 2025 Spring Digital Logic System (Pokhara University BCA semester exam, Spring 2025), PU BCA 2024 Fall Digital Logic System (Pokhara University BCA semester exam, Fall 2024), PU BCA 2024 Spring Digital Logic System (Pokhara University BCA semester exam, Spring 2024), PU BCA 2023 Fall Digital Logic System (Pokhara University BCA semester exam, Fall 2023), PU BCA 2021 Spring Digital Logic System (Pokhara University BCA semester exam, Spring 2021), PU BCA 2021 Fall Digital Logic System (Pokhara University BCA semester exam, Fall 2021), PU BCA 2025 Spring English for IT Professionals (New) (Pokhara University BCA, Spring 2025, new syllabus), PU BCA 2024 Fall English for IT Professionals (New) (Pokhara University BCA, Fall 2024, new syllabus), PU BCA 2024 Spring English for IT Professionals (Pokhara University BCA, Spring 2024), PU BCA 2023 Fall English for IT Professionals (Pokhara University BCA, Fall 2023), PU BCA 2021 Spring English (Pokhara University BCA, Spring 2021), PU BCA 2021 Fall English (Pokhara University BCA, Fall 2021), PU BCA 2025 Spring Mathematics I (Pokhara University BCA semester exam, Spring 2025), PU BCA 2024 Fall Mathematics I (Pokhara University BCA semester exam, Fall 2024), PU BCA 2024 Spring Mathematics I (Pokhara University BCA semester exam, Spring 2024), PU BCA 2023 Fall Mathematics I (Pokhara University BCA semester exam, Fall 2023), PU BCA 2023 Spring Mathematics I (Pokhara University BCA semester exam, Spring 2023), PU BCA 2021 Fall Mathematics I (Pokhara University BCA semester exam, Fall 2021), PU BCA 2021 Spring Mathematics I (Pokhara University BCA semester exam, Spring 2021), PU BCA 2025 Spring (New) Programming Logic and Technique (Pokhara University BCA semester exam, Spring 2025, new syllabus), PU BCA 2025 Spring (Old) Programming Logic and Technique (Pokhara University BCA semester exam, Spring 2025, old syllabus), PU BCA 2023 Fall Programming Logic and Technique (Pokhara University BCA semester exam, Fall 2023) and PU BCA 2024 Spring Programming Logic and Technique (Pokhara University BCA semester exam, Spring 2024). Answers are written for this site; check them against your class notes.