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

৪৯তম বিসিএস ⎯ কম্পিউটার সায়েন্স (CSE) [৯৭১]

পরীক্ষা৪৯তম বিসিএস ⎯ কম্পিউটার সায়েন্স (CSE) [৯৭১]তারিখতারিখ অনির্ধারিতসময়19 minutes
মোট প্রশ্ন২৯
সিলেবাস
Exam 2 Logic gates; Circuit design using Logic gates; Adders, Flip-flops, counters, and registers. [Source: Class–1 and relevant books]
ঘনত্ব
উত্তর
উত্তরিতবর্তমানপুনরায় দেখুনঅসম্পূর্ণ

৪৯তম বিসিএস ⎯ কম্পিউটার সায়েন্স (CSE) [৯৭১]

৪৯তম বিসিএস ⎯ কম্পিউটার সায়েন্স (CSE) [৯৭১] · তারিখ অনির্ধারিত · ২৯ প্রশ্ন

.
Which of the following gate is a Universal gate?
  1. OR
  2. NOR
  3. NOT
  4. AND
সঠিক উত্তর:
NOR
উত্তর
সঠিক উত্তর:
NOR
ব্যাখ্যা

Though there are various types of gates including AND, OR, NOT, NAND, NOR etc.. NAND and NOR gates are a little special. NAND gate and NOR gate can be termed as universal logic gates since any arbitrary Boolean function can be implemented using NAND gate or NOR gate only. 
Here AND, OR  and NOT gates are Basic Gates. 

.
XOR circuits can be constructed using 
  1. OR gates only
  2. AND, OR gates
  3. AND, NOT and OR gates
  4. AND, NOT gates
সঠিক উত্তর:
AND, NOT and OR gates
উত্তর
সঠিক উত্তর:
AND, NOT and OR gates
ব্যাখ্যা

Boolean Function of Ex-OR gate = A'B+AB'

.
What will be the Output Y=?( Here 20 Ex-Or Gates)
  1. 0
  2. X
  3. X'
  4. 1
সঠিক উত্তর:
1
উত্তর
সঠিক উত্তর:
1
ব্যাখ্যা

Output Function of Ex-OR = A'.B + A.B' (for input A and B)
Then Output of 1st Ex-OR = 1'.X + 1. X'  (for input 1 and X)
= 0 + X' = X'   (here 1' = 0)

​Output of 2nd Ex-OR = X'. X' + (X')'. X (for input X' and X)
= X' + X.X
= X' + X         
= 1 ( A' + A = 1)

​for 3rd Ex-OR input as same as First gate(1 and X) So Output of 3rd Ex-OR will be X'
Thus.. 4th Ex-OR input as same as  2nd gate(X' and X) So Output of 3rd Ex-OR will be 1

​Therefore, 
​Output value of gate of Even Numbered will be 1
Output value of gate of Odd Numbered will be X'  

​So, Output Of Y(20th Numbered) = 1

.
The expression (AB)C' + (AB')C + (A'B)C was to be realized with 2-input AND gates and  OR gates. However during realization 2-input AND gates were substituted by 2-input NAND gates . What is the finally function obtained? 
  1. 1
  2. A'+B'+C'
  3. 0
  4. ABC
সঠিক উত্তর:
1
উত্তর
সঠিক উত্তর:
1
ব্যাখ্যা

.
A full Adder circuit requires?
  1. 2 inputs, 2 outputs
  2. 3 inputs, 2 outputs
  3. 2 inputs, 3 outputs
  4. 3 inputs, 3 outputs
সঠিক উত্তর:
3 inputs, 2 outputs
উত্তর
সঠিক উত্তর:
3 inputs, 2 outputs
ব্যাখ্যা


.
Number of NAND Gates required to Realize a Half Adder circuit is?
  1. 3
  2. 4
  3. 5
  4. 6
সঠিক উত্তর:
5
উত্তর
সঠিক উত্তর:
5
ব্যাখ্যা


Here Sum= ((A.(A.B)')'. (B.(A.B)')')'
                 = (A.(A.B)')''+ (B.(A.B)')'' (Using De Morgens)
                 =A.(A.B)' + B.(A.B)' = A(A'+B') + B(A'+B')= AA'+ AB'+ BA'+BB'=AB'+A'B
Carry= (A.B)''=A.B

.
What is the output of a half adder if the inputs are A = 1 and B = 1?
  1. Sum = 0, Carry = 0
  2. Sum = 1, Carry = 0

  3. Sum = 0, Carry = 1
  4. Sum = 1, Carry = 1
সঠিক উত্তর:
Sum = 0, Carry = 1
উত্তর
সঠিক উত্তর:
Sum = 0, Carry = 1
ব্যাখ্যা

.
What will be the Sum output expression of Full Adder? Consider Cin= C
  1. A'B'C+ A'BC'+ AB'C'+ ABC
  2. A'BC+ AB'C+ ABC'+ ABC
  3. A'BC+ A'BC'+ AB'C+ ABC
  4. A'BC+ A'B'C+ ABC'+ ABC
সঠিক উত্তর:
A'B'C+ A'BC'+ AB'C'+ ABC
উত্তর
সঠিক উত্তর:
A'B'C+ A'BC'+ AB'C'+ ABC
ব্যাখ্যা


SOP for Output Sum= A'B'C+ A'BC'+ AB'C'+ ABC

.
To implement Full Adder Circuit using Half Adder, how many Half Adder Circuit is required?
  1. 1
  2. 3
  3. 2
  4. 4
সঠিক উত্তর:
2
উত্তর
সঠিক উত্তর:
2
ব্যাখ্যা



​Answer: 2

১০.
In Sequential circuits the output states depend upon?
  1. Past input states
  2. Present input states
  3. previous output states
  4. Present input and previous output states
সঠিক উত্তর:
Present input and previous output states
উত্তর
সঠিক উত্তর:
Present input and previous output states
ব্যাখ্যা

A combinational circuit produces an output based on input variables only, but a sequential circuit produces an output based on Present input and previous output states.


১১.
Which of the following is a basic memory element in sequential circuits?
  1. Encoder

  2. Flip-Flop
  3. Multiplexer
  4. Decoder 
সঠিক উত্তর:
Flip-Flop
উত্তর
সঠিক উত্তর:
Flip-Flop
ব্যাখ্যা

Flip-flops are the fundamental building blocks of memory in digital circuits. Each flip-flop stores one bit and is used in devices like registers, counters, and memory units.

১২.
What is the main function of a flip-flop?
  1. Perform arithmetic operations
  2. Increase clock speed
  3.  Convert analog signal to digital 
  4. Store a single bit of data
সঠিক উত্তর:
Store a single bit of data
উত্তর
সঠিক উত্তর:
Store a single bit of data
ব্যাখ্যা

A flip-flop is a bistable device (has two stable states: 0 and 1) and is used to store a single bit of digital information.​​​​​​​​​​​​​​​​​​​​​​​​​​​​

১৩.
In synchronous sequential circuits, state transitions occur:
  1. Randomly
  2. With delay
  3. Based on clock pulses 
  4. Without a clock
সঠিক উত্তর:
Based on clock pulses 
উত্তর
সঠিক উত্তর:
Based on clock pulses 
ব্যাখ্যা

In synchronous sequential circuits, all state transitions are controlled by a common clock signal. This synchronizes changes across all memory elements Like Flip flops.
Where asynchronous sequential circuits state transitions are controlled by enable signal like Latch.

১৪.
What happens in an SR flip-flop when both S and R inputs are 1?
  1. Output is set to 1 
  2. Output is reset to 0 
  3. Output toggles 
  4. Output is indeterminate or invalid
সঠিক উত্তর:
Output is indeterminate or invalid
উত্তর
সঠিক উত্তর:
Output is indeterminate or invalid
ব্যাখ্যা

In an SR (Set-Reset) flip-flop, when S = 1 and R = 1, both outputs Q and Q' try to go to 0, which is invalid (Q = Q'). This state is undefined or indeterminate, and is avoided in proper design.

১৫.
In a JK flip-flop, what is the output when J = 0 and K = 1? 
  1. Set 
  2. Reset
  3. Toggle 
  4. No change
সঠিক উত্তর:
Reset
উত্তর
সঠিক উত্তর:
Reset
ব্যাখ্যা

 Explanation: For JK flip-flop: J = 0, K = 1 ⇒ Reset the output (Q = 0). It behaves similarly to an SR flip-flop but without the invalid state.

১৬.
What does 'edge-triggered' mean in flip-flops? 
  1. Output changes with input
  2. Output changes at the level of clock 
  3. Output changes only at the transition (rising/falling) of clock 
  4. Output changes randomly
সঠিক উত্তর:
Output changes only at the transition (rising/falling) of clock 
উত্তর
সঠিক উত্তর:
Output changes only at the transition (rising/falling) of clock 
ব্যাখ্যা

Explanation: Edge-triggered flip-flops respond only to the transition (edge) of the clock signal — either from 0 to 1 (rising edge) or 1 to 0 (falling edge), making their behavior predictable.

১৭.
Which of the following flip-flops is best suited to eliminate the indeterminate state of an SR flip-flop? 
  1. T flip-flop 
  2. JK flip-flop 
  3. D flip-flop 
  4. Edge-triggered SR flip-flop
সঠিক উত্তর:
JK flip-flop 
উত্তর
সঠিক উত্তর:
JK flip-flop 
ব্যাখ্যা

The JK flip-flop is essentially an enhanced SR flip-flop where the undefined condition (J = 1, K = 1) is replaced with a toggle operation
solving the indeterminate issue.

SR Flip-Flop:
The SR (Set-Reset) flip-flop has two inputs: S (Set) and R (Reset).

When S = 1 and R = 0, the output is set (Q = 1).

When S = 0 and R = 1, the output is reset (Q = 0).

However, when S = 1 and R = 1, the output is indeterminate (undefined), because both outputs (Q and Q') would try to go to the same state, leading to a conflict (Q = Q').

JK Flip-Flop: Like SR flip- flop other than the JK flip-flop solves this issue by replacing the invalid condition (S = 1 and R = 1) with a toggle behavior.

১৮.
In a JK flip-flop, if both inputs are 1, what will be the next output if the current output is 0?
  1. 0
  2. 1
  3. Invalid
  4. No change 
সঠিক উত্তর:
1
উত্তর
সঠিক উত্তর:
1
ব্যাখ্যা

Explanation: If J = 1, K = 1, the JK flip-flop toggles
Current output = 0 ⇒ Next output = 1

১৯.
Which flip-flop is most suitable for data storage (registers)?
  1. T flip-flop
  2. JK flip-flop
  3. D flip-flop
  4. SR flip-flop
সঠিক উত্তর:
D flip-flop
উত্তর
সঠিক উত্তর:
D flip-flop
ব্যাখ্যা

The D flip-flop is the most suitable flip-flop for storing data, and it is commonly used in registers, counters, and memory units where data needs to be stored reliably and transferred in synchronization with a clock. 
flip-flop uses:

২০.
What is the output of a T flip-flop when T = 0? 
  1. Set 
  2. Reset
  3. Toggle 
  4. No change 
সঠিক উত্তর:
No change 
উত্তর
সঠিক উত্তর:
No change 
ব্যাখ্যা

Explanation: In a T (Toggle) flip-flop: 
T = 1 ⇒ Output toggles
T = 0 ⇒ Output remains unchanged

২১.
D- Flip flop can be made from a J-K flip-flop by Making?
  1. J=K
  2. J=K=1
  3. J=0 K=1
  4. J= K’
সঠিক উত্তর:
J= K’
উত্তর
সঠিক উত্তর:
J= K’
ব্যাখ্যা

A D flip-flop can be created from a JK flip-flop by connecting an inverter between the J and K inputs and connecting the D input to the J input. This configuration effectively forces the JK flip-flop to behave like a D flip-flop. When D is high (1), the J input becomes 1 and the K input becomes 0, setting the flip-flop. Conversely, when D is low (0), the J input becomes 0 and the K input becomes 1, resetting the flip-flop.​
​​​​​​​​​​​​​​​​​​​​​​​​​
Here,  J=D
          K=D'
SO, J=K'
         
​​​​​​​​​​​​​​​​​​​​​​​​​​

২২.
T- Flip flop can be made from a J-K flip-flop by Making?
  1. J=K
  2. J=K'
  3. J=0 ,K=1
  4. J=K=0
সঠিক উত্তর:
J=K
উত্তর
সঠিক উত্তর:
J=K
ব্যাখ্যা

T​o convert a JK flip-flop into a T flip-flop, simply connect the J and K inputs of the JK flip-flop to a single input, labeled 'T'. When T is 0, the flip-flop retains its previous state. When T is 1, the flip-flop toggles to the opposite state.


Here,
        T=J
        T=K
So,   J=K​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​

২৩.
Which flip flop is more versatile and reliable?
  1. SR
  2. D
  3. JK
  4. T
সঠিক উত্তর:
JK
উত্তর
সঠিক উত্তর:
JK
ব্যাখ্যা

JK flip-flop is a versatile and more reliable flip-flop 
No undefined state: The JK flip-flop avoids the indeterminate or invalid state that exists in the SR flip-flop when both inputs are 1.

Versatility: It can be used as a SR flip-flop, T flip-flop, or D flip-flop depending on how the inputs are connected. Specifically:

If J = S and K = R, it behaves like an SR flip-flop.

If J = 1, K = 1 for each clock pulse, it behaves like a T flip-flop (toggle mode).

If J = D and K = D' (inverted), it can be configured as a D flip-flop.

Thus, the JK flip-flop is a versatile and more reliable flip-flop 

২৪.
characteristic equation of T flip flop?
  1. Q(n+1) = TQn’ + T’Qn
  2. Q(n+1) = T'
  3. Q(n+1) = T
  4. Q(n+1) = TQn + T’Qn'
সঠিক উত্তর:
Q(n+1) = TQn’ + T’Qn
উত্তর
সঠিক উত্তর:
Q(n+1) = TQn’ + T’Qn
ব্যাখ্যা

২৫.
A register with n flip-flops can store: 
  1. n bits of data
  2. n+1 bits of data
  3. n-1 bits of data
  4. Only one bit of data
সঠিক উত্তর:
n bits of data
উত্তর
সঠিক উত্তর:
n bits of data
ব্যাখ্যা

 Each flip-flop in a register can store one bit of data. Therefore, n flip-flops can store n bits.

২৬.
What is the most common type of register used to hold 1-bit data? 
  1.  Shift register 
  2.  D flip-flop 
  3. T flip-flop
  4. JK flip-flop 
সঠিক উত্তর:
 D flip-flop 
উত্তর
সঠিক উত্তর:
 D flip-flop 
ব্যাখ্যা

Explanation: A D flip-flop is the most common building block of registers used to store 1-bit data. A register is typically a collection of D flip-flops, with each flip-flop storing one bit of data.

২৭.
A modulus-16 counter will have how many states? 
  1. 8
  2. 10
  3. 16
  4. 32
সঠিক উত্তর:
16
উত্তর
সঠিক উত্তর:
16
ব্যাখ্যা

Explanation: A mod-16 counter will count from 0 to 15 (16 states in total). The modulus of a counter represents the number of distinct states it can go through before resetting to 0.

২৮.
What type of counter increments its output by one on each clock pulse?
  1. Down counter 
  2. Up counter
  3. Modulus counter
  4. Ring counter
সঠিক উত্তর:
Up counter
উত্তর
সঠিক উত্তর:
Up counter
ব্যাখ্যা

Explanation: An Up counter increments its output by 1 on each clock pulse. 
For example, a 4-bit up counter counts from 0000 (0) to 1111 (15) in binary.

২৯.
The minimum number of flip flops required to construct a counter to count up to 200(in decimal) 
  1. 5
  2. 7
  3. 8
  4. 10
সঠিক উত্তর:
8
উত্তর
সঠিক উত্তর:
8
ব্যাখ্যা

Concept:
For an 'n' flip flop counter,
• The total number of states = 2n (0 to 2n-1)
• The largest number that can be stored in the counter = 2n-1

​To construct any mod counter, the minimum number flip flops required such that: Modulus ≤ 2 Where n is the number of counters.

​Calculation:
Number no. of flip-flops are required to construct a mod-200 counter is obtained as:
2n ≥ 200
For n = 8
28 = 256 > 200
∴ 8 flip-flops required to construct a counter to count upto 200 (decimal)