Unit 4 - Practice Quiz

ECE213 61 Questions
0 Correct 0 Wrong 61 Left
0/61

1 What does 'S' stand for in an SR-latch?

SR-latch Easy
A. Set
B. Store
C. Simple
D. Synchronous

2 Which input condition is considered "forbidden" or "invalid" for a basic SR-latch made from NOR gates?

SR-latch Easy
A. S=0, R=0
B. S=0, R=1
C. S=1, R=0
D. S=1, R=1

3 A D-latch is often called a 'transparent' latch because:

D-latch Easy
A. When the enable input is active, the output Q follows the input D.
B. It inverts the input signal.
C. It is made of clear plastic.
D. It does not store any data.

4 What does a small triangle symbol (▷) on the clock input of a flip-flop in a logic diagram signify?

Edge triggering Easy
A. It has an asynchronous preset.
B. It is edge-triggered.
C. It is level-triggered.
D. It is a master-slave device.

5 In a positive edge-triggered D flip-flop, what happens to the output Q?

D flip-flop Easy
A. It takes the value of the D input at the falling edge of the clock.
B. It is always equal to the D input.
C. It takes the value of the D input at the rising edge of the clock.
D. It is always the inverse of the D input.

6 What is the state of a JK flip-flop when both J and K inputs are HIGH (J=1, K=1) and a clock pulse occurs?

JK flip-flop Easy
A. Toggle
B. Set (Q=1)
C. Reset (Q=0)
D. Hold (No Change)

7 If J=0 and K=0 for a JK flip-flop, what will the output be after the next clock pulse?

JK flip-flop Easy
A. The output will be reset to 0.
B. The output will be set to 1.
C. The output will toggle.
D. The output will not change.

8 What is the primary function of a T flip-flop when its T input is HIGH?

T flip-flop Easy
A. To reset the output to 0.
B. To toggle the output on each clock pulse.
C. To hold the current output state.
D. To set the output to 1.

9 A master-slave flip-flop is essentially composed of:

Master-Slave Flip-Flop Easy
A. A combinational logic circuit.
B. Two latches connected in series.
C. An operational amplifier.
D. A single D-latch.

10 A sequential circuit that changes state on the HIGH to LOW transition of the clock pulse is called:

Edge triggering Easy
A. Positive edge-triggered
B. Asynchronous
C. Negative edge-triggered
D. Level-sensitive

11 How can a JK flip-flop be made to function as a T flip-flop?

Conversion of basic flip-flops Easy
A. By connecting the J and K inputs together to form the T input.
B. By inverting the clock input.
C. By grounding both J and K inputs.
D. By connecting J to logic 1 and K to logic 0.

12 What is the main advantage of a D flip-flop over an SR flip-flop?

D flip-flop Easy
A. It eliminates the invalid (S=1, R=1) state.
B. It uses fewer transistors.
C. It can store more than one bit.
D. It is faster.

13 The master-slave configuration is primarily used to eliminate which problem?

Master-Slave Flip-Flop Easy
A. Race-around condition
B. Propagation delay
C. Static hazard
D. Power-on reset

14 If the T input of a T flip-flop is held LOW (T=0), what will its output Q do on the next clock edge?

T flip-flop Easy
A. Toggle to its opposite state
B. Go to a LOW state
C. Remain unchanged
D. Go to a HIGH state

15 To make a JK flip-flop act as a D flip-flop, how should the inputs be connected?

JK flip-flop Easy
A. Connect D to J and ground K.
B. Connect D to K and ground J.
C. Connect D to both J and K.
D. Connect D to J and the inverse of D to K.

16 What is the fundamental building block of sequential logic circuits?

Basic sequential circuits Easy
A. Multiplexer
B. Latch or Flip-flop
C. AND gate
D. Comparator

17 What is the role of the 'Enable' input on a D-latch?

D-latch Easy
A. It controls when the output can change to reflect the input.
B. It sets the latch to one.
C. It resets the latch to zero.
D. It acts as the data input.

18 The characteristic equation for a D flip-flop is:

D flip-flop Easy
A.
B.
C.
D.

19 The 'J' and 'K' in a JK flip-flop are the:

JK flip-flop Easy
A. Preset and Clear inputs
B. Data inputs
C. Outputs
D. Clock inputs

20 A T flip-flop with its T input permanently connected to a HIGH logic level functions as a:

T flip-flop Easy
A. Buffer
B. D-latch
C. Divide-by-two circuit
D. Clock source

21 An SR latch is constructed using two cross-coupled NOR gates. If both S and R inputs are momentarily set to 1 and then both return to 0 simultaneously, what is the resulting state of the Q and outputs?

SR-latch Medium
A. Q = 1, = 0
B. Q = 0, = 0
C. Q = 0, = 1
D. The state is unpredictable (metastable)

22 A D-latch has its enable input (E) held high. The D input is connected to a square wave signal with a frequency of 1 MHz. What will the Q output signal look like?

D-latch Medium
A. It will be a constant low signal.
B. It will be identical to the D input signal.
C. It will be a constant high signal.
D. It will be the inverse of the D input signal.

23 What is the primary consequence of violating the setup time () or hold time () of an edge-triggered flip-flop?

Edge triggering Medium
A. The flip-flop enters a permanent SET state.
B. Increased power consumption of the circuit.
C. The propagation delay of the flip-flop increases significantly.
D. Metastability, where the output oscillates or settles to an unknown state.

24 A positive edge-triggered D flip-flop has its D input connected to its own output. If the flip-flop is initially in the RESET state (Q=0), what will be the state of Q after the 3rd positive clock edge?

D flip-flop Medium
A. 1
B. 0
C. High Impedance
D. Toggling

25 To use a JK flip-flop to implement the function Q_{next} = , what must the J and K inputs be?

JK flip-flop Medium
A. J = 0, K = 0
B. J = 1, K = 1
C. J = 0, K = 1
D. J = 1, K = 0

26 A 160 kHz signal is applied to the clock input of a series of four T flip-flops, all configured in toggle mode (T=1). What is the frequency of the output signal from the last flip-flop in the series?

T flip-flop Medium
A. 10 kHz
B. 40 kHz
C. 20 kHz
D. 160 kHz

27 To convert a D flip-flop into a JK flip-flop, what combinational logic must be placed at the D input?

Conversion of basic flip-flops Medium
A.
B.
C.
D.

28 What is the primary purpose of the master-slave configuration in a flip-flop?

Master-Slave Flip-Flop Medium
A. To eliminate the race-around condition.
B. To increase the speed of operation.
C. To provide both Q and outputs.
D. To reduce the power consumption.

29 Consider a negative edge-triggered JK flip-flop with J=Q and K=1. If the current state is Q=0, what will be the state after the next clock pulse?

JK flip-flop Medium
A. The state will be invalid
B. Q will be 0
C. Q will be 1
D. The state will toggle

30 What is the characteristic equation that defines the next state () of a T flip-flop in terms of its present state (Q) and input (T)?

T flip-flop Medium
A.
B.
C.
D.

31 How can an SR flip-flop be converted into a T flip-flop?

Conversion of basic flip-flops Medium
A. S = Q and R =
B. S = T and R =
C. S = TQ and R = T
D. S = T and R = TQ

32 In a positive level-triggered Master-Slave D flip-flop, at what point in the clock cycle is the input D actually sampled by the master latch?

Master-Slave Flip-Flop Medium
A. While the clock is low (level=0)
B. During the falling edge of the clock
C. During the rising edge of the clock
D. While the clock is high (level=1)

33 An SR latch is built with two cross-coupled NAND gates. What is the behavior of this latch when S=1 and R=1?

SR-latch Medium
A. It holds the previous state.
B. It enters a forbidden state where Q==1.
C. It enters a SET state (Q=1).
D. It enters a RESET state (Q=0).

34 A 4-bit shift register is constructed using D flip-flops. An initial value of 1011 is loaded. If the serial input is held at 0, what will be the content of the register after two right shifts?

D flip-flop Medium
A. 0010
B. 0011
C. 1100
D. 1000

35 Why is edge triggering generally preferred over level triggering for flip-flops used in synchronous sequential circuits?

Edge triggering Medium
A. Edge triggering ensures that the state changes only once per clock cycle at a precise instant.
B. Level triggering cannot be used to build counters.
C. Edge-triggered flip-flops consume less power.
D. Edge-triggered flip-flops are simpler to construct.

36 To convert a JK flip-flop into a T flip-flop, what should the J and K inputs be connected to?

Conversion of basic flip-flops Medium
A. J = T, K = 1
B. J = K = T
C. J = T, K =
D. J = 1, K = T

37 A JK flip-flop has a propagation delay () of 15 ns and a setup time () of 5 ns. What is the maximum clock frequency at which this flip-flop can be reliably operated?

JK flip-flop Medium
A. 66.7 MHz
B. 100 MHz
C. 20 MHz
D. 50 MHz

38 Consider a D-latch where the D input changes from 0 to 1 at t=5ns. The Enable (E) input is a pulse that is high from t=0ns to t=10ns. The output Q will...

D-latch Medium
A. change from 0 to 1 at t=0ns.
B. change from 0 to 1 at t=5ns and remain 1 after t=10ns.
C. change from 0 to 1 only at t=10ns.
D. remain 0 throughout the entire process.

39 A synchronous 2-bit counter is built using T flip-flops. The counter should sequence through 00 -> 01 -> 10 -> 11 -> 00. Let the flip-flops be (MSB) and (LSB). What should be the logic for the T inputs?

T flip-flop Medium
A. ;
B. ;
C. ;
D. ;

40 To use a basic SR latch as a debouncing circuit for a mechanical switch, what property of the latch is being utilized?

SR-latch Medium
A. Its low power consumption.
B. Its fast propagation delay.
C. Its ability to toggle its output on every input change.
D. Its ability to ignore the invalid state and store the first valid input transition.

41 An SR latch is constructed from two cross-coupled NOR gates with a non-zero, identical propagation delay of . The latch is initially in the state Q=0. At time , both S and R inputs are changed from 0 to 1 simultaneously. They are held at 1 for a duration of and then returned to 0. What is the most likely final state of Q?

SR-latch Hard
A. The final state will be Q=0.
B. The final state will be Q=1.
C. The latch will burn out due to the invalid input condition.
D. The final state is unpredictable and may oscillate or settle into a metastable state.

42 Consider a D flip-flop with a setup time () of 3ns and a hold time () of 2ns. The data input D is transitioning from low to high, and this transition occurs 1ns before the rising edge of the clock. What will be the state of the output Q after the clock edge?

Edge triggering Hard
A. Q will reliably retain its previous low value.
B. Q will enter a metastable state.
C. The flip-flop will reset to 0.
D. Q will reliably capture the new high value.

43 A negative edge-triggered JK flip-flop has a propagation delay of 12 ns from the clock edge to the Q output. The J and K inputs are both tied to HIGH (toggle mode). The clock input is a square wave with a frequency of 50 MHz. What is the effective frequency of the Q output waveform?

JK flip-flop Hard
A. The output will be stuck in a single state (either high or low).
B. 100 MHz
C. 50 MHz
D. 25 MHz

44 A Master-Slave JK flip-flop (triggered on the negative edge of CLK) has J=1, K=1. While the CLK is HIGH, a brief, narrow, negative-going glitch appears on the J input (J momentarily goes to 0 and back to 1). The K input remains at 1. What is the state of the output Q after the next negative clock edge?

Master-Slave Flip-Flop Hard
A. Q will toggle its state.
B. Q will retain its previous state.
C. Q will be set to 1.
D. Q will be reset to 0.

45 You need to convert a D flip-flop into a JK flip-flop. The conversion requires combinational logic to drive the D input. The D input should be a function of J, K, and the current state Q. What is the correct Boolean expression for the D input?

Conversion of basic flip-flops Hard
A. D = JQ' + K'Q
B. D = JQ + KQ'
C. D = J'Q + KQ'
D. D = JK' + K'Q

46 A synchronous counter is built using two T flip-flops ( is MSB, is LSB). The inputs to the flip-flops are given by the equations: and . Starting from the state , what is the sequence of states the counter goes through?

T flip-flop Hard
A. 00 -> 01 -> 11 -> 10 -> 00
B. 00 -> 01 -> 11 -> 00
C. 00 -> 10 -> 11 -> 01 -> 00
D. 00 -> 01 -> 10 -> 11 -> 00

47 The output Q of a transparent D-latch is connected back to its D input through an inverter. The propagation delay of the latch (from D to Q) is and the delay of the inverter is . If the Enable (E) input is held HIGH, what best describes the behavior of the output Q?

D-Latch Hard
A. Q will oscillate with a period of
B. Q will oscillate with a period of
C. Q will latch to a stable state determined by the initial conditions.
D. Q will enter a metastable state.

48 A 100 MHz clock signal is passed through two consecutive inverters before clocking a D flip-flop. The propagation delay of each inverter is 2 ns. The D input of the flip-flop is tied to the original (pre-inverter) clock signal. The flip-flop has a setup time of 1.5 ns and a hold time of 0.5 ns. How does the flip-flop behave?

D Flip-Flop Hard
A. It reliably outputs a constant 1.
B. It enters a metastable state at every clock edge.
C. It toggles at 50 MHz.
D. It reliably outputs a constant 0.

49 You want to create a special-purpose flip-flop whose behavior is defined by the characteristic equation , where A and B are external inputs. You must implement this using a T flip-flop and some external logic gates. What should be the logic expression for the T input?

Conversion of basic flip-flops Hard
A. T =
B. T =
C. T =
D. T =

50 A digital circuit has two positive-edge-triggered D flip-flops, FF1 and FF2, sharing the same clock. The Q output of FF1 is connected to the D input of FF2. There is a clock skew of between them, meaning the clock arrives at FF2 at time while it arrives at FF1 at time . Let the propagation delay of FF1 be and the hold time of FF2 be . For the circuit to function correctly, what is the fundamental timing constraint that must be satisfied?

Edge triggering Hard
A.
B.
C.
D.

51 A synchronous 2-bit counter using JK flip-flops ( is MSB, is LSB) is designed to follow the sequence 00 -> 10 -> 01 -> 11 -> 00... What are the minimal logic expressions for the inputs and ?

JK flip-flop Hard
A.
B.
C.
D.

52 A 3-bit asynchronous ripple counter is built using negative-edge-triggered T flip-flops with T inputs tied high. Each flip-flop has a propagation delay of 10 ns. What is the maximum duration of the transient 'glitch' state that occurs when the counter transitions from state 111 to 000?

T flip-flop Hard
A. 10 ns
B. 0 ns (no glitch occurs)
C. 30 ns
D. 20 ns

53 A negative-edge-triggered Master-Slave JK flip-flop has J=0, K=0 and its output Q is initially 0. While the CLK is held HIGH, a brief, narrow, positive-going glitch (0->1->0) occurs on the J input. What will be the state of Q after the subsequent falling edge of the CLK?

Master-Slave Flip-Flop Hard
A. Q will toggle to 1, then back to 0.
B. Q will be set to 1.
C. Q will become metastable.
D. Q will remain 0.

54 An SR latch is built with two NAND gates. The inputs are active-low (S' and R'). The latch is in the state Q=1. A single, short, negative-going pulse is applied to the R' input. What is the minimum duration () of this pulse required to reliably change the state of the latch, assuming each NAND gate has a propagation delay of ?

SR-latch Hard
A. can be arbitrarily short.
B.
C.
D.

55 A T flip-flop is to be implemented using a JK flip-flop. Which of the following connections ensures this conversion?

Conversion of basic flip-flops Hard
A. Connect T to J and Q' to K.
B. Connect T to both J and K inputs.
C. Connect T to J and tie K to ground.
D. Connect T to J and Q to K.

56 Consider a negative-edge-triggered JK flip-flop where J = Q' and K = 1. Starting with Q=0, what is the sequence of Q's output over the next 4 clock cycles?

JK flip-flop Hard
A. 0 -> 1 -> 0 -> 1
B. 0 -> 0 -> 1 -> 1
C. 0 -> 1 -> 1 -> 1
D. 0 -> 1 -> 0 -> 0

57 In a system with a 50 MHz clock, a D-latch (not a flip-flop) is used to sample a data line. The enable signal for the latch is connected directly to the system clock. The data can change at any time, but is guaranteed to be stable for 5ns before and 5ns after the falling edge of the clock. What is the primary operational risk of using a D-latch in this manner?

D-Latch Hard
A. A setup time violation will occur because the clock period is too short.
B. A hold time violation will occur because the enable signal is too long.
C. Data changes occurring while the clock is HIGH will pass directly to the output, potentially causing downstream logic to evaluate incorrect values.
D. The latch will miss the data because it only samples at the clock edge.

58 An edge detector circuit is designed to produce a single, one-clock-cycle-wide HIGH pulse upon detecting a rising edge on an input signal IN. Which design using two D flip-flops (DFF1, DFF2) and a logic gate correctly implements this?

Edge triggering Hard
A. IN -> DFF1 -> DFF2. Output = Q1 AND (NOT Q2).
B. IN -> DFF1 -> DFF2. Output = Q1 XOR Q2.
C. IN -> DFF1 -> DFF2. Output = Q1 OR Q2.
D. IN -> DFF1, IN -> DFF2. Output = Q1 AND Q2.

59 A state machine is designed with two T flip-flops, and . The input equations are and , where is the primary input. If the machine starts in state and the input sequence is , what is the final state of the machine?

T flip-flop Hard
A. 00
B. 10
C. 11
D. 01

60 A JK flip-flop has a setup time of 4ns and a hold time of 1ns. It is clocked by a 100MHz signal. The J and K inputs are driven by a combinational logic block which is, in turn, fed by the Q output of the same flip-flop. What is the maximum allowable propagation delay of the combinational logic block for the circuit to operate correctly?

JK flip-flop Hard
A. 9 ns
B. 6 ns
C. 10 ns
D. 5 ns

61 A gated SR latch is constructed with NAND gates. The inputs are S, R, and a common Enable (EN). Which input combination creates a potential race condition when the Enable signal transitions from HIGH to LOW?

SR-latch Hard
A. S=0, R=0
B. S=1, R=1
C. S=0, R=1
D. S=1, R=0