BSc CSIT (TU) Science Digital Logic (BSc CSIT, CSC116) Question Paper 2074 Nepal
This is the official BSc CSIT (TU) (Science stream) Digital Logic (BSc CSIT, CSC116) question paper for 2074, 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 2074 paper is a great way to practise under real exam conditions.
Section A: Long Answer Questions
Attempt any TWO questions.
Convert the decimal number 725.625 into binary, octal and hexadecimal. Also explain the BCD and Gray code with examples.
Conversion of 725.625
Split the number into integer part 725 and fractional part 0.625.
(a) Decimal to Binary
Integer part (repeated division by 2):
| Division | Quotient | Remainder |
|---|---|---|
| 725 / 2 | 362 | 1 |
| 362 / 2 | 181 | 0 |
| 181 / 2 | 90 | 1 |
| 90 / 2 | 45 | 0 |
| 45 / 2 | 22 | 1 |
| 22 / 2 | 11 | 0 |
| 11 / 2 | 5 | 1 |
| 5 / 2 | 2 | 1 |
| 2 / 2 | 1 | 0 |
| 1 / 2 | 0 | 1 |
Reading remainders bottom-to-top: .
Fractional part (repeated multiplication by 2):
So .
(b) Decimal to Octal
Group the binary in 3 bits from the binary point:
001 011 010 101 . 101 =
(Check: ; .)
(c) Decimal to Hexadecimal
Group the binary in 4 bits from the binary point:
0010 1101 0101 . 1010 =
(Check: ; .)
BCD Code
Binary Coded Decimal (BCD) represents each decimal digit by its 4-bit binary equivalent (8421 weighted code). Only the codes 0000–1001 are valid; 1010–1111 are unused.
Example: in BCD = 0111 0010 0101 (7 = 0111, 2 = 0010, 5 = 0101). Note this differs from pure binary.
Gray Code
Gray code is a non-weighted (reflected binary) code in which only one bit changes between two successive values, which minimizes errors in transmission and in mechanical encoders.
Conversion: (MSB unchanged).
Example (binary → Gray):
| Decimal | Binary | Gray |
|---|---|---|
| 0 | 000 | 000 |
| 1 | 001 | 001 |
| 2 | 010 | 011 |
| 3 | 011 | 010 |
| 4 | 100 | 110 |
For 0101 (binary): Gray = .
State and prove De Morgan's theorems. Simplify the Boolean expression F = A'B + AB' + AB using a K-map and draw its logic circuit.
De Morgan's Theorems
Theorem 1: The complement of a sum equals the product of complements.
Theorem 2: The complement of a product equals the sum of complements.
Proof by Truth Table (Theorem 1)
| A | B | A+B | ||||
|---|---|---|---|---|---|---|
| 0 | 0 | 0 | 1 | 1 | 1 | 1 |
| 0 | 1 | 1 | 0 | 1 | 0 | 0 |
| 1 | 0 | 1 | 0 | 0 | 1 | 0 |
| 1 | 1 | 1 | 0 | 0 | 0 | 0 |
Columns and are identical, proving Theorem 1.
Proof by Truth Table (Theorem 2)
| A | B | A·B | ||||
|---|---|---|---|---|---|---|
| 0 | 0 | 0 | 1 | 1 | 1 | 1 |
| 0 | 1 | 0 | 1 | 1 | 0 | 1 |
| 1 | 0 | 0 | 1 | 0 | 1 | 1 |
| 1 | 1 | 1 | 0 | 0 | 0 | 0 |
Columns and match, proving Theorem 2.
Simplification of F = A'B + AB' + AB using K-map
The three minterms are: , , .
2-variable K-map:
| A \ B | B=0 | B=1 |
|---|---|---|
| A=0 | 0 | 1 |
| A=1 | 1 | 1 |
Grouping the cells:
- The bottom row (A=1) pair gives A.
- The right column (B=1) pair gives B.
(This is the OR function; only the input combination A=0, B=0 gives output 0.)
Logic Circuit
The simplified function is realized by a single 2-input OR gate with inputs A and B and output F. (Diagram: inputs A and B feed an OR gate whose output is F.)
What is a flip-flop? Explain the working of SR, JK, D and T flip-flops with their truth tables and characteristic equations.
Flip-Flop
A flip-flop is a bistable sequential logic element (1-bit memory cell) that stores a single binary digit. It has two stable states (0 and 1) and changes state in response to control inputs, usually synchronized by a clock pulse. It is the basic building block of registers and counters.
(a) SR Flip-Flop
Inputs S (Set) and R (Reset). The condition S=R=1 is forbidden (invalid/indeterminate).
| S | R | Q(t+1) | Action |
|---|---|---|---|
| 0 | 0 | Q(t) | No change |
| 0 | 1 | 0 | Reset |
| 1 | 0 | 1 | Set |
| 1 | 1 | ? | Invalid |
Characteristic equation: , with constraint .
(b) JK Flip-Flop
Refines the SR flip-flop: the forbidden state J=K=1 is defined as toggle.
| J | K | Q(t+1) | Action |
|---|---|---|---|
| 0 | 0 | Q(t) | No change |
| 0 | 1 | 0 | Reset |
| 1 | 0 | 1 | Set |
| 1 | 1 | Toggle |
Characteristic equation: .
(c) D Flip-Flop
Single data input D; output simply follows the input at the clock edge. Used for data storage and delay.
| D | Q(t+1) |
|---|---|
| 0 | 0 |
| 1 | 1 |
Characteristic equation: .
(d) T Flip-Flop
Single input T (Toggle); obtained by tying J=K together in a JK flip-flop.
| T | Q(t+1) | Action |
|---|---|---|
| 0 | Q(t) | No change |
| 1 | Toggle |
Characteristic equation: .
T flip-flops are widely used in counters.
Section B: Short Answer Questions
Attempt any EIGHT questions.
Perform binary addition and subtraction of 1101 and 1011 using 2's complement.
Let and (using a 5-bit signed representation to hold the carry/sign).
Binary Addition
1101
+ 1011
-------
11000
Step by step: (write 0, carry 1); (0, carry 1); (0, carry 1); (1, carry 1).
(which equals ). ✓
Binary Subtraction using 2's Complement (A − B = 13 − 11 = 2)
Use 5 bits: , .
Step 1 — 2's complement of B:
- 1's complement of =
- Add 1:
Step 2 — Add A and the 2's complement of B:
01101
+ 10101
--------
100010
Step 3 — Discard the end carry (the leftmost 1): result = .
A positive result (carry out = 1, discarded) means the answer is positive:
✓ (since ).
Explain the working of a half adder and a full adder with truth tables.
Half Adder
A half adder adds two single-bit binary numbers A and B, producing a Sum (S) and a Carry (C). It cannot accept a carry-in from a previous stage.
Equations: , .
| A | B | Sum | Carry |
|---|---|---|---|
| 0 | 0 | 0 | 0 |
| 0 | 1 | 1 | 0 |
| 1 | 0 | 1 | 0 |
| 1 | 1 | 0 | 1 |
Circuit: one XOR gate (Sum) and one AND gate (Carry).
Full Adder
A full adder adds three bits: A, B and a carry-in , producing Sum (S) and Carry-out (). It can be cascaded to add multi-bit numbers.
Equations: , .
| A | B | Sum | ||
|---|---|---|---|---|
| 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 |
Circuit: A full adder can be built from two half adders and one OR gate.
What is a multiplexer? Explain a 4-to-1 multiplexer with a block diagram.
Multiplexer
A multiplexer (MUX) is a combinational circuit that selects one of several input data lines and routes it to a single output line. With select lines it can choose among inputs; it is also called a data selector and performs many-to-one (parallel-to-serial) routing.
4-to-1 Multiplexer
It has 4 data inputs (), 2 select lines () and 1 output Y.
Selection table:
| Output Y | ||
|---|---|---|
| 0 | 0 | |
| 0 | 1 | |
| 1 | 0 | |
| 1 | 1 |
Boolean expression:
Block/Logic diagram (described): Four 3-input AND gates each receive one data input plus the appropriate combination of (true or complemented via NOT gates). The four AND-gate outputs feed a single OR gate whose output is Y. Externally it is drawn as a trapezoidal block with inputs – on the left, select lines at the bottom, and output Y on the right.
Differentiate between combinational and sequential circuits.
Combinational vs Sequential Circuits
| Feature | Combinational Circuit | Sequential Circuit |
|---|---|---|
| Output depends on | Only the present inputs | Present inputs and past state (history) |
| Memory | No memory element | Has memory elements (flip-flops/latches) |
| Feedback | No feedback path | Contains feedback paths |
| Clock | Generally not required | Usually clock-driven (synchronous) |
| Design tool | Boolean equations / truth tables | State tables, state diagrams, excitation tables |
| Speed | Faster (no storage delay) | Comparatively slower |
| Examples | Adders, multiplexers, decoders, encoders | Flip-flops, registers, counters, memories |
In short: a combinational circuit produces an output that is a pure function of its current inputs, whereas a sequential circuit's output depends on both current inputs and the stored internal state, requiring memory and (typically) a clock.
Implement the logic function F(A,B,C) = Sum(1,3,5,7) using basic gates.
Implementing F(A,B,C) = Σ(1,3,5,7)
Step 1 — Sum-of-products from minterms:
| Minterm | A | B | C |
|---|---|---|---|
| 1 | 0 | 0 | 1 |
| 3 | 0 | 1 | 1 |
| 5 | 1 | 0 | 1 |
| 7 | 1 | 1 | 1 |
Notice that C = 1 in every minterm where F = 1.
Step 2 — Simplify (K-map):
| AB \ C | C=0 | C=1 |
|---|---|---|
| 00 | 0 | 1 |
| 01 | 0 | 1 |
| 11 | 0 | 1 |
| 10 | 0 | 1 |
The entire C=1 column groups together, eliminating A and B:
Step 3 — Implementation with basic gates:
The minimized function is simply , so the output equals input C directly — no gate is required (a plain wire/buffer from C to F).
If the question expects the un-simplified form, the canonical SOP is:
which uses three NOT gates, four 3-input AND gates and one 4-input OR gate. However, the simplified and correct realization is F = C (a single connection/buffer), demonstrating the value of minimization.
Explain the operation of a decoder with a 3-to-8 line decoder.
Decoder
A decoder is a combinational circuit that converts an -bit coded input into a maximum of unique output lines, with exactly one output active (HIGH) for each input combination and the rest inactive. It performs the reverse operation of an encoder and is used in memory address selection, data demultiplexing and code conversion.
3-to-8 Line Decoder
It has 3 inputs (A, B, C), 8 outputs (–), and (usually) an enable line. For each 3-bit input only the corresponding output goes HIGH.
Truth table (Enable = 1):
| A | B | C | Active 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 |
Output equations (active-high):
Circuit (described): three inputs A, B, C and their complements (via NOT gates) feed eight 3-input AND gates; each AND gate produces one output line, so the gate that matches the applied input combination drives its output HIGH.
What is a register? Explain a shift register.
Register
A register is a group of flip-flops (n flip-flops store an n-bit word) used to store binary data temporarily inside a digital system. Each flip-flop stores one bit, and all share a common clock. Registers are used for data storage and data movement in CPUs.
Shift Register
A shift register is a register that, in addition to storing data, can shift its contents left or right by one bit position on each clock pulse. It is built by cascading flip-flops so that the output of one feeds the input of the next.
Types (by data entry/exit)
- SISO – Serial-In Serial-Out
- SIPO – Serial-In Parallel-Out
- PISO – Parallel-In Serial-Out
- PIPO – Parallel-In Parallel-Out
- Bidirectional / Universal shift register (shifts both directions, with parallel load)
Working (4-bit SISO example)
Four D flip-flops (FF0→FF1→FF2→FF3) are connected in series. Data is applied serially at the input of FF0. On every clock pulse each bit moves one stage to the right, so after 4 clock pulses a 4-bit word has been fully loaded; it then appears serially at the output of FF3.
Applications: serial-to-parallel and parallel-to-serial conversion, temporary data storage, delay lines, and in counters (e.g. ring and Johnson counters).
Explain the working of a ripple (asynchronous) counter.
Ripple (Asynchronous) Counter
A ripple counter is an asynchronous sequential counter in which the flip-flops are not clocked simultaneously. Only the first (LSB) flip-flop receives the external clock; each subsequent flip-flop is triggered by the output of the preceding one. The clock effect thus ripples through the chain.
Construction (3-bit up-counter example)
- Three JK (or T) flip-flops connected in toggle mode (, or ).
- External clock drives FF0 (LSB).
- drives the clock of FF1, and drives the clock of FF2 (MSB).
Working
Each flip-flop toggles its output on the falling (or rising) edge of its clock input. FF0 toggles on every input clock pulse; FF1 toggles when changes from 1→0; FF2 toggles when changes from 1→0. This makes the outputs count in binary 000, 001, 010, …, 111 and then roll over.
Count sequence (3-bit): 000 → 001 → 010 → 011 → 100 → 101 → 110 → 111 → 000 …
Characteristics
- Advantage: simple, requires minimal hardware.
- Disadvantage: propagation delay accumulates (ripples), so it is slower and can produce transient glitches; not suitable for high-speed applications. Synchronous counters overcome this by clocking all flip-flops together.
Write short notes on universal gates.
Universal Gates
NAND and NOR gates are called universal gates because any other logic gate (NOT, AND, OR, XOR, etc.) — and hence any digital circuit — can be built using only NAND gates or only NOR gates. This reduces inventory and simplifies IC fabrication.
NAND Gate
Output = (AND followed by NOT). Output is 0 only when all inputs are 1.
Realizing other gates with NAND:
- NOT: tie both inputs together →
- AND: NAND followed by a NAND-inverter →
- OR: invert both inputs, then NAND → (by De Morgan)
NOR Gate
Output = (OR followed by NOT). Output is 1 only when all inputs are 0.
Realizing other gates with NOR:
- NOT: tie both inputs →
- OR: NOR followed by a NOR-inverter →
- AND: invert both inputs, then NOR → (by De Morgan)
Significance: because the entire set of Boolean functions is functionally complete using NAND alone or NOR alone, digital ICs are economically mass-produced using a single gate type.
Frequently asked questions
- Where can I find the BSc CSIT (TU) Digital Logic (BSc CSIT, CSC116) question paper 2074?
- The full BSc CSIT (TU) Digital Logic (BSc CSIT, CSC116) 2074 (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) 2074 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) 2074 paper?
- The BSc CSIT (TU) Digital Logic (BSc CSIT, CSC116) 2074 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.