BSc CSIT (TU) Science Digital Logic (BSc CSIT, CSC116) Question Paper 2075 Nepal
This is the official BSc CSIT (TU) (Science stream) Digital Logic (BSc CSIT, CSC116) question paper for 2075, 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 2075 paper is a great way to practise under real exam conditions.
Section A: Long Answer Questions
Attempt any TWO questions.
Explain different types of number systems. Convert (2AF.C)16 into decimal, binary and octal.
Types of Number Systems
A number system defines how numeric values are represented using a fixed set of symbols and a base (radix).
| System | Base | Digits used |
|---|---|---|
| Decimal | 10 | 0–9 |
| Binary | 2 | 0, 1 |
| Octal | 8 | 0–7 |
| Hexadecimal | 16 | 0–9, A–F |
- Decimal: the everyday system used by humans.
- Binary: used internally by digital systems since transistors have two stable states.
- Octal and Hexadecimal: compact shorthand for long binary strings (1 octal digit = 3 bits, 1 hex digit = 4 bits).
Conversion of
(a) Hexadecimal → Decimal
Multiply each digit by its positional weight (powers of 16):
(b) Hexadecimal → Binary
Replace each hex digit by its 4-bit binary equivalent:
- , , ,
(c) Hexadecimal → Octal
Easiest via the binary result. Group the binary into 3-bit sets from the binary point:
Integer part 1010101111 → 001 010 101 111 = 1257
Fraction part 11 → 110 = 6
Final Results
Simplify the following Boolean function using the K-map method and implement using NAND gates: F(A,B,C,D) = Sum(0,1,2,4,5,6,8,9,12,13,14).
Simplifying
Step 1 — Plot the K-map
A 4-variable K-map (rows = AB, columns = CD in Gray order 00,01,11,10):
| AB\CD | 00 | 01 | 11 | 10 |
|---|---|---|---|---|
| 00 | 1 (0) | 1 (1) | 0 (3) | 1 (2) |
| 01 | 1 (4) | 1 (5) | 0 (7) | 1 (6) |
| 11 | 1 (12) | 1 (13) | 0 (15) | 1 (14) |
| 10 | 1 (8) | 1 (9) | 0 (11) | 0 (10) |
Step 2 — Group the 1s (largest possible groups)
- Group 1 (column CD=00, all four rows = 8 cells with CD=01 too): cells where . Minterms 0,1,4,5,8,9,12,13 form an octet → .
- Group 2 (quad): minterms 0,2,4,6 () extends with 12,14 → 4,6,12,14 and 0,2... The quad 0,4,12,8 (CD=00, i.e. )... use a clean quad: minterms 2,6,14 and 4,... Choose quad {4,6,12,14} = .
- Group 3 (quad): minterms {0,2,8,...}: cells → {0,2,4,6} = .
Step 3 — Minimal cover
The simplest valid cover is:
Check: covers 0,1,4,5,8,9,12,13. Remaining 1s are 2,6,14 (all have ). covers 2,6; covers 6,14. Together with overlap they cover 2,6,14. All eleven minterms covered, no extra terms.
Step 4 — NAND implementation
Apply DeMorgan's theorem to the SOP. Each product term becomes a NAND, and the final OR becomes a NAND of the term-NANDs (two-level NAND–NAND):
Circuit (two-level NAND–NAND):
- NAND-1 input: (acts as inverter giving ).
- NAND-2 inputs: → output .
- NAND-3 inputs: → output .
- Final NAND combines the three outputs to give .
Inverters () are themselves built from single-input NAND gates, so the whole function is realised using NAND gates only.
Design a synchronous mod-8 up counter using JK flip-flops. Draw the circuit and timing diagram.
Synchronous Mod-8 Up Counter using JK Flip-Flops
A mod-8 counter has states (000 → 111), so three JK flip-flops (FF0=LSB, FF1, FF2=MSB) are needed. In a synchronous counter all flip-flops receive the same clock simultaneously.
Step 1 — Excitation logic
A JK flip-flop toggles when and holds when . Each bit toggles when all lower-order bits are 1:
| FF | Toggle condition | J = K |
|---|---|---|
| FF0 (Q0) | always toggles | |
| FF1 (Q1) | when Q0 = 1 | |
| FF2 (Q2) | when Q0·Q1 = 1 |
Step 2 — Circuit description
- All three flip-flops wired in toggle mode, with a common clock line.
- tied to logic 1.
- connected to .
- connected to the output of an AND gate fed by and .
- Outputs give the count.
Step 3 — Count sequence
Step 4 — Timing diagram (described)
All flip-flops change on the same active clock edge.
- Q0 toggles on every clock pulse — highest frequency, .
- Q1 toggles once for every two Q0 toggles — .
- Q2 toggles once for every four Q0 toggles — .
CLK : _|‾|_|‾|_|‾|_|‾|_|‾|_|‾|_|‾|_|‾|_
Q0 : __|‾‾|__|‾‾|__|‾‾|__|‾‾|__ (÷2)
Q1 : ____|‾‾‾‾|____|‾‾‾‾|____ (÷4)
Q2 : ________|‾‾‾‾‾‾‾‾|________ (÷8)
This confirms the counter advances 0→7 and rolls over to 0, i.e. a mod-8 synchronous up counter.
Section B: Short Answer Questions
Attempt any EIGHT questions.
Explain 1's complement and 2's complement representations.
1's and 2's Complement Representations
1's Complement
The 1's complement of a binary number is obtained by inverting every bit (0→1, 1→0).
Example: 1's complement of is .
In signed 1's complement representation the MSB is the sign bit (0 = positive, 1 = negative). A drawback is that it has two representations of zero ( = +0 and = −0).
2's Complement
The 2's complement is obtained by taking the 1's complement and adding 1 to the LSB:
Example: 2's complement of = .
Advantages of 2's complement:
- Unique representation of zero.
- Subtraction is performed by addition, so the same adder hardware works for both.
- It is the standard representation of signed integers in computers.
Comparison
| Feature | 1's complement | 2's complement |
|---|---|---|
| Method | Invert all bits | Invert all bits + 1 |
| Zero | Two (+0, −0) | One |
| End-around carry | Required in addition | Not required |
| Common use | Rare | Standard in CPUs |
State the postulates of Boolean algebra.
Postulates of Boolean Algebra (Huntington Postulates)
Boolean algebra is defined over the set with operations OR (), AND () and NOT ():
- Closure — For any , both and belong to .
- Identity elements — (0 is identity for OR); (1 is identity for AND).
- Commutative law — and .
- Distributive law — and .
- Complement (inverse) — For every there exists such that and .
From these, basic identities follow: , , , , and De Morgan's theorems , .
Explain the working of a 1-to-4 demultiplexer.
1-to-4 Demultiplexer (DEMUX)
A demultiplexer is a combinational circuit that takes a single data input and routes it to one of several outputs, selected by control (select) lines. It performs the reverse function of a multiplexer.
A 1-to-4 DEMUX has:
- 1 data input
- 2 select lines ( outputs)
- 4 outputs
Working
The select lines decide which output the input is connected to; all other outputs stay at 0.
| Active output | ||
|---|---|---|
| 0 | 0 | |
| 0 | 1 | |
| 1 | 0 | |
| 1 | 1 |
Boolean expressions
Circuit: four 3-input AND gates; each AND gate receives the data and the proper combination of select lines (true/complemented). A DEMUX is widely used for data distribution and as a decoder (when ).
What is an encoder? Explain a priority encoder.
Encoder and Priority Encoder
Encoder
An encoder is a combinational circuit that converts an active input line (one of ) into an -bit binary code. It is the reverse of a decoder. For example, an 8-to-3 encoder has 8 inputs and 3 output lines.
A limitation of an ordinary encoder is that if two or more inputs are active at the same time, the output is invalid/ambiguous.
Priority Encoder
A priority encoder solves this problem by assigning a priority to each input. If multiple inputs are active simultaneously, it outputs the binary code of the highest-priority (usually highest-numbered) active input and ignores the others.
Example — 4-to-2 priority encoder (input has highest priority):
| V | ||||||
|---|---|---|---|---|---|---|
| 0 | 0 | 0 | 0 | x | x | 0 |
| 0 | 0 | 0 | 1 | 0 | 0 | 1 |
| 0 | 0 | 1 | x | 0 | 1 | 1 |
| 0 | 1 | x | x | 1 | 0 | 1 |
| 1 | x | x | x | 1 | 1 | 1 |
Here = don't care and V is a valid output bit (1 when at least one input is high). Output equations:
Differentiate between SOP and POS forms.
SOP vs POS
SOP (Sum of Products): a Boolean expression written as the OR (sum) of AND (product) terms. Each product term (minterm) corresponds to a row where the output is 1.
- Example:
POS (Product of Sums): a Boolean expression written as the AND (product) of OR (sum) terms. Each sum term (maxterm) corresponds to a row where the output is 0.
- Example:
Differences
| Feature | SOP | POS |
|---|---|---|
| Form | Sum of products | Product of sums |
| Built from | Minterms (output = 1) | Maxterms (output = 0) |
| Operators | AND terms ORed | OR terms ANDed |
| Notation | ||
| Literal in minterm | variable as is if 1 | variable as is if 0 |
Both represent the same function; one is the dual/complement-derived form of the other and either can be obtained from the truth table.
Explain the working of a JK flip-flop and the race-around condition.
JK Flip-Flop and Race-Around Condition
Working of a JK Flip-Flop
The JK flip-flop is a refinement of the SR flip-flop that removes the forbidden () state. It has inputs J and K, a clock, and outputs and . Characteristic behaviour on the active clock edge:
| J | K | Operation | |
|---|---|---|---|
| 0 | 0 | No change (hold) | |
| 0 | 1 | 0 | Reset |
| 1 | 0 | 1 | Set |
| 1 | 1 | Toggle |
Characteristic equation: .
The key advantage: the previously invalid state now produces a useful toggle action.
Race-Around Condition
In a level-triggered JK flip-flop, when and the clock pulse width is larger than the propagation delay of the flip-flop, the output keeps toggling repeatedly () for as long as the clock stays high. This uncontrolled multiple toggling within one clock pulse is the race-around condition, and the final output state becomes uncertain.
Remedies
- Make the clock pulse width smaller than the propagation delay (impractical).
- Use edge-triggering, or a Master–Slave JK flip-flop, where the master accepts data while the clock is high and the slave updates the output only on the falling edge — so the output changes only once per clock pulse, eliminating the race-around condition.
What is a magnitude comparator? Explain a 1-bit comparator.
Magnitude Comparator and 1-Bit Comparator
Magnitude Comparator
A magnitude comparator is a combinational circuit that compares two binary numbers and and produces three outputs indicating whether , , or .
1-Bit Comparator
For two single-bit inputs and , the truth table is:
| A | B | |||
|---|---|---|---|---|
| 0 | 0 | 0 | 1 | 0 |
| 0 | 1 | 0 | 0 | 1 |
| 1 | 0 | 1 | 0 | 0 |
| 1 | 1 | 0 | 1 | 0 |
Output equations
Circuit: the output is an XNOR gate, the output is an AND gate with inverted, and the output is an AND gate with inverted. These outputs are mutually exclusive (exactly one is 1 at a time).
Explain the difference between latch and flip-flop.
Latch vs Flip-Flop
Both are 1-bit memory (bistable) elements, but they differ in how/when they respond to inputs.
- A latch is level-triggered — its output follows the input as long as the enable/control signal is at its active level (it is transparent during that level).
- A flip-flop is edge-triggered — its output changes only at the rising or falling edge of the clock, regardless of how long the clock stays high.
Comparison
| Feature | Latch | Flip-Flop |
|---|---|---|
| Triggering | Level (enable level) | Clock edge |
| Clock | Usually no clock / enable | Clock required |
| Transparency | Transparent when enabled | Never transparent |
| Speed/power | Faster, less hardware | Slower, more hardware |
| Use | Temporary storage, transparent buffers | Registers, counters, synchronous systems |
In short, a flip-flop can be built from latches (e.g. master–slave or two latches in series); edge-triggering makes flip-flops better suited to synchronous sequential circuits.
Write short notes on tri-state logic.
Tri-State Logic
Tri-state (three-state) logic is a type of digital output that can take three states instead of the usual two:
- Logic 0 (low)
- Logic 1 (high)
- High-impedance (Hi-Z) — the output is effectively disconnected from the bus, presenting very high impedance and neither driving high nor low.
Control
A tri-state buffer has a data input, an output, and an enable (E) control line:
- When E = 1 (active): output = input (normal buffer, logic 0 or 1).
- When E = 0 (disabled): output = high-impedance (Hi-Z).
| Enable | Input | Output |
|---|---|---|
| 0 | x | Hi-Z |
| 1 | 0 | 0 |
| 1 | 1 | 1 |
Applications
- Bus systems: many devices share a common data bus; only one is enabled at a time while others are in Hi-Z, preventing conflicts.
- Used in microprocessors, memory chips, and bidirectional I/O ports.
- Allows wired bus sharing without additional multiplexing logic.
Frequently asked questions
- Where can I find the BSc CSIT (TU) Digital Logic (BSc CSIT, CSC116) question paper 2075?
- The full BSc CSIT (TU) Digital Logic (BSc CSIT, CSC116) 2075 (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) 2075 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) 2075 paper?
- The BSc CSIT (TU) Digital Logic (BSc CSIT, CSC116) 2075 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.