BSc CSIT (TU) Science Digital Logic (BSc CSIT, CSC116) Question Paper 2079 Nepal
This is the official BSc CSIT (TU) (Science stream) Digital Logic (BSc CSIT, CSC116) question paper for 2079, 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 2079 paper is a great way to practise under real exam conditions.
Section A: Long Answer Questions
Attempt any TWO questions.
Perform the following conversions: (i) (375)8 to binary, (ii) (1AF)16 to decimal, (iii) (101101)2 to Gray code, (iv) decimal 89 to BCD.
(i) to binary
Replace each octal digit by its 3-bit binary equivalent:
| Octal | 3 | 7 | 5 |
|---|---|---|---|
| Binary | 011 | 111 | 101 |
(ii) to decimal
Use positional weights of base 16 (with ):
(iii) to Gray code
Keep the MSB; each next Gray bit = XOR of adjacent binary bits ():
| Binary | 1 | 0 | 1 | 1 | 0 | 1 |
|---|---|---|---|---|---|---|
| Gray | 1 | 1 | 1 | 0 | 1 | 1 |
(iv) Decimal 89 to BCD
Encode each decimal digit in 4-bit BCD:
| Digit | 8 | 9 |
|---|---|---|
| BCD | 1000 | 1001 |
Reduce the following function using a K-map and draw the logic diagram: F(A,B,C,D) = Sum(0,1,2,3,5,7,8,9,11,14).
Step 1: Plot the K-map
. Using rows and columns in Gray order ():
| AB\CD | 00 | 01 | 11 | 10 |
|---|---|---|---|---|
| 00 | 1 (m0) | 1 (m1) | 1 (m3) | 1 (m2) |
| 01 | 0 (m4) | 1 (m5) | 1 (m7) | 0 (m6) |
| 11 | 0 (m12) | 0 (m13) | 0 (m15) | 1 (m14) |
| 10 | 1 (m8) | 1 (m9) | 1 (m11) | 0 (m10) |
Step 2: Group the 1s (largest possible groups)
- Quad (top row, m0,m1,m3,m2)
- **Quad + ... ** group m1,m3,m5,m7 (where ) — cells m1,m3,m7,m5 all have
- Quad : m1,m3,m9,m11
- **Quad ? ** Use m0,m2,m8,m10? m10 is 0, so instead pair m8,m9 with m0,m1: m0,m1,m8,m9 share
- Single covering m14: m14 () — pair with m6? (0). Pair with m10?(0). Pair with m12?(0). It is isolated, so cover as the pair m14,m6? not available — take it with the only adjacent 1. Adjacent cells m6,m10,m12,m15 are all 0, so m14 is an essential single term .
Minimal cover:
(Note: from group 4 is already covered by and , so it is redundant.)
Verification: this SOP reproduces exactly the listed minterms.
Step 3: Simplified expression
Step 4: Logic diagram (described)
- AND gate 1: inputs (A through inverter) and
- AND gate 2: inputs and
- AND gate 3: inputs and
- AND gate 4 (4-input): inputs
- OR gate (4-input): combines the four AND outputs to give .
- Inverters generate from .
What is a sequential circuit? Explain the design procedure of a clocked synchronous sequential circuit with an example.
Sequential circuit
A sequential circuit is a digital circuit whose output depends not only on the present inputs but also on the past history of inputs, i.e. on the present internal state stored in memory elements (flip-flops). It is built from a combinational logic block plus memory (flip-flops), with feedback from the state outputs back into the logic. A clocked synchronous sequential circuit changes state only at active clock edges.
Design procedure of a clocked synchronous sequential circuit
- State diagram / word description — derive the required behaviour as a state diagram.
- State table — list present state, input, next state and output.
- State assignment — assign binary codes to states; reduce states first if possible.
- Choose flip-flop type (D, JK, T) and determine the number of flip-flops ( flip-flops for up to states).
- Excitation table — using the flip-flop excitation table, find the required flip-flop inputs for each state transition.
- K-map simplification — derive minimal Boolean expressions for each flip-flop input and for the outputs.
- Draw the logic diagram — combinational logic + flip-flops + clock.
Example: 2-bit synchronous up counter (using JK flip-flops)
States: . Let state = .
Excitation (T-style with JK): For an up counter toggles every clock, toggles when .
Logic diagram (described): Two JK flip-flops share a common clock. FF0 has (toggles each clock). FF1 has . Output counts repeatedly.
This illustrates every design step: behaviour → state table → flip-flop choice → excitation → simplified inputs → circuit.
Section B: Short Answer Questions
Attempt any EIGHT questions.
Explain the excess-3 code and its application.
Excess-3 (XS-3) code
Excess-3 is a non-weighted, self-complementing BCD code in which each decimal digit is represented by its 4-bit binary value plus 3 (i.e. 0011).
Examples: decimal , , .
Self-complementing property: the 1's complement of an XS-3 code equals the XS-3 code of the 9's complement of that digit (e.g. , complement ).
Applications
- BCD arithmetic / subtraction: the self-complementing property makes 9's-complement subtraction easy, simplifying decimal adders/subtractors.
- Error detection in older digital systems, since the codes and ... are unused/forbidden, helping detect invalid states.
- Used in some arithmetic units and calculators for simplified decimal addition.
Simplify F = (A + B)(A + C) using Boolean theorems.
Simplify
Using the distributive law with :
Step-by-step proof (expanding):
Explain the working of a half subtractor with a truth table.
Half subtractor
A half subtractor is a combinational circuit that subtracts two single-bit binary numbers (minuend) and (subtrahend), producing a Difference (D) and a Borrow (Bo). It does not consider a borrow from a previous stage.
Truth table
| A | B | Difference (D) | Borrow (Bo) |
|---|---|---|---|
| 0 | 0 | 0 | 0 |
| 0 | 1 | 1 | 1 |
| 1 | 0 | 1 | 0 |
| 1 | 1 | 0 | 0 |
Boolean expressions
Working / logic
- The Difference output is the XOR of the two inputs.
- The Borrow is generated only when and (subtracting a larger bit from a smaller one), giving .
Circuit: one XOR gate produces ; one AND gate with input inverted (i.e. ) and produces .
Realize the EX-OR gate using NAND gates only.
EX-OR using NAND gates only
The XOR function is . It can be realized with four 2-input NAND gates.
Construction (4 NAND gates)
- NAND 1: inputs
- NAND 2: inputs
- NAND 3: inputs
- NAND 4: inputs
Proof that
(by De Morgan's theorem, ).
Verification: outputs only when — exactly the XOR truth table.
Diagram (described): and feed NAND 1; its output feeds back as the second input of NAND 2 (with ) and NAND 3 (with ); outputs feed NAND 4 whose output is .
Explain the working of a 8-to-1 multiplexer.
8-to-1 Multiplexer
A multiplexer (MUX) is a combinational circuit that selects one of several input lines and routes it to a single output line, controlled by select lines. An 8-to-1 MUX has:
- 8 data inputs: to
- 3 select lines: (since )
- 1 output:
- (often an Enable input)
Working
The 3-bit binary value on selects exactly one data input to appear at . For example, (decimal 5) connects to .
Boolean expression
Selection table
| 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 |
Structure: eight 4-input AND gates (each gated by a data input and the decoded select combination) feeding one 8-input OR gate. Used for data routing, parallel-to-serial conversion and implementing Boolean functions.
Differentiate between a register and a counter.
Register vs Counter
| Feature | Register | Counter |
|---|---|---|
| Function | Stores / holds binary data (a group of bits) | Counts the number of clock pulses, stepping through a fixed sequence of states |
| Output sequence | Holds whatever value is loaded; no inherent sequence | Follows a defined sequence (e.g. ) |
| Combinational logic | Little/none between flip-flops (mainly data path) | Has feedback/combinational logic that determines the next count |
| Flip-flops used | Mainly D flip-flops | Mainly T or JK flip-flops |
| Purpose | Temporary data storage, shifting of data | Frequency division, event/pulse counting, timing |
| Example | Shift register, storage (buffer) register | Ripple counter, ring counter, BCD counter |
Summary: A register is a set of flip-flops used to store -bit data, whereas a counter is a special register that automatically cycles through a predetermined sequence of states on successive clock pulses.
Explain the conversion of a JK flip-flop into a D flip-flop.
Conversion of JK flip-flop into D flip-flop
We convert a JK flip-flop so that it behaves like a D flip-flop, where .
Step 1: Conversion table
| D (input) | ||||
|---|---|---|---|---|
| 0 | 0 | 0 | 0 | X |
| 0 | 1 | 0 | X | 1 |
| 1 | 0 | 1 | 1 | X |
| 1 | 1 | 1 | X | 0 |
(Required next state ; obtained from the JK excitation table.)
Step 2: Derive and (K-map / inspection)
From the table:
Step 3: Circuit
Connect the external input directly to , and connect through an inverter (NOT gate) to :
Verification:
Thus the JK flip-flop with functions exactly as a D flip-flop.
What is a ring counter? Explain its operation.
Ring counter
A ring counter is a circular shift register in which the output of the last flip-flop is fed back to the input of the first flip-flop, so that a single bit (or pattern) circulates around the ring. With flip-flops it has distinct states (a mod- counter) using a one-hot pattern.
Operation (4-bit example)
Four D flip-flops () are connected in series with fed back to the input of . It is preset to a single 1, e.g. . On each clock pulse the 1 shifts one position:
| Clock | ||||
|---|---|---|---|---|
| 0 | 1 | 0 | 0 | 0 |
| 1 | 0 | 1 | 0 | 0 |
| 2 | 0 | 0 | 1 | 0 |
| 3 | 0 | 0 | 0 | 1 |
| 4 | 1 | 0 | 0 | 0 |
Key points
- Number of states = number of flip-flops (), so it is less efficient than a binary counter but needs no decoding logic (each state already a one-hot output).
- Applications: sequencing, generating timing/control signals, and as a clock-pulse distributor.
Write short notes on hazards in combinational circuits.
Hazards in combinational circuits
A hazard is an unwanted, momentary (transient) change in the output of a combinational circuit caused by unequal propagation delays along different signal paths, even though the steady-state output should remain unchanged. Hazards produce glitches that can cause malfunction in circuits driven by these outputs (especially asynchronous logic).
Types of hazards
- Static hazard — the output should stay constant but momentarily changes.
- Static-1 hazard: output should remain but briefly drops to (occurs in SOP / AND-OR circuits).
- Static-0 hazard: output should remain but briefly rises to (occurs in POS / OR-AND circuits).
- Dynamic hazard — the output should change once ( or ) but instead changes multiple times (e.g. ) before settling. It occurs in multi-level circuits with several paths.
Cause
When a single input changes and it can reach the output through two paths with different delays, the two terms (e.g. adjacent minterm groups in a K-map) momentarily both go inactive.
Elimination
Add redundant (consensus) terms so that adjacent groups in the K-map overlap. Including the consensus term keeps the output covered during the transition, removing the glitch. Other techniques: balancing path delays, using a synchronizing clock (latch the output).
Frequently asked questions
- Where can I find the BSc CSIT (TU) Digital Logic (BSc CSIT, CSC116) question paper 2079?
- The full BSc CSIT (TU) Digital Logic (BSc CSIT, CSC116) 2079 (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) 2079 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) 2079 paper?
- The BSc CSIT (TU) Digital Logic (BSc CSIT, CSC116) 2079 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.