BSc CSIT (TU) Science Digital Logic (BSc CSIT, CSC116) Question Paper 2078 Nepal
This is the official BSc CSIT (TU) (Science stream) Digital Logic (BSc CSIT, CSC116) question paper for 2078, as set in the regular annual examination. It carries 60 full marks and a time allowance of 180 minutes, across 12 questions. On Kekkei you can attempt this Digital Logic (BSc CSIT, CSC116) past paper online with a timer, get instant AI feedback and step-by-step solutions, and track the topics where you lose marks — completely free. Whether you are revising for your BSc CSIT (TU) Digital Logic (BSc CSIT, CSC116) exam or solving previous years' question papers, this 2078 paper is a great way to practise under real exam conditions.
Section A: Long Answer Questions
Attempt any TWO questions.
Explain the signed magnitude, 1's complement and 2's complement number representations with examples. Perform (-25) + (15) using 8-bit 2's complement.
Signed Number Representations
In an -bit signed representation the MSB is the sign bit ( = positive, = negative).
1. Signed Magnitude
The MSB stores the sign; the remaining bits store the magnitude in plain binary.
- (8-bit)
Drawbacks: two representations of zero ( and ) and complicated arithmetic.
2. One's Complement
A negative number is formed by inverting (complementing) every bit of its positive magnitude.
- (invert all bits)
Still has two zeros ( and ) and needs end-around carry in addition.
3. Two's Complement
A negative number = 1's complement + 1. Range for bits: to .
- : invert , add
Single representation of zero; ordinary binary addition works directly, so it is used in modern computers.
Compute in 8-bit 2's complement
Step 1 — Represent each operand
Step 2 — Add
1 1 1 0 0 1 1 1 (-25)
+ 0 0 0 0 1 1 1 1 (+15)
-----------------
1 1 1 1 0 1 1 0
Step 3 — Interpret result. MSB , so the result is negative. Take 2's complement to read magnitude: invert , add .
No overflow occurs (the carry out of the sign bit is discarded; signs of operands differ so overflow is impossible).
Simplify F(A,B,C,D) = Sum(1,3,7,11,15) + d(0,2,5) using a K-map and implement using NOR gates.
Simplify
Step 1 — K-map (1 = minterm, X = don't-care)
Rows = , Columns = (Gray order ):
| AB \ CD | 00 | 01 | 11 | 10 |
|---|---|---|---|---|
| 00 | X(0) | 1(1) | 1(3) | X(2) |
| 01 | 0(4) | X(5) | 1(7) | 0(6) |
| 11 | 0(12) | 0(13) | 1(15) | 0(14) |
| 10 | 0(8) | 0(9) | 1(11) | 0(10) |
Step 2 — Group the 1's (using don't-cares helpfully)
- Group 1 (column CD=11, all four cells m3,7,15,11 = 1): a quad where → term .
- Group 2 (cells m1, m3, plus don't-cares m0, m2 in row AB=00): a quad covering row → term .
Minterm 5 (don't-care) and others are left as 0; not needed.
Step 3 — Simplified SOP
Step 4 — Implement using NOR gates only
NOR is functionally complete. Convert the SOP to NOR form. By De Morgan:
Express each AND term as a NOR. Since and :
- directly (one NOR gate with inputs ).
- , where are obtained from single-input NOR (inverter) gates.
NOR-gate network (described):
- NOR gate : inputs → output .
- Inverters (NOR used as NOT) produce and .
- NOR gate : inputs → output .
- Final OR-into-NOR stage: the OR of two terms in NOR logic is . Invert and , then NOR them: .
This realizes entirely with NOR gates (a two-level OR–AND/NOR–NOR structure).
Explain the working of a 4-bit universal shift register with a neat block diagram.
4-bit Universal Shift Register
A universal shift register can perform all basic register operations: parallel load, shift-left, shift-right, and hold (no change). A 4-bit version is built from four flip-flops (FF–FF) and four 4-to-1 multiplexers, one in front of each flip-flop's D input.
Mode-control inputs
Two select lines choose the operation for every multiplexer simultaneously:
| Operation | MUX selects | ||
|---|---|---|---|
| 0 | 0 | Hold (no change) | FF's own output |
| 0 | 1 | Shift right | / serial-in-right |
| 1 | 0 | Shift left | / serial-in-left |
| 1 | 1 | Parallel load | external input |
Block diagram (described)
S1 S0 (common select to all MUX)
SI_right -> [MUX0]->D Q0 -+--> [MUX1]->D Q1 -+--> [MUX2]->D Q2 -+--> [MUX3]->D Q3 -> SI_left
Parallel I0 | I1 | I2 | I3 |
inputs ----+-------+---------+------+---------+------+---------+------+
CLK common to all flip-flops; outputs Q0 Q1 Q2 Q3
Each 4-to-1 MUX inputs (for FF): (00) hold, (01) right-neighbour for shift-right, (10) left-neighbour for shift-left, (11) parallel data . The MUX output drives the D flip-flop.
Working
On every active clock edge, each flip-flop loads whatever its MUX has selected:
- 00 Hold: , contents preserved.
- 01 Shift right: (data moves toward LSB); serial-right input enters at side / MSB end.
- 10 Shift left: (data moves toward MSB); serial-left input enters at end.
- 11 Parallel load: , all four bits loaded in one clock.
Because one register supports serial-in/serial-out, parallel-in/parallel-out, and bidirectional shifting, it is called universal (e.g. the 74194 IC).
Section B: Short Answer Questions
Attempt any EIGHT questions.
Convert (101101.101)2 into decimal and octal.
Convert
To Decimal — multiply each bit by its positional weight
Integer part:
Fraction part:
To Octal — group bits in 3s from the binary point
Integer part:
Fraction part: (already a group of 3)
Check: ✓
State and prove the consensus theorem.
Consensus Theorem
Statement (SOP form):
The redundant term (the consensus of and , formed from the variables left after removing the complementary pair ) can be eliminated.
Dual (POS form): .
Proof
The consensus term is therefore logically redundant and is dropped to simplify expressions and remove static hazards.
Explain the working of a 2-to-4 line decoder.
2-to-4 Line Decoder
A decoder converts an -bit binary code into one of active output lines. A 2-to-4 decoder has 2 inputs (), an optional enable , and 4 outputs (–); for each input combination exactly one output is asserted (active-HIGH here).
Truth table (active-HIGH, enabled)
| E | ||||||
|---|---|---|---|---|---|---|
| 0 | x | x | 0 | 0 | 0 | 0 |
| 1 | 0 | 0 | 0 | 0 | 0 | 1 |
| 1 | 0 | 1 | 0 | 0 | 1 | 0 |
| 1 | 1 | 0 | 0 | 1 | 0 | 0 |
| 1 | 1 | 1 | 1 | 0 | 0 | 0 |
Output equations
Working
Each output is the AND of the appropriate input literals (with the enable). Only the minterm that matches the input code is 1, so the decoder "selects" one of four lines. When all outputs are 0 (disabled). Implementation needs four 3-input AND gates plus two inverters that generate . Decoders are used for memory address selection, demultiplexing, and to implement any Boolean function as a sum of minterms.
Implement a 4-to-1 multiplexer using logic gates.
4-to-1 Multiplexer using Logic Gates
A MUX routes one of several data inputs to a single output, chosen by select lines. A 4-to-1 MUX has 4 data inputs (), 2 select lines (), and 1 output .
Function table
| 0 | 0 | |
| 0 | 1 | |
| 1 | 0 | |
| 1 | 1 |
Boolean expression
Gate-level implementation
- Two inverters produce and .
- Four 3-input AND gates, one per data input:
- AND:
- AND:
- AND:
- AND:
- One 4-input OR gate combines the four AND outputs to give .
S1 ->|>o- S1' I0 -+
S0 ->|>o- S0' [AND0]-+
I1 --[AND1]--+
I2 --[AND2]--+--[OR]--> Y
I3 --[AND3]--+
For any select code, only the matching AND gate passes its data input (others output 0), so equals the selected input.
Differentiate between Moore and Mealy machines.
Moore vs Mealy Machines
Both are finite-state machine models for synchronous sequential circuits; they differ in how the output is generated.
| Feature | Moore machine | Mealy machine |
|---|---|---|
| Output depends on | Present state only | Present state and current inputs |
| Output equation | ||
| Output timing | Synchronous; changes only on clock edge (after state change) | Can change asynchronously as soon as input changes |
| Number of states | Generally more states needed | Generally fewer states |
| Reaction speed | Slower (one clock delay) | Faster (immediate response) |
| Output stability | More stable, glitch-free | May glitch with input changes |
| State diagram | Output written inside the state circle | Output written on the transition (input/output) |
Summary: A Moore machine's output is a function of state alone, giving stable, delayed outputs; a Mealy machine's output also depends on the input, giving faster response with fewer states but possible glitches. Any Moore machine can be converted to an equivalent Mealy machine and vice versa.
Explain the operation of a T flip-flop with its excitation table.
T (Toggle) Flip-Flop
The T flip-flop has a single input and a clock. It is obtained from a JK flip-flop by tying .
Operation / characteristic table
| Action | |||
|---|---|---|---|
| 0 | 0 | 0 | No change (hold) |
| 0 | 1 | 1 | No change (hold) |
| 1 | 0 | 1 | Toggle |
| 1 | 1 | 0 | Toggle |
- : output holds its previous value, .
- : output toggles (complements) on each active clock edge, .
Characteristic equation:
Because it divides the clock frequency by 2 when , the T flip-flop is the basic building block of ripple/asynchronous counters.
Excitation table
(Given a required transition, what is needed?)
| 0 | 0 | 0 |
| 0 | 1 | 1 |
| 1 | 0 | 1 |
| 1 | 1 | 0 |
So : whenever the output must change, when it must stay the same.
What is a BCD adder? Explain its working.
BCD Adder
A BCD (Binary-Coded Decimal) adder adds two BCD digits (each a 4-bit code for decimal 0–9) and produces a valid BCD sum digit plus a decimal carry. It is needed because ordinary 4-bit binary addition can yield results that are not valid BCD (the codes 1010–1111) or produce a binary carry, both of which must be corrected.
Why correction is needed
Valid BCD digits are – (0–9). If the binary sum of two BCD digits exceeds , or generates a carry-out, the result is invalid in BCD.
Correction rule
Add to the 4-bit sum when:
- the sum (i.e. sum is 1010–1111), or
- a carry-out is generated from the first adder.
The correction-needed signal is:
( detects 12–15, detects 10–11.)
Working / structure
- A first 4-bit binary adder adds the two BCD digits , giving sum and carry .
- The detection logic computes above.
- A second 4-bit adder adds to the first sum when (adds otherwise).
- The output of the second adder is the corrected BCD sum digit; becomes the decimal carry to the next-higher BCD digit.
Example: . Binary (), so add : → carry 1, digit , i.e. in BCD (). ✓
Design a mod-5 counter using JK flip-flops.
Design of a Mod-5 Counter using JK Flip-Flops
A mod-5 counter counts , i.e. 5 states. It needs flip-flops (). States 101,110,111 are unused (don't-cares).
Step 1 — State / transition table with JK excitation
JK excitation: ; ; ; .
| next | ||||
|---|---|---|---|---|
| 000 | 001 | 0× | 0× | 1× |
| 001 | 010 | 0× | 1× | ×1 |
| 010 | 011 | 0× | ×0 | 1× |
| 011 | 100 | 1× | ×1 | ×1 |
| 100 | 000 | ×1 | 0× | 0× |
Step 2 — Simplify (K-maps, using 101,110,111 as don't-cares)
Step 3 — Implementation
- FF0: ,
- FF1: (FF1 acts as a T flip-flop toggling on )
- FF2: (one AND gate),
All flip-flops share the common clock. When the count reaches , the equations force the next state to , giving a clean modulo-5 cycle. (Alternatively, a 3-bit binary counter with a NAND gate decoding state to asynchronously clear all flip-flops also gives mod-5.)
Write short notes on race-around condition.
Race-Around Condition
The race-around condition is a problem in a level-triggered JK (or SR) flip-flop when both inputs (the toggle case) and the clock pulse stays HIGH for longer than the propagation delay of the gates.
Cause
With , the output should toggle once. But while the clock is HIGH the feedback path is enabled, so the output keeps toggling continuously () every gate-delay as long as the clock remains HIGH. If the clock pulse width , the flip-flop changes state multiple times and the final output is unpredictable (depends on exactly when the clock goes LOW). This rapid oscillation is the race-around condition.
Remedies
- Narrow clock pulse: make so only one toggle occurs — hard to guarantee in practice.
- Master-Slave JK flip-flop: two latches in series (master enabled when clock HIGH, slave when clock LOW). The output updates only once per clock cycle, eliminating the race.
- Edge-triggered flip-flop: the device responds only at the rising/falling clock edge, so the output can change at most once per clock pulse.
Thus race-around is eliminated by master-slave or edge-triggered designs.
Frequently asked questions
- Where can I find the BSc CSIT (TU) Digital Logic (BSc CSIT, CSC116) question paper 2078?
- The full BSc CSIT (TU) Digital Logic (BSc CSIT, CSC116) 2078 (regular) question paper is available free on Kekkei. You can read every question online and attempt the paper under timed exam conditions.
- Does the Digital Logic (BSc CSIT, CSC116) 2078 paper come with solutions?
- Yes. Every question on this Digital Logic (BSc CSIT, CSC116) past paper includes a step-by-step solution, plus instant AI feedback when you attempt it on Kekkei.
- How many marks is the BSc CSIT (TU) Digital Logic (BSc CSIT, CSC116) 2078 paper?
- The BSc CSIT (TU) Digital Logic (BSc CSIT, CSC116) 2078 paper carries 60 full marks and is meant to be completed in 180 minutes, across 12 questions.
- Is practising this Digital Logic (BSc CSIT, CSC116) past paper free?
- Yes — reading and attempting this Digital Logic (BSc CSIT, CSC116) past paper on Kekkei is completely free.