পরীক্ষা আর্কাইভ

৪৯তম বিসিএস ⎯ তথ্য ও যোগাযোগ প্রযুক্তি [২৮১]

পরীক্ষা৪৯তম বিসিএস ⎯ তথ্য ও যোগাযোগ প্রযুক্তি [২৮১]তারিখতারিখ অনির্ধারিতসময়18 minutes
মোট প্রশ্ন৩০
সিলেবাস
Exam 2 Digital logic, decoders and encoders, multiplexers and demultiplexers, Flip-flops, Counters. [Source: Class-2 and relevant books]
ঘনত্ব
উত্তর
উত্তরিতবর্তমানপুনরায় দেখুনঅসম্পূর্ণ

৪৯তম বিসিএস ⎯ তথ্য ও যোগাযোগ প্রযুক্তি [২৮১]

৪৯তম বিসিএস ⎯ তথ্য ও যোগাযোগ প্রযুক্তি [২৮১] · তারিখ অনির্ধারিত · ৩০ প্রশ্ন

.
Digital logic systems work with:
  1. Continuous signals
  2. Discrete signals
  3. Analog voltages
  4. Random noise
ব্যাখ্যা
Digital logic systems work with discrete signals — usually represented by binary values (0 and 1).

These binary values correspond to:

•LOW (0) and HIGH (1) voltage levels
•Logical FALSE and TRUE
•OFF and ON states

Source: Digital Design (6th Global Edition) by M. Morris Mano

.
The Boolean expression  represents which logic gate?
  1. NAND
  2. NOR 
  3. XOR
  4. XNOR
ব্যাখ্যা
A+B represents an OR gate. The overline ( ‾  ) indicates NOT, so it’s a NOR gate.

Boolean Expression:
                     
Step-by-Step Reasoning:

Identify the operation:

'+' in Boolean algebra means OR operation.
So, A+B means A OR B.

Understand the bar (overline):

The bar ' ‾ ' represents NOT (logical negation).

So, means “NOT (A OR B)”.

∴ A NOR gate performs the logical OR followed by a NOT.

Truth table: output is 1 only when both inputs are 0.


Source: Thomas Floyd, “Digital Fundamentals,” 11th Edition, Pearson.
.
Which of the following is a sequential circuit?
  1. Half Adder
  2. Full Adder
  3. Flip-Flop
  4. Decoder
ব্যাখ্যা

A sequential circuit is an interconnection of flip-flops and gates. The output of a sequential circuit is a function of the inputs and the present state of its flip-flops. The present state of the flip-flops is a function of previous inputs; hence, sequential circuits have memory.

Examples of sequential circuits:

Counters, Shift registers, Flip-flop–based state machines, Clocks in digital systems.

Source: Digital Logic and Computer Design by M. Morris Mano

.
The output of an XOR gate is 1 when:
  1. Inputs are the same
  2. Inputs are different 
  3. Both inputs are 1
  4. Both inputs are 0
ব্যাখ্যা

The XOR gate compares two binary inputs and outputs 1 if and only if the inputs are different.
Its Boolean expression is:
                       
Truth Table:

 
Therefore, the XOR gate outputs 1 only when A ≠ B.



Source: Digital Logic and Computer Design by M. Morris Mano

.
The equation A + BC = (A + B)(A + C) represents which Boolean law?
  1. Distributive 
  2. Commutative
  3. Fundamental
  4. Associative
ব্যাখ্যা
This is the distributive law of Boolean algebra, allowing factorization.

A + BC = (A + B)(A + C)
Proof: 
(A+B) (A+C) = A.A + A.C + B.A + B.C 
= A + A.C + A.B + B.C   [Since A.A = A]
= A(1 + C + B) + B.C    [Since 1 + any variable = 1]
= A + B.C 

∴ (A+B) (A+C) = A + B.C



Source: Digital Logic and Computer Design by M. Morris Mano
.
Which logic gate produces a HIGH output only when all inputs are HIGH?
  1. AND
  2. OR
  3. XOR
  4. NOR
ব্যাখ্যা
An AND gate outputs 1 (HIGH) only when all its inputs are 1 (HIGH).

If any input is 0 (LOW), the output will be 0 (LOW).

Truth table for a 2-input AND gate:


Source: Data Communications and Networking — Behrouz A. Forouzan
.
If there are 4 variables in a truth table, how many minterms will there be?
  1. 8
  2. 16
  3. 32
  4. 64
ব্যাখ্যা

For n variables, minterms = 2ⁿ. For n = 4 ∴ 2⁴ = 16.

A minterm is a product (AND) term in Boolean algebra where each variable appears exactly once, either in true form or complemented.
Each unique combination of input variables corresponds to one minterm.

With 4 variables (A, B, C, D), there are 2⁴ = 16 possible input combinations, so 16 minterms.


Source: Digital Logic and Computer Design by M. Morris Mano

.
A 4-to-16 line decoder has how many inputs and outputs?
  1. 16 inputs, 4 outputs
  2. 4 inputs, 8 outputs
  3. 8 inputs, 3 outputs
  4. 4 inputs, 16 outputs
ব্যাখ্যা
A decoder with n inputs has 2ⁿ outputs. Here, 3 inputs → 2³ = 8 outputs.

In an n-to-2ⁿ line decoder:
n = number of selection inputs (variables)

2ⁿ= number of output lines

For n=4:
24=16

So, 4 inputs → 16 outputs.

Note: In practical ICs, there’s often an additional enable input, so the total physical input pins may be 4+1=5, but logically it’s still called a 4-to-16 decoder because there are 4 selection lines.


Source: Digital Logic and Computer Design by M. Morris Mano
.
Which of the following is the reverse function of an Encoder ?
  1. Multiplexer
  2. Demultiplexer
  3. Decoder
  4. Counter
ব্যাখ্যা
An encoder converts an active input line into a binary code.
A decoder does the reverse; it takes a binary code and activates one specific output line corresponding to that code.

Example:
Encoder: If input line D5 is active, the output binary code is 101.

Decoder: If the input binary code is 101, output line D5 becomes active.


Source: Digital Logic and Computer Design by M. Morris Mano
১০.
What will be the output in a 4-to-2 binary encoder if input D2 = 1?
  1. 00
  2. 11
  3. 01
  4. 10
ব্যাখ্যা

In binary, input D₂ corresponds to 10. The encoder converts the active input line into its binary code.

A 4-to-2 binary encoder converts one active input line into a 2-bit binary output.
For a priority encoder with one active input at a time:

?0=?1+?3

Y1=D2+D3

​Truth Table:


So if D₂ = 1, the output is 10 (Y1 = 1, Y0 = 0).



Source: Digital Logic Design by M. Morris Mano

১১.
Where is a decoder commonly used?
  1. Data compression
  2. Memory address decoding
  3. Priority resolution
  4. Binary addition
ব্যাখ্যা

A decoder takes 'n' binary input lines and activates exactly one of ' 2? ' output lines.
In memory address decoding, the binary address from the CPU is applied to the decoder inputs. The decoder then enables only the memory location (or chip) corresponding to that address, ensuring that only the addressed memory responds to the read/write signal.

This is one of the most common real-world uses of decoders in digital systems such as microprocessors and microcontrollers.


Source: Digital Logic Design by M. Morris Mano

১২.
Which multiplexer requires 4 selection lines?
  1. 16:1
  2. 8:1
  3. 6:1
  4. 2:1
ব্যাখ্যা

A multiplexer (MUX) needs a certain number of selection lines (n) based on the formula:
Number of inputs = 2?

If n = 4 selection lines:

Then Inputs = 24 = 16
This means a 16:1 multiplexer requires 4 selection lines to choose one of its 16 input signals.

Source:  Digital Design (6th Global Edition) by M. Morris Mano

১৩.
Which multiplexer has 4 inputs, 1 output, and 2 selection lines?
  1. 2-to-1 multiplexer
  2. 4-to-1 multiplexer
  3. 8-to-1 multiplexer
  4. 16-to-1 multiplexer
ব্যাখ্যা
The number of selection lines (n) in a multiplexer is related to the number of inputs by the formula:

Number of inputs =2?

If there are 2 selection lines:
22=4 inputs

This means a multiplexer with 4 inputs, 1 output, and 2 selection lines is a 4-to-1 multiplexer.
It selects one of the 4 inputs based on the binary value present on the 2 selection lines.



Source: Digital Design (6th Global Edition) by M. Morris Mano
১৪.
Which digital circuit can a demultiplexer be configured to function as?
  1. Encoder
  2. Decoder 
  3. Full adder
  4. Multiplexer
ব্যাখ্যা
When the data input of a demultiplexer is held at logic 1, it behaves like a decoder because the select lines directly determine which single output is activated.
১৫.
Which IC is commonly used for a 4:1 multiplexer?
  1. 74138
  2. 74153
  3. 74244
  4. 7474
ব্যাখ্যা
IC 74153 is a dual 4:1 multiplexer, widely used in digital electronics.

74153 is a dual 4-to-1 multiplexer IC, meaning it contains two independent 4:1 multiplexers in one package.

It has 4 inputs per multiplexer, 2 selection lines, and 1 output for each section.

Commonly used in digital circuits for data selection.

74138 → 3-to-8 line decoder, not a multiplexer.

74244 → Octal buffer/driver, used for bus driving, not data selection.

7474 → Dual D-type flip-flop, used for data storage, not multiplexing.

Quick Identification Tricks
Multiplexer (MUX) → “n-to-1” (n inputs, 1 output). Selection lines choose the input. IC numbers often end in 51, 53.
Decoder → “n-to-m” (n inputs, m outputs). Converts binary input to a single active output. IC numbers often end in 38, 39.
Flip-Flop → Has clock, Q, and Q̅ outputs. Stores 1 bit. IC numbers often end in 74, 76.
Octal Buffer/Line Driver → “8-to-8” (8 inputs, 8 outputs). Used for driving buses and strengthening signals. Often tri-state outputs. IC numbers often end in 44 (e.g., 74244) or 45 (74245 for bidirectional).

Source: Digital Logic & Computer Design by M. Morris Mano 
১৬.
What is the primary purpose of a multiplexer?
  1. Increase the speed of a processor
  2. Convert parallel data to serial data
  3. Select one input line from many and send it to the output
  4. Send one input line to many outputs
ব্যাখ্যা
A multiplexer (MUX) is a combinational logic circuit that takes multiple input lines and channels only one selected input to the output, based on the binary value present on its selection lines.
It functions like an electronic switch, allowing digital systems to efficiently route data from many sources to a single destination. 

Source: Digital Logic and Computer Design by M. Morris Mano
১৭.
Which device performs the function opposite to that of a demultiplexer?
  1. Decoder
  2. Encoder
  3. Comparator
  4. Multiplexer
ব্যাখ্যা
A demultiplexer (DEMUX) takes one input signal and routes it to one of several outputs, based on the values of its selection lines.
A multiplexer (MUX) performs the opposite function — it takes multiple input signals and selects only one to send to the output, based on the selection lines.

Function Relationship:
                     
In essence:

MUX = Combines multiple data lines into one (opposite of DEMUX).
DEMUX = Splits one data line into multiple outputs (opposite of MUX).

Source: Digital Logic & Computer Design by M. Morris Mano
১৮.
When the J and K inputs of a JK flip-flop are connected together, it functions as:
  1. SR flip-flop
  2. D flip-flop
  3. T flip-flop
  4. Master-slave flip-flop
ব্যাখ্যা

A JK flip-flop has two inputs: J (set) and K (reset).

When J = K = 1, the flip-flop toggles its output (changes from 0 to 1 or 1 to 0) on every active clock edge.

If we connect the J and K inputs together and feed them with the same signal, they will always be equal. This makes the JK flip-flop behave exactly like a T (toggle) flip-flop, where:

Thus, connecting J and K together transforms the JK flip-flop into a T flip-flop.

Source: Data Communications and Networking by Behrouz A. Forouzan
১৯.
Which flip-flop is also called a “data latch”?
  1. SR Flip-Flop
  2. D Flip-Flop
  3. JK Flip-Flop
  4. T Flip-Flop
ব্যাখ্যা
The D flip-flop is often called a data latch or delay flip-flop because it stores the value present at the D (data) input at the moment of the clock edge and then holds (latches) that value until the next clock event.

It eliminates the undefined condition of the SR flip-flop by ensuring that there is only one input (D) which directly determines the stored bit.

When the clock is active, Q takes the value of D. When the clock is inactive, the stored value remains unchanged.

This "latching" of the data input is why it is called a data latch

Source: Data Communications and Networking by Behrouz A. Forouzan
২০.
A T flip-flop can be used to implement frequency division by what factor?
  1. 2
  2. 4
  3. 8
  4. 16
ব্যাখ্যা
The T (Toggle) flip-flop changes its output state (toggles) on each active clock edge (rising or falling, depending on design).

If the input T = 1, every time the clock pulses, the output Q flips from 0 → 1 or 1 → 0.

This means the output frequency is exactly half of the input clock frequency — hence frequency division by 2.

By cascading multiple T flip-flops, you can achieve frequency division by powers of 2.

1st flip-flop → divide by 2

2nd flip-flop → divide by 4

3rd flip-flop → divide by 8
And so on…

∴ T flip-flop toggles output on each clock pulse, effectively dividing input frequency by 2.

Source: Data Communications and Networking by Behrouz A. Forouzan
২১.
In a master–slave JK flip-flop, the master stage is active during which clock phase?
  1. High level of clock
  2. Low level of clock
  3. Both high and low levels
  4. Never active
ব্যাখ্যা
A master–slave JK flip-flop consists of two JK flip-flops connected in series:

Master stage → Receives input first.
Slave stage → Follows the master after a half clock cycle.

Operation:
The master is enabled (active) when the clock signal is HIGH.
The slave is enabled when the clock signal is LOW.

This arrangement prevents race conditions in JK flip-flops and ensures output changes only once per clock cycle.

Source: Digital Logic & Computer Design by M. Morris Mano

২২.
The forbidden state of an SR flip-flop occurs when:
  1. S=0, R=0
  2.  S=1, R=0
  3.  S=0, R=1
  4.  S=1, R=1
ব্যাখ্যা
An SR flip-flop (Set–Reset flip-flop) has two inputs: S (Set) and R (Reset).

Normal operation:
S = 1, R = 0 → Output Q is set to 1.
S = 0, R = 1 → Output Q is reset to 0.
S = 0, R = 0 → Output retains its previous state.

Forbidden state:

S = 1, R = 1 → Both outputs Q and Q̅ become 0 simultaneously.

This violates the rule that Q and Q̅ must always be complements, leading to an undefined or unstable condition.

For this reason, this input combination is called the forbidden state (or invalid state).
∴ Both inputs high cause an undefined or forbidden output in an SR flip-flop.


Source: Data Communications and Networking by Behrouz A. Forouzan
২৩.
What is the main function of a digital counter?
  1. To perform arithmetic operations
  2. To convert analog to digital
  3. To generate clock pulses
  4. To count pulses and store the count value 
ব্যাখ্যা
Explanation:
A digital counter is a sequential circuit designed to count the number of input pulses and represent the count in binary (or another number system).

Counters are commonly made from a series of flip-flops connected in a specific manner.

Working principle:

Each incoming pulse changes the state of the counter.
The count is stored temporarily within the flip-flops.

Applications:

Measuring time (digital clocks, timers)
Event counting (frequency counters, traffic counters)
Memory addressing (as address counters in computers)

Key point:
The main job is counting — it does not generate clock pulses, perform arithmetic like an ALU, or convert analog to digital.

Example:
A 4-bit binary counter can count from 0000 (0) to 1111 (15) before wrapping around to 0000 again.

Counters count the number of input pulses and store the result as a binary number.


Source: Data Communications and Networking by Behrouz A. Forouzan
২৪.
How many flip-flops are needed to design a 4-bit binary counter?
  1. 2
  2. 4
  3. 6
  4. 8
ব্যাখ্যা
In a binary counter, each flip-flop stores one bit.
A 4-bit counter must represent values from 0 (0000) to 15 (1111), which is 2⁴ = 16 states.

Therefore, we need 4 flip-flops, one for each bit of the binary number.

Formula:
Number of flip-flops = Number of bits in the counter

So,
2-bit counter → 2 flip-flops → counts 0–3
3-bit counter → 3 flip-flops → counts 0–7
4-bit counter → 4 flip-flops → counts 0–15 

Example:
4 flip-flops connected in series can be arranged as:
Ripple counter (asynchronous) — slower but simpler 
and Synchronous counter — all flip-flops share the same clock



Source: Digital Logic & Computer Design by M. Morris Mano
২৫.
How many states does a 3-bit counter have?
  1. 2
  2. 4
  3. 6
  4. 8
ব্যাখ্যা
In a binary counter, the number of states is determined by:

Number of states=2n

where
n = number of flip-flops (bits).

For a 3-bit counter:
23=8 states

These states range from 000 to 111 in binary (0 to 7 in decimal).

Example:
000 → 0
001 → 1
010 → 2
011 → 3
100 → 4
101 → 5
110 → 6
111 → 7

Source: Digital Design (6th Global Edition) by M. Morris Mano
২৬.
Which flip-flop is commonly used in counters?
  1. SR flip-flop
  2. D flip-flop
  3. JK flip-flop
  4. T flip-flop
ব্যাখ্যা
T (Toggle) flip-flop is the most commonly used in counters because of
1. On every active clock edge, it toggles its output.
2. This toggling behavior naturally produces binary sequences used in counting.
3. A T flip-flop can be implemented by connecting J and K inputs of a JK flip-flop together, or by modifying a D flip-flop.

Using multiple T flip-flops in series creates ripple counters or synchronous counters.

Others:

SR flip-flop → Has an invalid (forbidden) state when S=1 and R=1, not ideal for counters.
D flip-flop → Used more in registers and data storage, though it can be adapted for counters.
JK flip-flop → Flexible and can be used for counters, but when used for counting, it’s usually wired to act like a T flip-flop.

Source: Digital Logic & Computer Design by M. Morris Mano

২৭.
What type of flip-flop output is used as a clock input for the next flip-flop in a ripple counter?
  1. Q output 
  2. Q̅ output
  3. Clock input
  4. Preset input
ব্যাখ্যা
In a ripple counter—also known as an asynchronous counter—the Q output of each flip-flop is connected to the clock input of the next. The first flip-flop receives the external clock signal, and its Q output then "ripples" through to clock the subsequent stages
২৮.
What is the main difference between synchronous and asynchronous counters?
  1. Synchronous counters use multiple clocks
  2. Asynchronous counters have flip-flops triggered by previous flip-flop outputs
  3. Synchronous counters are slower
  4. Asynchronous counters count only in decimal
ব্যাখ্যা
Asynchronous counters (also called ripple counters):
♦ Only the first flip-flop is driven by the external clock.
♦ The output of each flip-flop acts as the clock for the next stage.
♦ This causes a ripple effect and propagation delays.

Synchronous counters:
♦ All flip-flops receive the clock signal simultaneously.
♦ No ripple delay → faster and more reliable at high frequencies.

So, the main difference lies in how the clock is applied.

Asynchronous → clock cascades through outputs of previous flip-flops.
Synchronous → all flip-flops share the same clock directly.

Source: Data Communications and Networking by Behrouz A. Forouzan
২৯.
Which type of counter does not count in a natural binary sequence?
  1. Asynchronous
  2. Synchronous
  3. Ring
  4. Up
ব্যাখ্যা
♦ Natural binary sequence means counting in the order:
000, 001, 010, 011, 100, 101, 110, 111 (for 3 bits).

♦ Asynchronous counters and synchronous counters both can be designed to count in natural binary order.

♦ Up counters count forward in natural binary order.

Ring counter:
• A type of counter in which the output is a shift register with only one flip-flop set to 1 at a time and the rest 0.
• The 1 circulates around the register in a fixed pattern.

Example (4-bit ring counter sequence):
1000 → 0100 → 0010 → 0001 → 1000

Does not follow binary counting — instead, it produces a cyclic, non-binary pattern.

Source: Digital Logic & Computer Design by M. Morris Mano
৩০.
A 6-bit binary counter counts from 
  1. 0 to 63
  2. 1 to 70
  3. 1 to 66
  4. 1 to 63
ব্যাখ্যা
A binary counter with n bits can represent 2n distinct states.

For n = 6, the total number of states is:
26=64
These states range from binary 000000 (decimal 0) to binary 111111 (decimal 63).

Therefore, a 6-bit counter counts from 0 to 63.

Applications of a 6-bit counter:
• Digital clocks (seconds: 0–59, minutes: 0–59)
• Event counting
• Frequency division (by 64)
• Address sequencing in memory


Source: Data Communications and Networking by Behrouz A. Forouzan.