Chapter 2
Digital Logic
TU BIM past exam questions
Past questions and answers
22 questions set from this chapter. Most repeated first.
- 2023 AD Model · 1 mark
What do you mean by digital computer?
Answer
A digital computer is an electronic machine that processes data represented in discrete form, using the binary digits 0 and 1. It accepts input, processes it according to stored instructions, and produces output, performing arithmetic and logical operations with high speed and accuracy. Personal computers and laptops are examples.
Answer checked by Claude Sonnet · Oct 21, 2026
Test yourself · 2 MCQs
Loading…
- 2023 AD Model · 1 mark
Classify the binary number.
Answer
A binary number is a number written in base 2 using only the digits 0 and 1. It can be classified as:
- Integer (whole) binary number, such as , with no binary point.
- Fractional binary number, such as , with only digits after the binary point.
- Mixed binary number, such as , with digits on both sides of the point.
Binary numbers can also be unsigned (magnitude only) or signed (sign-magnitude, 1's complement or 2's complement).
Answer checked by Claude Sonnet · Oct 21, 2026
Test yourself · 2 MCQs
Loading…
- 2023 AD Model · 1 mark
What do you mean by 2's complement
Answer
The 2's complement of a binary number is obtained by inverting every bit (the 1's complement) and then adding 1 to the result. It is used to represent negative numbers and to perform subtraction by addition.
Example: for (5), the 1's complement is , and adding 1 gives , which represents in 4 bits.
Answer checked by Claude Sonnet · Oct 21, 2026
Test yourself · 2 MCQs
Loading…
- 2023 AD Model · 1 mark
NAND gate is universal gate. Justify
Answer
A gate is universal if the NOT, AND and OR operations can all be built from it alone. NAND can do this:
- NOT: tie both inputs together, .
- AND: a NAND followed by a NAND used as an inverter, .
- OR: invert each input with a NAND, then NAND the results, (De Morgan's law).
Since every Boolean function can be written with AND, OR and NOT, NAND gates alone can implement any logic circuit.
Answer checked by Claude Sonnet · Oct 21, 2026
Test yourself · 2 MCQs
Loading…
- 2023 AD Model · 1 mark
What is Boolean algebra?
Answer
Boolean algebra is the algebra of logic in which variables take only two values, 0 and 1 (false and true). It uses the operations AND (), OR () and NOT (), and it is the mathematical basis for analysing and designing digital circuits.
Answer checked by Claude Sonnet · Oct 21, 2026
Test yourself · 2 MCQs
Loading…
- 2023 AD Model · 1 mark
What do you mean by SOP?
Answer
SOP (Sum of Products) is a form of Boolean expression in which several product (AND) terms are ORed together. For example, . When every product term contains all the variables, it is the canonical SOP, written as a sum of minterms, .
Answer checked by Claude Sonnet · Oct 21, 2026
Test yourself · 2 MCQs
Loading…
- 2023 AD Model · 1 mark
Define PLA.
Answer
A PLA (Programmable Logic Array) is a programmable logic device with a programmable AND array followed by a programmable OR array. Any set of Boolean functions in SOP form can be implemented by choosing which inputs form each product term and which product terms feed each output.
Answer checked by Claude Sonnet · Oct 21, 2026
Test yourself · 2 MCQs
Loading…
- 2023 AD Model · 1 mark
What do you mean by flip flop?
Answer
A flip-flop is a basic sequential circuit with two stable states. It stores one bit of information and keeps its output until a clock or trigger pulse changes it. It is the building block of registers, counters and memory. Examples are the SR, JK, D and T flip-flops.
Answer checked by Claude Sonnet · Oct 21, 2026
Test yourself · 2 MCQs
Loading…
- 2023 AD Model · 1 mark
Define registers.
Answer
A register is a group of flip-flops, one per bit, used to store a binary word (an -bit register needs flip-flops). Registers may be used simply for storage or, with shift capability, for shifting data left or right (shift registers).
Answer checked by Claude Sonnet · Oct 21, 2026
Test yourself · 2 MCQs
Loading…
- 2023 AD Model · 1 mark
What do you mean by ripple counter?
Answer
A ripple counter is an asynchronous counter in which only the first flip-flop receives the external clock. The output of each flip-flop clocks the next one, so the change "ripples" through the stages. An -bit ripple counter counts through states.
Answer checked by Claude Sonnet · Oct 21, 2026
Test yourself · 2 MCQs
Loading…
- 2023 AD Model · 3 marks
Describe the octal and hexadecimal numbers.
Answer
Octal number system. It has base 8 and uses the digits 0 to 7. Each position carries a weight that is a power of 8, so . Since , one octal digit equals exactly 3 binary bits, so .
Hexadecimal number system. It has base 16 and uses the digits 0 to 9 and the letters A to F (A=10, B=11, C=12, D=13, E=14, F=15). Each weight is a power of 16, so . Since , one hex digit equals 4 binary bits, so .
Both systems give a compact way to write long binary numbers and are widely used in computing, for example for memory addresses and machine codes.
Answer checked by Claude Sonnet · Oct 21, 2026
Test yourself · 2 MCQs
Loading…
- 2023 AD Model · 3 marks
Discuss the basic theorems and properties of Boolean algebra.
Answer
Basic postulates, theorems and properties of Boolean algebra:
| Property | AND form | OR form |
|---|---|---|
| Identity | ||
| Null (dominance) | ||
| Idempotent | ||
| Complement | ||
| Involution | ||
| Commutative | ||
| Associative | ||
| Distributive | ||
| Absorption | ||
| De Morgan |
Other useful results are and the consensus theorem .
Duality. If every AND is swapped with OR, and every 0 with 1, in a valid identity, the result is also a valid identity. This is why each law above comes as a pair.
Answer checked by Claude Sonnet · Oct 21, 2026
Test yourself · 2 MCQs
Loading…
- 2023 AD Model · 3 marks
Explain the don't care condition with example.
Answer
A don't-care condition is an input combination that never occurs, or whose output does not matter, so the function value for it may be taken as either 0 or 1. It is marked X (or d) in the truth table and K-map. Each X can be treated as 1 if that gives a larger group, and as 0 otherwise, which gives a simpler expression.
Example. A BCD digit detector gives for the digits 5 to 9 on inputs . The input combinations 1010 to 1111 never occur in BCD, so they are don't-cares:
Using the don't-cares in the K-map, the cells 8 to 15 form one group giving , the cells 5, 7, 13, 15 give , and the cells 6, 7, 14, 15 give . Therefore
Without the don't-cares the expression would need more literals, for example .
Answer checked by Claude Sonnet · Oct 21, 2026
Test yourself · 2 MCQs
Loading…
- 2023 AD Model · 3 marks
Design full adder with truth table.
Answer
A full adder adds three 1-bit inputs, , and the carry-in , and gives a sum and a carry-out .
Truth table
| A | B | S | ||
|---|---|---|---|---|
| 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 |
Expressions (from the K-maps)
Circuit. Two half adders and an OR gate: the first half adder adds and to give and . The second adds and to give and . Finally .
Answer checked by Claude Sonnet · Oct 21, 2026
Test yourself · 2 MCQs
Loading…
- 2023 AD Model · 3 marks
Differentiate between multiplexers and demultiplexers
Answer
| Multiplexer (MUX) | Demultiplexer (DEMUX) |
|---|---|
| Many inputs, one output | One input, many outputs |
| Selects one of inputs using select lines | Sends the single input to one of outputs using select lines |
| Also called a data selector | Also called a data distributor |
| Has data inputs, selects, 1 output | Has 1 data input, selects, outputs |
| Used in data routing, parallel-to-serial conversion, function implementation | Used in serial-to-parallel conversion and data distribution |
| Example: 4:1 MUX | Example: 1:4 DEMUX |
Answer checked by Claude Sonnet · Oct 21, 2026
Test yourself · 2 MCQs
Loading…
- 2023 AD Model · 3 marks
Explain D-flip-flop.
Answer
The D (data or delay) flip-flop has a single data input and a clock input. It is made from an SR flip-flop by connecting and through an inverter, which removes the invalid state. On the active clock edge, the output takes the value of .
Characteristic equation: .
| D | Action | |
|---|---|---|
| 0 | 0 | Reset |
| 1 | 1 | Set |
The output follows the input one clock period later, so it is used as a delay element, for storing one bit, and in registers and data latches.
Answer checked by Claude Sonnet · Oct 21, 2026
Test yourself · 2 MCQs
Loading…
- 2023 AD Model · 5 marks
Design a half subtractors logic circuit using only NOR gate.
Answer
A half subtractor computes with two outputs, the difference and the borrow :
| A | B | D | |
|---|---|---|---|
| 0 | 0 | 0 | 0 |
| 0 | 1 | 1 | 1 |
| 1 | 0 | 1 | 0 |
| 1 | 1 | 0 | 0 |
Implementation with NOR gates only. Five NOR gates are used:
- , which is the borrow
The last gate has its two inputs tied together and acts as an inverter. Thus and are both obtained using NOR gates alone.
Answer checked by Claude Sonnet · Oct 21, 2026
Test yourself · 2 MCQs
Loading…
- 2023 AD Model · 5 marks
Convert the following decimal numbers into hexadecimal and octal number.
(a) 305
(b) 225
Answer
(a) 305
Hexadecimal, dividing by 16:
- remainder
- remainder
- remainder
Reading the remainders upwards, .
Octal, dividing by 8:
- remainder
- remainder
- remainder
So .
(b) 225
Hexadecimal:
- remainder
- remainder (E)
So .
Octal:
- remainder
- remainder
- remainder
So .
Check: and .
Answer checked by Claude Sonnet · Oct 21, 2026
Test yourself · 2 MCQs
Loading…
- 2023 AD Model · 5 marks
Describe the three-variable K-map with example.
Answer
A K-map (Karnaugh map) is a graphical method of simplifying Boolean functions. A three-variable map has cells, one for each minterm. It is drawn as 2 rows by 4 columns (or 4 by 2). The columns are labelled in Gray code, 00, 01, 11, 10, so that adjacent cells differ in only one variable.
| =00 | 01 | 11 | 10 | |
|---|---|---|---|---|
Rules of grouping. Group adjacent 1s in powers of two (1, 2, 4, 8). The groups can wrap around the edges, and may overlap. Use the largest possible groups. A group of cells eliminates variables.
Example. .
| 00 | 01 | 11 | 10 | |
|---|---|---|---|---|
| 0 | 1 | 1 | 0 | |
| 0 | 1 | 1 | 0 |
The four 1s form one group (columns 01 and 11). In this group and change and stays constant, so
Another example is , which gives .
Answer checked by Claude Sonnet · Oct 21, 2026
Test yourself · 2 MCQs
Loading…
- 2023 AD Model · 5 marks
Explain the triggering of flip-flop with example.
Answer
Triggering is the way a clock signal makes a flip-flop change state. There are two main types.
1. Level triggering. The flip-flop responds while the clock stays at a particular level (high or low). During that time the output follows changes in the input. This can cause race-around or multiple changes within one pulse, as in a simple JK latch with .
2. Edge triggering. The flip-flop changes state only at the instant of a clock transition, so the input is sampled once per pulse.
- Positive (rising) edge triggered: changes on the 0 to 1 transition.
- Negative (falling) edge triggered: changes on the 1 to 0 transition. In symbols this is shown by a bubble at the clock input.
Example. A positive edge triggered D flip-flop with sets only at the rising edge. If changes to 0 while the clock is high, stays 1 until the next rising edge, when it takes the new value. Master-slave flip-flops also avoid race-around.
Answer checked by Claude Sonnet · Oct 21, 2026
Test yourself · 2 MCQs
Loading…
- 2023 AD Model · 10 marks
What do you mean by ripple counter? Design the 4-bit ripple counter with timing diagram.
Answer
Ripple counter. A ripple counter is an asynchronous counter in which the clock pulse is applied only to the first flip-flop. The output of each flip-flop drives the clock of the next, so the change ripples through the stages. An -bit counter has states, and the propagation delays add up, which limits the speed.
4-bit binary (up) ripple counter.
Use four JK flip-flops with (or T flip-flops with ), so each toggles when its clock input falls (negative-edge triggered).
- The external clock goes to , which gives (LSB).
- clocks , clocks , and clocks , which gives (MSB).
Each stage divides the frequency by 2, so , , and . It is a MOD-16 counter counting from 0000 to 1111, then returning to 0000.
Count sequence and timing.
| Clock pulse | |
|---|---|
| 0 | 0000 |
| 1 | 0001 |
| 2 | 0010 |
| 3 | 0011 |
| 4 | 0100 |
| 5 | 0101 |
| 6 | 0110 |
| 7 | 0111 |
| 8 | 1000 |
| 9 | 1001 |
| 10 | 1010 |
| 11 | 1011 |
| 12 | 1100 |
| 13 | 1101 |
| 14 | 1110 |
| 15 | 1111 |
| 16 | 0000 |
Timing diagram (each column is one clock pulse, 1 means high):
CLK : _|‾|_|‾|_|‾|_|‾|_|‾|_|‾|_|‾|_|‾|_|‾|_|‾|_|‾|_|‾|_|‾|_|‾|_|‾|_|‾|
Q0 : 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 toggles on every clock fall
Q1 : 0 0 1 1 0 0 1 1 0 0 1 1 0 0 1 1 toggles when Q0 falls
Q2 : 0 0 0 0 1 1 1 1 0 0 0 0 1 1 1 1 toggles when Q1 falls
Q3 : 0 0 0 0 0 0 0 0 1 1 1 1 1 1 1 1 toggles when Q2 falls
Each waveform has half the frequency of the one before it. A down counter is obtained by clocking each stage from the output of the previous stage.
Answer checked by Claude Sonnet · Oct 21, 2026
Test yourself · 2 MCQs
Loading…
- 2023 AD Model · 10 marks
Differentiate between sequential and combinational logic. Explain the steps to design of combinational logic.
Answer
Difference between sequential and combinational logic
| Combinational logic | Sequential logic |
|---|---|
| Output depends only on the present inputs | Output depends on the present inputs and the past state |
| No memory element | Has memory (flip-flops) |
| Usually no clock needed | Usually clocked |
| Faster and simpler | Slower and more complex |
| Examples: adder, MUX, decoder, encoder | Examples: registers, counters, flip-flops |
Steps to design a combinational circuit
- Specification. State the problem and decide the number of inputs and outputs.
- Assign symbols to the input and output variables.
- Truth table. Write the output for every combination of inputs.
- Boolean expression. Write each output as a sum of minterms (or product of maxterms) from the truth table.
- Simplify using Boolean algebra or a K-map (using don't-cares where available).
- Draw the logic diagram with AND, OR, NOT gates, or NAND/NOR only if required.
- Verify the circuit by checking it against the truth table.
Example. For a half adder, the inputs are and the outputs are and , which are implemented with an XOR gate and an AND gate.
Answer checked by Claude Sonnet · Oct 21, 2026
Test yourself · 2 MCQs
Loading…
Questions from TU BIM Business Communication (MGT 204) 2001 AD (Board exam paper, 2001 AD), TU BIM Business Communication (MGT 204) 2002 AD (Board exam paper, 2002 AD), TU BIM Business Communication (MGT 204) 2003 AD (Board exam paper, 2003 AD), TU BIM Business Communication (MGT 204) 2005 AD (Board exam paper, 2005 AD), TU BIM Business Communication (MGT 204) 2007 AD (Board exam paper, 2007 AD), TU BIM Business Communication (MGT 204) 2008 AD (Board exam paper, 2008 AD), TU BIM Business Communication (MGT 204) 2009 AD (Board exam paper, 2009 AD), TU BIM Business Communication (MGT 204) 2010 AD (Board exam paper, 2010 AD), TU BIM Business Communication (MGT 204) 2011 AD (Board exam paper, 2011 AD), TU BIM Business Communication (MGT 204) 2012 AD (Board exam paper, 2012 AD), TU BIM Business Communication (MGT 204) 2013 AD (Board exam paper, 2013 AD), TU BIM Business Communication (MGT 204) 2014 AD (Board exam paper, 2014 AD), TU BIM Business Communication (MGT 204) 2015 AD (Board exam paper, 2015 AD), TU BIM Business Communication (MGT 204) 2016 AD (Board exam paper, 2016 AD), TU BIM Business Communication (MGT 204) 2017 AD (Board exam paper, 2017 AD), TU BIM Business Communication (MGT 204) 2018 AD (Board exam paper, 2018 AD), TU BIM Business Communication (MGT 204) 2019 AD (Board exam paper, 2019 AD), TU BIM Business Communication (MGT 204) 2021 AD (Board exam paper, 2021 AD), TU BIM Discrete Mathematics (MTH 202) 2005 AD (Board exam paper, 2005 AD), TU BIM Discrete Mathematics (MTH 202) 2007 AD (Board exam paper, 2007 AD), TU BIM Discrete Mathematics (MTH 202) 2008 AD (Board exam paper, 2008 AD), TU BIM Discrete Mathematics (MTH 202) 2009 AD (Board exam paper, 2009 AD), TU BIM Discrete Mathematics (MTH 202) 2010 AD (Board exam paper, 2010 AD), TU BIM Discrete Mathematics (MTH 202) 2011 AD (Board exam paper, 2011 AD), TU BIM Discrete Mathematics (MTH 202) 2012 AD (Board exam paper, 2012 AD), TU BIM Discrete Mathematics (MTH 202) 2013 AD (Board exam paper, 2013 AD), TU BIM Discrete Mathematics (MTH 202) 2014 AD (Board exam paper, 2014 AD), TU BIM Discrete Mathematics (MTH 202) 2016 AD (Board exam paper, 2016 AD), TU BIM Discrete Mathematics (MTH 202) 2017 AD (Board exam paper, 2017 AD), TU BIM Discrete Mathematics (MTH 202) 2018 AD (Board exam paper, 2018 AD), TU BIM Discrete Mathematics (MTH 202) 2019 AD (Board exam paper, 2019 AD), TU BIM Discrete Mathematics (MTH 202) 2021 AD (Board exam paper, 2021 AD), TU BIM Data Communication and Computer Network (ITC 214) 2001 AD (Board exam paper, 2001 AD), TU BIM Data Communication and Computer Network (ITC 214) 2002 AD (Board exam paper, 2002 AD), TU BIM Data Communication and Computer Network (ITC 214) 2004 AD (Board exam paper, 2004 AD), TU BIM Data Communication and Computer Network (ITC 214) 2005 AD (Board exam paper, 2005 AD), TU BIM Data Communication and Computer Network (ITC 214) 2009 AD (Board exam paper, 2009 AD), TU BIM Data Communication and Computer Network (ITC 214) 2010 AD (Board exam paper, 2010 AD), TU BIM Data Communication and Computer Network (ITC 214) 2011 AD (Board exam paper, 2011 AD), TU BIM Data Communication and Computer Network (ITC 214) 2012 AD (Board exam paper, 2012 AD), TU BIM Data Communication and Computer Network (ITC 214) 2013 AD (Board exam paper, 2013 AD), TU BIM Data Communication and Computer Network (ITC 214) 2014 AD (Board exam paper, 2014 AD), TU BIM Data Communication and Computer Network (ITC 214) 2015 AD (Board exam paper, 2015 AD), TU BIM Data Communication and Computer Network (ITC 214) 2016 AD (Board exam paper, 2016 AD), TU BIM Data Communication and Computer Network (ITC 214) 2017 AD (Board exam paper, 2017 AD), TU BIM Data Communication and Computer Network (ITC 214) 2018 AD (Board exam paper, 2018 AD), TU BIM Data Communication and Computer Network (ITC 214) 2019 AD (Board exam paper, 2019 AD), TU BIM Data Communication and Computer Network (ITC 214) 2021 AD (Board exam paper, 2021 AD), TU BIM Sociology for Business (SOC 201) 2001 AD (Board exam paper, 2001 AD), TU BIM Sociology for Business (SOC 201) 2002 AD (Board exam paper, 2002 AD), TU BIM Sociology for Business (SOC 201) 2003 AD (Board exam paper, 2003 AD), TU BIM Sociology for Business (SOC 201) 2005 AD (Board exam paper, 2005 AD), TU BIM Sociology for Business (SOC 201) 2008 AD (Board exam paper, 2008 AD), TU BIM Sociology for Business (SOC 201) 2009 AD (Board exam paper, 2009 AD), TU BIM Sociology for Business (SOC 201) 2011 AD (Board exam paper, 2011 AD), TU BIM Sociology for Business (SOC 201) 2012 AD (Board exam paper, 2012 AD), TU BIM Sociology for Business (SOC 201) 2013 AD (Board exam paper, 2013 AD), TU BIM Sociology for Business (SOC 201) 2014 AD (Board exam paper, 2014 AD), TU BIM Sociology for Business (SOC 201) 2015 AD (Board exam paper, 2015 AD), TU BIM Structured Programming (ITC 213) 2001 AD (Board exam paper, 2001 AD), TU BIM Structured Programming (ITC 213) 2002 AD (Board exam paper, 2002 AD), TU BIM Structured Programming (ITC 213) 2004 AD (Board exam paper, 2004 AD), TU BIM Structured Programming (ITC 213) 2007 AD (Board exam paper, 2007 AD), TU BIM Structured Programming (ITC 213) 2008 AD (Board exam paper, 2008 AD), TU BIM Structured Programming (ITC 213) 2009 AD (Board exam paper, 2009 AD), TU BIM Structured Programming (ITC 213) 2010 AD (Board exam paper, 2010 AD), TU BIM Structured Programming (ITC 213) 2012 AD (Board exam paper, 2012 AD), TU BIM Structured Programming (ITC 213) 2002 AD (Objective question paper, 2002 (20 MCQs, 0.5 marks each, full marks 10)), TU BIM Structured Programming (ITC 213) 2003 AD (Objective question paper, 2003 (20 MCQs, 0.5 marks each, full marks 10); item 10 as printed in the scan), TU BIM Structured Programming (ITC 213) 2013 AD (Board exam paper, 2013 (the scan of this paper ends after question 5)), TU BIM Structured Programming (ITC 213) 2014 AD (Board exam paper, 2014 AD), TU BIM Structured Programming (ITC 213) 2015 AD (Board exam paper, 2015 (the line "if( (m 2 ) == 0" is printed with a modulus sign that is illegible in the scan; read as m % 2)), TU BIM Structured Programming (ITC 213) 2016 AD (Board exam paper, 2016 (the first figure in question 2 is transcribed as printed)), TU BIM Structured Programming (ITC 213) 2017 AD (Board exam paper, August-September 2017), TU BIM Structured Programming (ITC 213) 2018 AD (Board exam paper, September-October 2018), TU BIM Structured Programming (ITC 213) 2021 Aug (Board exam paper, August 2021) and TU BIM Second Semester Model Questions 2022/23 (IT 232, IT 233, IT 235, IT 234, MGT 241) (Faculty of Management model question set, BIM second semester (new course), via EducateNepal). Answers are written for this site; check them against your class notes.