BSc CSIT (TU) Science Digital Logic (BSc CSIT, CSC116) Question Paper 2077 Nepal
This is the official BSc CSIT (TU) (Science stream) Digital Logic (BSc CSIT, CSC116) question paper for 2077, 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 2077 paper is a great way to practise under real exam conditions.
Section A: Long Answer Questions
Attempt any TWO questions.
Explain weighted and non-weighted codes. Convert decimal 197 into binary, octal, hexadecimal and BCD.
Weighted vs Non-weighted Codes
Weighted codes: Each bit position carries a fixed weight, and the decimal value of a code word is the sum of the weights of the positions holding a 1.
- Examples: pure binary (weights ), BCD/8421, 2421, 5421.
- e.g. BCD .
Non-weighted codes: No fixed positional weight is assigned, so the value cannot be obtained by a weighted sum. They are used for special properties such as single-bit change or error detection.
- Examples: Gray code (only one bit changes between successive values), Excess-3 (XS-3), ASCII.
Convert decimal 197
(a) Binary — repeated division by 2:
(b) Octal — group binary in 3s from the right:
Check:
(c) Hexadecimal — group binary in 4s:
Check:
(d) BCD — each decimal digit (1, 9, 7) coded in 4-bit 8421:
Summary
| Base | Result |
|---|---|
| Binary | |
| Octal | |
| Hexadecimal | |
| BCD |
Minimize the Boolean expression using the Quine-McCluskey method: F(A,B,C,D) = Sum(0,2,3,5,7,8,10,11,14,15).
Quine–McCluskey Minimization
Step 1 — Group minterms by number of 1s
| Group | Minterm | |
|---|---|---|
| 0 | 0 | 0000 |
| 1 | 2, 8 | 0010, 1000 |
| 2 | 3, 5, 10 | 0011, 0101, 1010 |
| 3 | 7, 11, 14 | 0111, 1011, 1110 |
| 4 | 15 | 1111 |
Step 2 — Combine terms differing in one bit ( = dropped bit)
Size-2 (pairs):
- ✓ ✓
- ✓ ✓ ✓
- ✓ ✓ ✓ ✓ ✓
- ✓ ✓ ✓
Size-4 (quads):
- stays a pair (cannot combine further)
Step 3 — Prime Implicants (terms not absorbed)
| PI | Cells covered | Expression |
|---|---|---|
| 0,2,8,10 → | ||
| 2,3,10,11 → | ||
| 3,7,11,15 → | ||
| 10,11,14,15 → | ||
| 5,7 → |
Step 4 — Prime Implicant Chart / Essential PIs
- 0 covered only by → essential.
- 5 covered only by → essential.
- 8 covered only by (confirms ).
- Remaining uncovered: 2,3,7,11,14,15. covers 10,11,14,15; covers 3,7,11,15. Together with covering 2,3 we cover all.
A minimal cover: , where picks up minterm 2, and cover 7,14,15 (3,11 shared).
Final Minimized Expression
This is a valid minimal SOP covering all ten minterms. (Equivalent minimal forms exist, e.g. replacing by retaining only essential PIs plus the cheapest cover.)
What is a counter? Differentiate synchronous and asynchronous counters. Design a 3-bit ripple counter.
Counter
A counter is a sequential circuit, made of flip-flops, that goes through a predetermined sequence of states (counts) in response to clock pulses. An -flip-flop counter has up to states (a mod-N counter cycles through states).
Synchronous vs Asynchronous Counters
| Feature | Asynchronous (Ripple) | Synchronous |
|---|---|---|
| Clocking | Only first FF gets the external clock; each FF clocks the next | All FFs share the same common clock |
| State change | Bits change one after another (ripple) | All bits change simultaneously |
| Propagation delay | Cumulative, adds up across stages | Only one FF delay |
| Speed | Slower | Faster |
| Design | Simpler, fewer gates | More gates / combinational logic |
| Glitches | Possible decoding spikes | Minimal |
Design of a 3-bit Ripple (Asynchronous) Counter
Use three JK flip-flops wired in toggle mode (), negative-edge triggered.
+---+ +---+ +---+
CLK ---->|>FF0| Q0-->|>FF1| Q1-->|>FF2|
J=K=1 +---+ +---+ +---+
Q0 Q1 Q2 (outputs, Q0 = LSB)
- FF0 is clocked by the external CLK.
- FF1 is clocked by output .
- FF2 is clocked by output .
- Each FF has , so it toggles on every active clock edge it receives.
Count Sequence (mod-8: 0 → 7 → 0)
| Pulse | Decimal | |||
|---|---|---|---|---|
| 0 | 0 | 0 | 0 | 0 |
| 1 | 0 | 0 | 1 | 1 |
| 2 | 0 | 1 | 0 | 2 |
| 3 | 0 | 1 | 1 | 3 |
| 4 | 1 | 0 | 0 | 4 |
| 5 | 1 | 0 | 1 | 5 |
| 6 | 1 | 1 | 0 | 6 |
| 7 | 1 | 1 | 1 | 7 |
| 8 | 0 | 0 | 0 | (rolls over) |
toggles every pulse, toggles when falls , and toggles when falls — giving an up-count to .
Section B: Short Answer Questions
Attempt any EIGHT questions.
Convert the Boolean expression AB + A'C into standard SOP form.
Standard (Canonical) SOP form of
The variables are . A canonical SOP expands every term to contain all three variables, by AND-ing each deficient term with for the missing variable.
Term (missing ):
Term (missing ):
Combine:
In minterm form (with order ): .
Explain the working of a full subtractor with a truth table.
Full Subtractor
A full subtractor subtracts three input bits — the minuend , the subtrahend , and a borrow-in from the previous stage — producing a Difference and a Borrow-out .
Truth Table
| 0 | 0 | 0 | 0 | 0 |
| 0 | 0 | 1 | 1 | 1 |
| 0 | 1 | 0 | 1 | 1 |
| 0 | 1 | 1 | 0 | 1 |
| 1 | 0 | 0 | 1 | 0 |
| 1 | 0 | 1 | 0 | 0 |
| 1 | 1 | 0 | 0 | 0 |
| 1 | 1 | 1 | 1 | 1 |
Boolean Expressions
Working
The difference is 1 when an odd number of inputs are 1 (hence the 3-input XOR). A borrow is generated whenever the bits being subtracted from exceed — i.e. when and or is 1, or when both and are 1. It can be built from two half subtractors plus an OR gate, analogous to a full adder.
Implement a full adder using two half adders.
Full Adder using Two Half Adders
A half adder adds two bits giving and . A full adder adds , , and carry-in .
Construction
HALF ADDER 1 HALF ADDER 2
A ---+----[ XOR ]---- S1 ----+----[ XOR ]---- SUM
B ---+----[ AND ]-- C1 Cin-+----[ AND ]-- C2
| |
+------[ OR ]------+---- COUT
- HA-1 adds and : , .
- HA-2 adds and : , .
- An OR gate combines the two carries: .
Resulting Expressions
These match the standard full-adder truth table, confirming that two half adders and one OR gate implement a full adder.
Explain the operation of a 4-to-1 multiplexer.
4-to-1 Multiplexer
A multiplexer (MUX) is a combinational circuit that selects one of several data inputs and routes it to a single output, controlled by select lines. A 4-to-1 MUX has 4 data inputs , 2 select lines , and 1 output .
Function Table
| Output | ||
|---|---|---|
| 0 | 0 | |
| 0 | 1 | |
| 1 | 0 | |
| 1 | 1 |
Boolean Expression
Operation
The two select bits form a binary address (0–3) that enables exactly one of four AND gates; the selected AND gate passes its data input through, and the outputs of all four AND gates are OR-ed to form . Thus the MUX acts as a digitally controlled switch and is widely used for data routing, parallel-to-serial conversion, and implementing logic functions.
Differentiate between PROM, PAL and PLA.
PROM vs PAL vs PLA
All three are Programmable Logic Devices (PLDs) consisting of an AND array and an OR array; they differ in which arrays are fixed and which are programmable.
| Feature | PROM | PAL | PLA |
|---|---|---|---|
| Full name | Programmable Read-Only Memory | Programmable Array Logic | Programmable Logic Array |
| AND array | Fixed (full decoder) | Programmable | Programmable |
| OR array | Programmable | Fixed | Programmable |
| Flexibility | Low (all minterms generated) | Medium | High (most flexible) |
| Cost / speed | Cheap, but uses all AND terms | Faster, fewer terms | More complex, slower |
| Product-term sharing | No | Limited | Yes (terms shared across outputs) |
| Typical use | Look-up tables, code conversion | General combinational logic | Complex multi-output logic |
Summary: PROM = fixed AND + programmable OR; PAL = programmable AND + fixed OR; PLA = programmable AND + programmable OR (most flexible but costliest).
Explain the working of a master-slave JK flip-flop.
Master–Slave JK Flip-Flop
The master–slave JK flip-flop is built from two clocked JK (or SR) latches in cascade — a master and a slave — to eliminate the race-around problem of a basic JK flip-flop when .
Structure
- The master latch is enabled when the clock is HIGH (CLK = 1).
- The slave latch is driven by the inverted clock, so it is enabled when the clock is LOW (CLK = 0).
Working
- CLK = 1: the master responds to the inputs and updates its output, but the slave is disabled and holds the previous value (output unchanged).
- CLK = 0: the master is now locked (cannot change), and the slave copies the master's stored value to the final output .
Because input is read on one clock level and output changes on the other, the output effectively updates on the clock edge and changes only once per clock pulse, preventing the race-around oscillation.
Characteristic Table
| Action | |||
|---|---|---|---|
| 0 | 0 | No change | |
| 0 | 1 | 0 | Reset |
| 1 | 0 | 1 | Set |
| 1 | 1 | Toggle |
Characteristic equation: .
What is a parity bit? Explain even and odd parity generators.
Parity Bit
A parity bit is an extra bit appended to a data word so that the total number of 1s becomes even or odd, used for single-bit error detection during data transmission/storage.
- Even parity: the parity bit is chosen so the total number of 1s (data + parity) is even.
- Odd parity: the parity bit is chosen so the total number of 1s is odd.
Parity Generator
For an -bit data word :
- Even parity generator: (XOR of all data bits — equals 1 when the data has an odd count of 1s, making the overall count even).
- Odd parity generator: (the complement, i.e. an XNOR of all bits).
Example (3-bit data 101)
Data has two 1s (even count).
- Even parity bit → transmitted word (two 1s, even).
- Odd parity bit → transmitted word (three 1s, odd).
At the receiver a parity checker (XOR/XNOR of all received bits) flags an error if the parity is violated. A single parity bit detects all odd-numbered bit errors but cannot detect even-numbered errors or correct them.
Explain the SISO and SIPO shift registers.
Shift Registers: SISO and SIPO
A shift register is a cascade of flip-flops sharing a common clock, in which data is shifted one position per clock pulse. They are classified by how data enters and leaves.
SISO — Serial-In Serial-Out
- Data is entered one bit at a time at the input of the first flip-flop and is read out one bit at a time from the last flip-flop.
- After each clock pulse the bits shift one stage toward the output.
- For an -bit SISO register it takes clock pulses to load and more to read out the data.
- Use: time delay, serial data transfer.
Din -->[FF0]-->[FF1]-->[FF2]-->[FF3]--> Dout (one bit out per clock)
all flip-flops share CLK
SIPO — Serial-In Parallel-Out
- Data is entered serially (one bit per clock) but all stored bits are available simultaneously at the parallel outputs .
- After clock pulses the bits are presented in parallel.
- Use: serial-to-parallel conversion (e.g. receiving serial data and reading it as a parallel word).
Din -->[FF0]-->[FF1]-->[FF2]-->[FF3]
| | | |
Q0 Q1 Q2 Q3 (all outputs read at once)
Key difference: both load data serially, but SISO outputs serially (single line) while SIPO outputs all bits in parallel.
Write short notes on the characteristic table of a D flip-flop.
D Flip-Flop — Characteristic Table
The D (Data / Delay) flip-flop has a single data input and a clock. On the active clock edge the output simply takes the value of ; otherwise it holds. It has no invalid state, unlike SR.
Characteristic Table
| 0 | 0 | 0 |
| 0 | 1 | 0 |
| 1 | 0 | 1 |
| 1 | 1 | 1 |
This reduces to the simpler form:
| 0 | 0 (Reset) |
| 1 | 1 (Set) |
Characteristic Equation
The next state equals the input , independent of the present state — hence the output is a one-clock delayed copy of the input. The D flip-flop is widely used in registers, data latches, and as the basic storage element in synchronous systems.
Frequently asked questions
- Where can I find the BSc CSIT (TU) Digital Logic (BSc CSIT, CSC116) question paper 2077?
- The full BSc CSIT (TU) Digital Logic (BSc CSIT, CSC116) 2077 (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) 2077 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) 2077 paper?
- The BSc CSIT (TU) Digital Logic (BSc CSIT, CSC116) 2077 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.