In an SR Latch, 'S' stands for Set, which sets the output Q to 1, and 'R' stands for Reset, which resets the output Q to 0.
Incorrect! Try again.
2What is the primary function of a latch in a digital circuit?
Latch (SR and D)
Easy
A.To amplify a signal
B.To generate a clock signal
C.To store one bit of data
D.To perform arithmetic operations
Correct Answer: To store one bit of data
Explanation:
A latch is a basic memory element that can store a single bit (1 or 0) of information. It holds this value until it is changed by the inputs.
Incorrect! Try again.
3In a basic SR latch made from NOR gates, which input condition is considered invalid or forbidden?
Latch (SR and D)
Easy
A.S = 1, R = 0
B.S = 1, R = 1
C.S = 0, R = 1
D.S = 0, R = 0
Correct Answer: S = 1, R = 1
Explanation:
The condition S=1, R=1 in a NOR-based SR latch forces both outputs (Q and Q') to 0, which violates the fundamental rule that Q and Q' must be complementary. This leads to an unpredictable state when the inputs return to 0.
Incorrect! Try again.
4A D Latch is also known as a __ latch.
Latch (SR and D)
Easy
A.Transistor
B.Transparent
C.Timing
D.Toggle
Correct Answer: Transparent
Explanation:
A D Latch is called a transparent latch because when its enable input is active, the output (Q) follows the input (D) as if it were a simple wire, making the latch 'transparent'.
Incorrect! Try again.
5What is the key feature that distinguishes a flip-flop from a latch?
Flip-Flop (SR, JK, D and T)
Easy
A.The number of inputs
B.A clock or triggering input
C.The use of NAND gates
D.The ability to store data
Correct Answer: A clock or triggering input
Explanation:
The main difference is that a flip-flop is a clocked, edge-triggered device, meaning its output changes only at a specific point on the clock signal (rising or falling edge). A latch is level-sensitive.
Incorrect! Try again.
6Which flip-flop eliminates the invalid state problem found in the SR flip-flop?
Flip-Flop (SR, JK, D and T)
Easy
A.D flip-flop
B.T flip-flop
C.A basic latch
D.JK flip-flop
Correct Answer: JK flip-flop
Explanation:
The JK flip-flop is an improvement over the SR flip-flop because it defines the input condition J=1, K=1 as the 'toggle' state, thus eliminating the ambiguous or invalid state.
Incorrect! Try again.
7What is the 'toggle' condition for a JK flip-flop?
Flip-Flop (SR, JK, D and T)
Easy
A.J = 0, K = 0
B.J = 1, K = 0
C.J = 0, K = 1
D.J = 1, K = 1
Correct Answer: J = 1, K = 1
Explanation:
When both inputs J and K are high (1), the output of the JK flip-flop toggles, meaning it flips to the opposite of its current state on the next active clock edge.
Incorrect! Try again.
8What does the 'T' in a T flip-flop stand for?
Flip-Flop (SR, JK, D and T)
Easy
A.Toggle
B.Time
C.Trigger
D.Transparent
Correct Answer: Toggle
Explanation:
The 'T' in T flip-flop stands for Toggle. Its primary function is to change its output state (toggle) when the T input is high and a clock pulse occurs.
Incorrect! Try again.
9If the input T=0 for a T flip-flop, what will be the next state () after a clock pulse?
Flip-Flop (SR, JK, D and T)
Easy
A.It will be reset to 0
B.It will be set to 1
C.It will toggle ()
D.It will hold the previous state ()
Correct Answer: It will hold the previous state ()
Explanation:
When T=0, the T flip-flop is in the 'no change' or 'hold' mode. The output Q remains the same as it was before the clock pulse.
Incorrect! Try again.
10Which flip-flop is most suitable for simply delaying an input signal by one clock cycle?
Flip-Flop (SR, JK, D and T)
Easy
A.JK flip-flop
B.T flip-flop
C.D flip-flop
D.SR flip-flop
Correct Answer: D flip-flop
Explanation:
A D (Data) flip-flop is designed to capture the value on its D input at the clock edge and hold that value at its output Q until the next clock edge. This makes it ideal for data storage and creating delays.
Incorrect! Try again.
11What is the primary purpose of using a master-slave configuration in a flip-flop?
Master-Slave flip-flop
Easy
A.To avoid the race-around condition
B.To increase the storage capacity
C.To reduce power consumption
D.To simplify the circuit design
Correct Answer: To avoid the race-around condition
Explanation:
The master-slave configuration isolates the input from the output, preventing a situation where the output changes multiple times within a single clock pulse (race-around condition), which can occur in level-triggered JK flip-flops.
Incorrect! Try again.
12A master-slave flip-flop is essentially built by connecting two __ in series.
Master-Slave flip-flop
Easy
A.Inverters
B.Multiplexers
C.Adders
D.Latches or flip-flops
Correct Answer: Latches or flip-flops
Explanation:
The master-slave architecture consists of two cascaded stages: the 'master' latch/flip-flop and the 'slave' latch/flip-flop, with opposite clock polarities to ensure proper operation.
Incorrect! Try again.
13In a master-slave flip-flop, when does the 'slave' latch update its state?
Master-Slave flip-flop
Easy
A.When the clock signal makes a transition (e.g., from high to low)
B.When the power is turned on
C.When the clock signal is constantly low
D.When the clock signal is constantly high
Correct Answer: When the clock signal makes a transition (e.g., from high to low)
Explanation:
The master accepts input when the clock is at one level (e.g., high), and the slave updates its output to match the master's output when the clock transitions to the other level (e.g., low). This makes it an edge-triggered device.
Incorrect! Try again.
14In a positive level-triggered master-slave flip-flop, the 'master' latch is enabled when the clock is __.
Master-Slave flip-flop
Easy
A.Low (0)
B.High (1)
C.Falling
D.Rising
Correct Answer: High (1)
Explanation:
The master section is typically a level-triggered latch. In a positive level-triggered design, the master is active and accepts new input data when the clock level is high.
Incorrect! Try again.
15To convert a JK flip-flop into a T flip-flop, what should be done with the J and K inputs?
Conversion of basic flip-flop
Easy
A.Leave K unconnected
B.Connect J to Vcc and K to Ground
C.Connect J and K inputs together to form the T input
D.Connect an inverter between J and K
Correct Answer: Connect J and K inputs together to form the T input
Explanation:
When J and K are tied together, the JK flip-flop has two states: J=K=0 (Hold) and J=K=1 (Toggle). This exactly mimics the behavior of a T flip-flop, where T=0 is hold and T=1 is toggle.
Incorrect! Try again.
16How can an SR flip-flop be converted to a D flip-flop?
Conversion of basic flip-flop
Easy
A.Connect S to ground, and R to D
B.Connect S to D, and R to an inverted D
C.Connect S to D, and R to ground
D.Connect both S and R to D
Correct Answer: Connect S to D, and R to an inverted D
Explanation:
To make an SR flip-flop behave like a D flip-flop, we must ensure S and R are never 1 at the same time. By setting S = D and R = D', if D=1, S=1 and R=0 (Set). If D=0, S=0 and R=1 (Reset). This matches the behavior of a D flip-flop.
Incorrect! Try again.
17Sequential circuits are circuits whose outputs depend on:
Flip-Flop (SR, JK, D and T)
Easy
A.Present inputs and past outputs
B.Only the clock signal
C.Only the present inputs
D.Only the power supply voltage
Correct Answer: Present inputs and past outputs
Explanation:
Sequential circuits have memory elements (like latches and flip-flops) that store the circuit's state. Therefore, the next output is a function of not only the current inputs but also the previously stored state (past outputs).
Incorrect! Try again.
18What is the characteristic equation for a D flip-flop?
Flip-Flop (SR, JK, D and T)
Easy
A.
B.
C.
D.
Correct Answer:
Explanation:
The characteristic equation simply means that the next state of the flip-flop's output (Q) will be equal to the value of the input (D) after the active clock edge.
Incorrect! Try again.
19To make a JK flip-flop always toggle its output on every clock pulse, the inputs should be:
Conversion of basic flip-flop
Easy
A.J = 1, K = 1
B.J = 0, K = 0
C.J = 0, K = 1
D.J = 1, K = 0
Correct Answer: J = 1, K = 1
Explanation:
The toggle mode of a JK flip-flop is activated when both J and K inputs are held high (1). This configuration is essentially how a T flip-flop is created with T held permanently high.
Incorrect! Try again.
20What is the purpose of the 'Enable' input on a gated SR latch?
Latch (SR and D)
Easy
A.To provide power to the latch
B.To reset the latch to 0
C.To control when the S and R inputs are active
D.To set the latch to 1
Correct Answer: To control when the S and R inputs are active
Explanation:
The 'Enable' input acts like a switch. The latch only responds to the S and R inputs when the Enable signal is active (e.g., high). When it is inactive, the latch holds its current state regardless of S and R.
Incorrect! Try again.
21In a NAND gate-based SR latch, if both S and R inputs are simultaneously set to 0 (the active-low condition), what will be the state of the outputs Q and ?
Latch (SR and D)
Medium
A.The latch will toggle its state.
B.Both Q and will be 1.
C.The latch will hold its previous state.
D.Both Q and will be 0.
Correct Answer: Both Q and will be 1.
Explanation:
For a NAND latch, S=0 and R=0 is the forbidden or invalid state. In this state, both NAND gates will output 1, because any input being 0 to a NAND gate results in a 1 output. This violates the fundamental property of a latch where Q and must be complements.
Incorrect! Try again.
22A gated D latch is considered 'transparent'. If the enable (E) input is HIGH, and the D input changes from 0 to 1 and then back to 0 while E is still HIGH, what will the output Q be right before E goes LOW?
Latch (SR and D)
Medium
A.Q will retain the value it had before E went HIGH.
B.Q will be 0.
C.Q will be in an undefined state.
D.Q will be 1.
Correct Answer: Q will be 0.
Explanation:
The term 'transparent' means that as long as the enable input is active (HIGH), the output Q follows the input D. Since the last value of D before the enable signal went LOW was 0, the output Q will be 0. The latch will then hold this 0 value after E goes LOW.
Incorrect! Try again.
23Which of the following conditions in an SR flip-flop is referred to as the 'race' or 'invalid' condition, which the JK flip-flop is designed to eliminate?
Flip-Flop (SR, JK, D and T)
Medium
A.S=1, R=0
B.S=0, R=1
C.S=1, R=1
D.S=0, R=0
Correct Answer: S=1, R=1
Explanation:
In an SR flip-flop, the input condition S=1 and R=1 is forbidden because it leads to an unpredictable or invalid output state where Q and might not be complementary. The JK flip-flop resolves this by defining the J=1, K=1 condition as the 'toggle' state.
Incorrect! Try again.
24A positive edge-triggered D flip-flop has a clock input with a frequency of 10 MHz. The D input is held HIGH. What is the frequency of the signal at the Q output?
Flip-Flop (SR, JK, D and T)
Medium
A.10 MHz
B.20 MHz
C.5 MHz
D.0 Hz (DC level)
Correct Answer: 0 Hz (DC level)
Explanation:
A D flip-flop passes the value of the D input to the Q output on the triggering clock edge. If D is held constant at HIGH (1), then on every positive clock edge, Q will be set to 1. Since Q never changes after the first clock edge, it remains at a constant HIGH level, which corresponds to a frequency of 0 Hz.
Incorrect! Try again.
25To build a frequency divider that divides the input clock frequency by 8, what is the minimum number of T flip-flops required?
Flip-Flop (SR, JK, D and T)
Medium
A.8
B.2
C.3
D.4
Correct Answer: 3
Explanation:
A single T flip-flop, with its T input held HIGH, divides the clock frequency by 2. To divide by a factor of , N flip-flops are needed. To divide by 8, which is , we need a minimum of 3 T flip-flops connected in cascade.
Incorrect! Try again.
26A JK flip-flop is initially reset (Q=0). What is the sequence of Q for the first four clock pulses if J=1 and K=1 for all pulses?
Flip-Flop (SR, JK, D and T)
Medium
A.0, 0, 0, 0
B.0, 1, 0, 1
C.1, 0, 1, 0
D.1, 1, 1, 1
Correct Answer: 1, 0, 1, 0
Explanation:
The condition J=1, K=1 puts the JK flip-flop in toggle mode. The output Q will invert its state on each active clock edge. Starting with Q=0: After 1st pulse, Q becomes 1. After 2nd pulse, Q becomes 0. After 3rd pulse, Q becomes 1. After 4th pulse, Q becomes 0. The sequence is 1, 0, 1, 0.
Incorrect! Try again.
27What is the primary purpose of a Master-Slave flip-flop configuration?
Master-Slave flip-flop
Medium
A.To double the storage capacity of a single flip-flop.
B.To create a latch with a clock input.
C.To eliminate the race-around condition.
D.To reduce the power consumption of the circuit.
Correct Answer: To eliminate the race-around condition.
Explanation:
The race-around condition occurs in level-triggered JK flip-flops when J=1, K=1, and the clock pulse width is longer than the propagation delay. The output may toggle multiple times during a single clock pulse. The Master-Slave configuration ensures that the output changes only once per clock cycle by isolating the input (master) from the output (slave).
Incorrect! Try again.
28To convert a D flip-flop into a T flip-flop, what logic should be applied to the D input?
Conversion of basic flip-flop
Medium
A.D = T Q
B.D = TQ
C.D = T + Q
D.D = T
Correct Answer: D = T Q
Explanation:
The characteristic equation for a T flip-flop is . The characteristic equation for a D flip-flop is . To make the D flip-flop behave like a T flip-flop, we must set its D input such that of the T flip-flop. Therefore, we must connect the input D to the output of an XOR gate with inputs T and the flip-flop's current state Q, i.e., .
Incorrect! Try again.
29In a Master-Slave JK flip-flop that triggers on the negative edge of the clock, when does the slave latch update its state?
Master-Slave flip-flop
Medium
A.When the clock signal goes from HIGH to LOW.
B.When the clock signal is HIGH.
C.When the clock signal goes from LOW to HIGH.
D.When the clock signal is LOW.
Correct Answer: When the clock signal goes from HIGH to LOW.
Explanation:
In a negative edge-triggered Master-Slave flip-flop, the master latch is active and samples the J and K inputs when the clock is HIGH. The slave latch is isolated during this time. When the clock transitions from HIGH to LOW (the negative edge), the master is disabled and its state is transferred to the slave latch, which then updates the final Q and outputs.
Incorrect! Try again.
30The 'race-around' condition in a JK flip-flop occurs when:
Flip-Flop (SR, JK, D and T)
Medium
A.J=1, K=1 and the clock pulse width is greater than the propagation delay.
B.J=1, K=0 and the clock is too fast.
C.J=1, K=1 and an edge-triggered clock is used.
D.J=0, K=0 and the clock is stuck at a HIGH level.
Correct Answer: J=1, K=1 and the clock pulse width is greater than the propagation delay.
Explanation:
The race-around condition is specific to level-triggered JK flip-flops. When J=K=1 (toggle mode) and the clock is active (e.g., HIGH), the output Q toggles. If the clock remains active for longer than the flip-flop's propagation delay, the newly changed output is fed back to the input, causing another toggle. This oscillation continues until the clock becomes inactive, leading to an unpredictable final state.
Incorrect! Try again.
31How can a JK flip-flop be configured to function as a D flip-flop?
Conversion of basic flip-flop
Medium
A.Set J = D and K =
B.Tie J and K together to the D input
C.Set J = 1 and K = D
D.Set J = D and K = 1
Correct Answer: Set J = D and K =
Explanation:
We want the next state to be equal to D. The JK flip-flop's characteristic equation is . If we substitute J=D and K=, we get . Thus, the flip-flop's next state equals the D input.
Incorrect! Try again.
32Consider a negative edge-triggered T flip-flop with T input tied to HIGH. If the input clock is a square wave of 50 kHz, what is the duty cycle of the output Q waveform?
Flip-Flop (SR, JK, D and T)
Medium
A.75%
B.25%
C.50%
D.100%
Correct Answer: 50%
Explanation:
A T flip-flop with T=1 toggles its output on every active clock edge. If the input clock is a symmetrical square wave, the flip-flop will change state on every negative edge. This results in an output square wave with exactly half the frequency and a 50% duty cycle, regardless of the input's duty cycle.
Incorrect! Try again.
33What is the key difference between a latch and a flip-flop?
Latch (SR and D)
Medium
A.Latches have two inputs, while flip-flops have three.
B.Latches are faster than flip-flops.
C.Latches are level-triggered, while flip-flops are edge-triggered.
D.Latches are used for counting, while flip-flops are for storage.
Correct Answer: Latches are level-triggered, while flip-flops are edge-triggered.
Explanation:
The fundamental distinction lies in their triggering mechanism. A latch is sensitive to the level of its control signal (e.g., enable). As long as the enable is active, the latch output can change with the inputs. A flip-flop is sensitive to the transition, or edge, of its control signal (the clock). It changes its output only at the moment the clock signal changes (e.g., from LOW to HIGH).
Incorrect! Try again.
34To implement a T flip-flop using an SR flip-flop, the inputs S and R must be driven by:
Conversion of basic flip-flop
Medium
A.S = T and R = TQ
B.S = TQ and R = T
C.S = T and R = T
D.S = T Q and R = T
Correct Answer: S = T and R = TQ
Explanation:
We need to derive the logic from the excitation tables. For a T flip-flop, if T=0, it holds state (S=0, R=0). If T=1, it toggles. If Q=0 and toggle is needed, Q must become 1 (Set, S=1, R=0). If Q=1 and toggle is needed, Q must become 0 (Reset, S=0, R=1). This behavior is achieved with S = T and R = TQ.
Incorrect! Try again.
35Consider a Master-Slave JK flip-flop. If the J and K inputs change while the clock is in its active level (e.g., HIGH for a negative edge-triggered FF), what happens?
Master-Slave flip-flop
Medium
A.The master latch will update to the latest J and K values before the clock edge.
B.The final output Q will change immediately.
C.The slave latch will update immediately.
D.The inputs are ignored until the next clock cycle.
Correct Answer: The master latch will update to the latest J and K values before the clock edge.
Explanation:
The master part of the flip-flop is level-sensitive. While the clock is HIGH (in a negative-edge triggered setup), the master is active and continuously samples the J and K inputs. It will hold the state corresponding to the values of J and K that were present just before the clock's falling edge. This final state of the master is then transferred to the slave on the falling edge.
Incorrect! Try again.
36A 4-bit synchronous binary counter is built using JK flip-flops. If all J and K inputs are tied to logic HIGH, what is the primary function of this circuit?
Flip-Flop (SR, JK, D and T)
Medium
A.It functions as a 4-bit shift register.
B.It acts as a ripple counter (asynchronous).
C.The output will be stuck at 1111.
D.It acts as a synchronous counter.
Correct Answer: It acts as a synchronous counter.
Explanation:
Tying J and K inputs to HIGH configures each flip-flop to be in toggle mode. In a synchronous counter, all flip-flops are triggered by the same clock signal. The combinational logic between them determines which flip-flops toggle on a given clock pulse. The question implies a counter structure, and with J=K=1, it will indeed count synchronously. A ripple counter would have the output of one flip-flop clocking the next.
Incorrect! Try again.
37You need to build a JK flip-flop from a T flip-flop. What should be the expression for the T input?
Conversion of basic flip-flop
Medium
A.T = J + KQ
B.T = J + K
C.T = JK
D.T = JQ + K
Correct Answer: T = J + KQ
Explanation:
The goal is to make the T flip-flop's next state () match the JK flip-flop's next state (). We need to find the T input that causes a toggle when the JK would toggle. A toggle occurs when . This happens for JK when (J=1, Q=0) or (K=1, Q=1). Therefore, the T input should be HIGH for these conditions. This gives the expression T = J + KQ.
Incorrect! Try again.
38What is the main advantage of an edge-triggered D flip-flop over a gated D latch?
Flip-Flop (SR, JK, D and T)
Medium
A.It can store both analog and digital signals.
B.The output is synchronized to a clock edge, preventing transparency issues.
C.It consumes less power.
D.It has a smaller circuit size.
Correct Answer: The output is synchronized to a clock edge, preventing transparency issues.
Explanation:
A gated D latch is transparent; its output changes whenever the input changes as long as the gate is enabled. This can cause timing problems in synchronous systems. An edge-triggered D flip-flop only samples the input and changes its output at the precise moment of a clock edge, ensuring that all state changes in a system happen simultaneously and predictably.
Incorrect! Try again.
39The phenomenon of '1s catching' in a Master-Slave SR or JK flip-flop refers to a situation where:
Master-Slave flip-flop
Medium
A.The flip-flop can only store a logic 1 but not a logic 0.
B.If an input (S or J) momentarily goes to 1 while the clock is active, the master will 'catch' this 1 even if the input returns to 0 before the clock edge.
C.The slave latch catches the master's state too quickly, causing a race condition.
D.The output Q gets stuck at 1 permanently.
Correct Answer: If an input (S or J) momentarily goes to 1 while the clock is active, the master will 'catch' this 1 even if the input returns to 0 before the clock edge.
Explanation:
Because the master latch is level-sensitive, any momentary pulse to '1' on the S or J input while the clock is active can set the master latch. Even if the input goes back to 0, the master remains set. This 'caught' 1 is then transferred to the slave on the clock edge, which can be an unintended behavior. This is a disadvantage compared to pure edge-triggered flip-flops.
Incorrect! Try again.
40A JK flip-flop has its J input connected to Q and its K input connected to . How will this flip-flop behave on each clock pulse?
Flip-Flop (SR, JK, D and T)
Medium
A.It will hold its current state.
B.It will always be reset to Q=0.
C.It will toggle its state.
D.It will always be set to Q=1.
Correct Answer: It will hold its current state.
Explanation:
Let's analyze the two possible states. If the current state Q=0, then =1. The inputs to the flip-flop are J=0 and K=1. This is the reset condition, so the next state will be Q=0. If the current state Q=1, then =0. The inputs are J=1 and K=0. This is the set condition, so the next state will be Q=1. In both cases, the output does not change (), so the flip-flop holds its state.
Incorrect! Try again.
41Consider an SR latch built with two cross-coupled NOR gates, each with a propagation delay of . If both S and R inputs are pulsed from 0 to 1 simultaneously for a duration of , where , and then returned to 0, what will be the final state of the latch (, )?
Latch (SR and D)
Hard
A.The latch will enter a metastable state.
B.The latch will remain in its previous state.
C.The latch will settle to a random but valid state (either 01 or 10).
D.The latch will enter the invalid state () and stay there.
Correct Answer: The latch will remain in its previous state.
Explanation:
The pulse duration is shorter than the propagation delay . This means the output of the NOR gates will not have enough time to change and propagate through the feedback loop before the inputs S and R return to 0. The latch effectively ignores these short pulses and remains in its previous state. The condition is not held long enough to force the outputs low.
Incorrect! Try again.
42A JK flip-flop has its J and K inputs tied to logic HIGH. It is clocked by a signal with a 60% duty cycle. If the output of this flip-flop is used to clock a second identical JK flip-flop (also in toggle mode and triggered on the same edge type), what is the duty cycle of the output of the second flip-flop?
Flip-Flop (SR, JK, D and T)
Hard
A.30%
B.60%
C.25%
D.50%
Correct Answer: 50%
Explanation:
The first JK flip-flop acts as a toggle flip-flop (T flip-flop with T=1), functioning as a frequency divider. A key property of this operation is that its output waveform () will have a perfect 50% duty cycle, regardless of the duty cycle of the input clock. This is because it changes state only on one type of clock edge (e.g., rising edge). The second flip-flop is clocked by this 50% duty cycle signal, and since it also divides the frequency by two, its output will also have a 50% duty cycle.
Incorrect! Try again.
43To convert a D flip-flop into a JK flip-flop, the D input must be driven by a combinational circuit with inputs J, K, and the current state . What is the minimal Sum-of-Products (SOP) expression for D?
Conversion of basic flip-flop
Hard
A.
B.
C.
D.
Correct Answer:
Explanation:
The characteristic equation for a D flip-flop is . The characteristic equation for a JK flip-flop is . To make the D flip-flop behave like a JK flip-flop, we must set its input D equal to the desired next state of the JK flip-flop. Therefore, we set of the JK flip-flop. This gives the required excitation logic expression .
Incorrect! Try again.
44In a Master-Slave JK flip-flop (master active-high), the inputs are J=1, K=1, and Q is initially 0. If a very narrow positive glitch appears on the J input while the clock is HIGH, just before the clock goes low, what will be the output Q after the clock pulse completes?
Master-Slave flip-flop
Hard
A.Q will remain 0.
B.Q will become 1.
C.The output will be unpredictable (metastable).
D.Q will toggle twice within the clock pulse.
Correct Answer: Q will become 1.
Explanation:
This demonstrates the '1s catching' property of a master-slave flip-flop. While the clock is HIGH, the master latch is transparent. Initially, with J=K=1, the master's state is set to toggle (it will go to 1). The glitch on J has no effect as J is already 1. When the clock goes LOW, the slave latch copies the master's state (which is 1), so Q becomes 1. The key is that the master captures the J=1, K=1 condition while the clock is high, and this state is transferred to the slave on the falling edge.
Incorrect! Try again.
45A positive edge-triggered T flip-flop has its T input connected to the output of an XNOR gate. The inputs to the XNOR gate are an external signal X and the flip-flop's own output Q. If the flip-flop is initialized to Q=0, what is the state of Q after three clock pulses for the input sequence X = 1, 0, 1?
Flip-Flop (SR, JK, D and T)
Hard
A.It toggles between 0 and 1 on each pulse.
B.It remains at 1.
C.1
D.0
Correct Answer: 0
Explanation:
The T input is given by . The next state of the T flip-flop is . Let's trace the states:
Initial State: .
After 1st clock pulse (X=1): Current Q is 0. . Since T=0, the flip-flop holds its state. .
After 2nd clock pulse (X=0): Current Q is 0. . Since T=1, the flip-flop toggles. .
After 3rd clock pulse (X=1): Current Q is 1. . Since T=1, the flip-flop toggles. .
The final state of Q after three pulses is 0.
Incorrect! Try again.
46A transparent D latch has a setup time of ns, a hold time of ns, and a propagation delay from Enable to Q of ns. The Enable signal goes from high to low at ns. To ensure correct operation, during which time interval must the D input be stable?
Latch (SR and D)
Hard
A.From ns to ns
B.From ns to ns
C.From ns to ns
D.From ns to ns
Correct Answer: From ns to ns
Explanation:
A D latch samples the input D when the Enable signal goes from high to low (the latching edge). The setup time () is the minimum time the data must be stable before the latching edge. The hold time () is the minimum time the data must be stable after the latching edge.
Latching edge occurs at ns.
Data must be stable for ns before the edge, so it must be stable from ns.
Data must be stable for ns after the edge, so it must be stable until ns.
Therefore, the D input must be stable in the interval from ns to ns. The propagation delay is irrelevant for determining the required stability interval of the input D.
Incorrect! Try again.
47When converting an SR flip-flop to a T flip-flop, the inputs S and R are driven by combinational logic using T and the current state Q as inputs. Which of the following logic assignments for S and R correctly implements the conversion?
Conversion of basic flip-flop
Hard
A.,
B.,
C.,
D.,
Correct Answer: ,
Explanation:
We use the excitation table of the SR flip-flop to match the characteristic table of the T flip-flop. The T flip-flop should hold () when T=0 and toggle () when T=1.
When T=0, we need to hold state. For SR, this is S=0, R=0.
When T=1 and Q=0, we need to set (Q becomes 1). For SR, this is S=1, R=0.
When T=1 and Q=1, we need to reset (Q becomes 0). For SR, this is S=0, R=1.
From this, we can derive the logic functions for S and R in terms of T and Q. Using a K-map or Boolean algebra, we find that and .
Incorrect! Try again.
48The race-around condition in a level-triggered JK flip-flop occurs when , , and the clock pulse width () is greater than the propagation delay () of the flip-flop. How does a master-slave configuration fundamentally prevent this issue?
Master-Slave flip-flop
Hard
A.It changes the state on the clock edge, effectively making the pulse width irrelevant.
B.It completely decouples the input from the output during the entire clock cycle.
C.It uses a clock with a very short pulse width.
D.It decouples the external inputs from the slave latch while the slave's output is changing.
Correct Answer: It decouples the external inputs from the slave latch while the slave's output is changing.
Explanation:
In a master-slave flip-flop, the master latch is active (e.g., clock HIGH), and the slave is inactive. The output of the entire flip-flop comes from the slave. When the clock becomes inactive (e.g., clock LOW), the master is disabled (frozen), and the slave becomes active, copying the master's state. Crucially, while the slave is updating its output, the master is disabled and cannot see this change. This breaks the feedback loop from the final output back to the input stage during the output transition, which is the root cause of the race-around condition.
Incorrect! Try again.
49Three D flip-flops () are connected such that , , and . The flip-flops are positive edge-triggered. If the initial state of the register is () = 101, what is the state after 3 clock pulses?
Flip-Flop (SR, JK, D and T)
Hard
A.101
B.110
C.011
D.010
Correct Answer: 101
Explanation:
Let's trace the state transitions. The next state is determined by the current state: , , .
Initial State: () = 101
After 1st Pulse: New state will be () = (1, 1, 0) -> 110
After 2nd Pulse: New state will be () from 110 -> (0, 1, 1) -> 011
After 3rd Pulse: New state will be () from 011 -> (1, 0, 1) -> 101
The state returns to the initial state after 3 clock pulses. This configuration creates a state cycle of length 3: 101 -> 110 -> 011 -> 101.
Incorrect! Try again.
50You are asked to convert a D flip-flop into an SR flip-flop. The conversion requires combinational logic for the D input as a function of S, R, and Q. What is a critical problem with this conversion?
Conversion of basic flip-flop
Hard
A.The logic for D becomes excessively complex.
B.The invalid state (S=1, R=1) of the SR flip-flop cannot be implemented deterministically.
C.The hold time of the D flip-flop cannot be met.
D.The propagation delay of the resulting circuit is too high.
Correct Answer: The invalid state (S=1, R=1) of the SR flip-flop cannot be implemented deterministically.
Explanation:
The state S=1, R=1 is invalid for a standard SR flip-flop, meaning its next state is undefined or unpredictable. A D flip-flop, however, always produces a defined next state (). There is no way to map the S=1, R=1 input condition to a single value of D that replicates this undefined behavior. Any choice for D when S=R=1 (e.g., setting D=1 for a set-dominant flip-flop) is an implementation decision that changes the fundamental nature of the SR flip-flop, not a direct conversion.
Incorrect! Try again.
51An edge-triggered SR flip-flop has a propagation delay of 10 ns. The clock is a 50 MHz square wave. S is held HIGH and R is held LOW. If Q is initially 0, at what time will Q first become stable at logic 1, assuming the first rising clock edge is at t=0?
Flip-Flop (SR, JK, D and T)
Hard
A.20 ns
B.30 ns
C.10 ns
D.50 ns
Correct Answer: 10 ns
Explanation:
The clock frequency is 50 MHz, so the clock period is ns. The rising edges of the clock occur at ns. The inputs S=1, R=0 correspond to the SET condition. The flip-flop is edge-triggered, so it will respond to the inputs at the first rising clock edge, which occurs at . The propagation delay is the time it takes for the output to change after the active clock edge. Therefore, the output Q will transition from 0 to 1 and become stable at ns.
Incorrect! Try again.
52A switch debouncing circuit is built using an SR latch made from NAND gates (active-low inputs S' and R'). The switch connects a pull-up resistor to either the S' input (position A) or the R' input (position B). Initially, the switch is at position A, making S'=0, R'=1, so Q=1. The switch is moved to B, but it bounces, making contact with B, then A, then B again before settling. What is the final state of Q?
Latch (SR and D)
Hard
A.1
B.Metastable
C.0
D.Toggles rapidly
Correct Answer: 0
Explanation:
This circuit uses an S'R' latch.
Initial State (at A): S'=0, R'=1 -> Set state -> Q=1.
Move to B (first contact): R'=0, S'=1 -> Reset state -> Q=0.
Bounce back to A: S'=0, R'=1 -> Set state -> Q=1.
Settle at B (final contact): R'=0, S'=1 -> Reset state -> Q=0.
The SR latch effectively filters the bounces by holding its state until an opposite command is received. The final state is determined by the last contact made, which is at position B, resulting in a final state of Q=0.
Incorrect! Try again.
53A signal with frequency is applied to the clock input of a JK flip-flop. The J input is connected to Q' and the K input is connected to Q. What is the frequency of the signal at the Q output?
Flip-Flop (SR, JK, D and T)
Hard
A.The output is stuck at a constant level.
B.
C.
D.
Correct Answer:
Explanation:
Let's analyze the next state equation for this configuration: . We are given and . Substituting these into the equation gives: . The next state is always the inverse of the current state, . This is the definition of a toggle operation. The flip-flop toggles its state on every active clock edge, which means it acts as a frequency divider by 2. Therefore, the output frequency is .
Incorrect! Try again.
54A master-slave D flip-flop (master active high, slave active low) has Q=0. The D input has been 0 for a long time. At the rising edge of the clock, D changes from 0 to 1. This change occurs exactly at the rising edge, violating the setup time. What is the most likely output of Q after one full clock cycle?
Master-Slave flip-flop
Hard
A.Q will definitely remain 0.
B.Q will toggle to 1 and then back to 0 within the same cycle.
C.Q will definitely become 1.
D.Q will enter a metastable state.
Correct Answer: Q will enter a metastable state.
Explanation:
Setup time is the minimum time the data input must be stable before the active clock edge. By changing D exactly on the edge, this requirement is violated. The master latch, which samples the data on the rising edge, does not have a stable input to read. Its internal nodes may not settle to a valid logic level (0 or 1) before it is disabled by the clock going low. This unresolved state is called metastability. The slave latch will then copy this metastable state, causing the final output Q to also be metastable for an indeterminate amount of time before eventually settling to a random 0 or 1.
Incorrect! Try again.
55A T flip-flop is converted from a positive edge-triggered D flip-flop using the logic . If, due to gate delays in the XOR gate, the D input experiences a brief glitch just after a clock edge, what is the potential consequence?
Conversion of basic flip-flop
Hard
A.The flip-flop may capture the glitch if it violates the hold time requirement.
B.The output frequency will be doubled.
C.The flip-flop will enter a metastable state.
D.No consequence, as the D flip-flop only samples at the clock edge.
Correct Answer: The flip-flop may capture the glitch if it violates the hold time requirement.
Explanation:
An edge-triggered D flip-flop samples its D input at the active clock edge, but it also requires the input to remain stable for a short period after the edge, known as the hold time (). The conversion logic means that when Q changes after a propagation delay from the clock edge, the D input will also change. If this change propagates through the XOR gate and reaches the D input before the hold time has elapsed, the flip-flop's internal latch may capture an incorrect or intermediate value, leading to erroneous operation.
Incorrect! Try again.
56To convert a T flip-flop to a D flip-flop, what combinational logic must be used for the T input, as a function of the desired input D and the current state Q?
Conversion of basic flip-flop
Hard
A.
B.
C.
D.
Correct Answer:
Explanation:
We want the T flip-flop to behave like a D flip-flop. The characteristic equation of a D flip-flop is . The characteristic equation of a T flip-flop is . To make them equivalent, we must have: . To find the required logic for T, we can XOR both sides with : , which simplifies to . This logic ensures the T flip-flop toggles () only when the current state Q is different from the desired next state D, and holds () when they are the same, effectively loading D into Q.
Incorrect! Try again.
57A positive edge-triggered JK flip-flop has active-low asynchronous PRESET' and CLEAR' inputs. The flip-flop is in the state Q=0. The inputs are J=1, K=1. A clock pulse arrives. Simultaneously with the rising edge of the clock, the CLEAR' input is pulsed low for a short duration. What is the final state of Q?
Flip-Flop (SR, JK, D and T)
Hard
A.Q toggles to 1 and is then immediately cleared to 0.
B.The state is unpredictable due to the conflict.
C.Q remains 0 because the CLEAR' pulse overrides the clock.
D.Q becomes 1 because of the toggle command.
Correct Answer: Q remains 0 because the CLEAR' pulse overrides the clock.
Explanation:
Asynchronous inputs like PRESET' and CLEAR' act independently of the clock and immediately override any synchronous operations. When CLEAR' is asserted (goes low), it forces the output Q to 0, regardless of what the J, K, and clock inputs are doing. Even though the clock edge arrives with a toggle command (J=K=1), the asynchronous CLEAR' signal takes precedence. Since the flip-flop was already at Q=0 and the CLEAR' pulse forces it to Q=0, the final state will be Q=0. The asynchronous input has ultimate control.
Incorrect! Try again.
58Two negative edge-triggered T flip-flops, FF0 (LSB) and FF1 (MSB), form a 2-bit synchronous counter. The clock is connected to both flip-flops. The input is always 1. The input is connected to an external control signal ENABLE ANDed with the output . If the counter starts at () = 00 and ENABLE is held high, what is the state of the counter after 5 clock pulses?
Flip-Flop (SR, JK, D and T)
Hard
A.11
B.10
C.01
D.00
Correct Answer: 01
Explanation:
This describes a 2-bit synchronous counter. Since ENABLE is high, the logic is and . FF0 toggles on every clock pulse. FF1 toggles only when its input is high. Let's trace the sequence from state () = 00:
Pulse 1 (negedge): was 0. toggles to 1. holds at 0. State: 01.
Pulse 2 (negedge): was 1. toggles to 0. toggles to 1. State: 10.
Pulse 3 (negedge): was 0. toggles to 1. holds at 1. State: 11.
Pulse 4 (negedge): was 1. toggles to 0. toggles to 0. State: 00.
The sequence is 00 -> 01 -> 10 -> 11 -> 00. The cycle length is 4. The 5th pulse will produce the same state as the 1st pulse. Therefore, the state after 5 pulses is 01.
Incorrect! Try again.
59To implement a T flip-flop from a JK flip-flop, the standard method is to tie J and K together to the T input. If, due to a fault, the K input is stuck at logic 0, but J is correctly connected to T, how will the resulting circuit behave?
Conversion of basic flip-flop
Hard
A.It will always toggle, regardless of the T input.
B.It will act as a flip-flop that can only be set but not cleared by the T input.
C.It will never change state.
D.It will act as a normal T flip-flop.
Correct Answer: It will act as a flip-flop that can only be set but not cleared by the T input.
Explanation:
The characteristic equation is . With and (stuck), the equation becomes . Let's analyze this:
If T=0: . The state holds. This is correct behavior for T=0.
If T=1: . The state is forced to 1 (SET). This is incorrect. A T flip-flop should toggle to 0 if Q was 1.
So, the circuit can hold state when T=0, and it can be SET to 1 when T=1 (if it was 0), but it can never be CLEARED back to 0 by the T input. It can only be set.
Incorrect! Try again.
60A negative edge-triggered D flip-flop has a setup time of 3 ns and a hold time of 2 ns. The clock signal is a perfect square wave with a period of 20 ns. The D input changes from low to high at t=8 ns. At what time does the next clock edge occur, and is the timing constraint met?
Flip-Flop (SR, JK, D and T)
Hard
A.t=20 ns, setup time is met.
B.t=10 ns, setup time is met.
C.t=20 ns, hold time is violated.
D.t=10 ns, setup time is violated.
Correct Answer: t=10 ns, setup time is violated.
Explanation:
The clock period is 20 ns. Assuming the clock starts low, the first rising edge is at t=0, and the first negative (falling) edge is at t=10 ns. The D input changes at t=8 ns. Setup time is the minimum time the input must be stable before the active clock edge. The active edge is at t=10 ns. The data is stable from t=8 ns onwards. The stability interval before the clock edge is from t=8 ns to t=10 ns, which is a duration of 2 ns. The required setup time is 3 ns. Since 2 ns < 3 ns, the setup time constraint is violated. The hold time is not violated as the data remains stable after the edge.