Computer Knowledge

Digital Logic and Microprocessors

735 Questions

Digital logic and microprocessors form the core of computer science, covering logic gates, combinational and sequential circuits, and CPU architecture. These topics are crucial for computer knowledge sections in technical exams. Test your digital electronics basics here.

Logic gates and circuitsCombinational vs sequential circuitsMicroprocessor instructionsTruth tables and boolean functions

Digital Logic and Microprocessors Questions

Multiple choice
  1. complimentary

  2. the same

  3. independent of each other

  4. same as inputs

Reveal answer Fill a bubble to check yourself
A Correct answer
Explanation

A flip-flop always produces two outputs: Q and Q' (Q complement). These are always complementary (opposite) to each other - when Q is 1, Q' is 0, and vice versa. This is a fundamental property of flip-flop output stages.

Multiple choice
  1. scaling

  2. rectification

  3. modulation

  4. counting

Reveal answer Fill a bubble to check yourself
D Correct answer
Explanation

Flip-flops are fundamental memory elements in digital circuits. When properly connected and clocked, they can count pulses or events by changing state in a predetermined sequence. This makes them essential building blocks for counters, unlike scaling, rectification, or modulation which are analog operations.

Multiple choice
  1. log 2(N) +1

  2. [log2(N)2]

  3. [log2(N)]

  4. log2(N - 1)

Reveal answer Fill a bubble to check yourself
C Correct answer
Explanation

A modulo N counter cycles through N distinct states (0 to N-1). To represent N states, we need ⌈log₂N⌉ flip-flops. For example, a mod-8 counter needs 3 flip-flops (2³=8), a mod-5 counter needs 3 flip-flops (2²=4 < 5 ≤ 8=2³). The ceiling function ensures we have enough capacity.

Multiple choice
  1. Decoder

  2. Multiplexer

  3. Demultiplexer

  4. Counter

Reveal answer Fill a bubble to check yourself
B Correct answer
Explanation

A multiplexer selects one of multiple input lines and connects it to a single output line based on control signals. This is its defining function - data selection from multiple sources to one destination. Decoders do the opposite (one input to multiple outputs), demultiplexers distribute one input to multiple outputs, and counters count sequentially.

Multiple choice
  1. present inputs only

  2. past inputs only

  3. both present and past inputs

  4. none of the above

Reveal answer Fill a bubble to check yourself
C Correct answer
Explanation

Sequential circuits have memory (feedback), so their output depends on both present inputs and past state (which encodes history of past inputs). The past inputs are not stored directly but are represented in the current state of flip-flops. This is what distinguishes sequential circuits from combinational circuits, which depend only on present inputs.

Multiple choice
  1. one bit of data

  2. two bits of data

  3. three bits of data

  4. any number of bits of data

Reveal answer Fill a bubble to check yourself
A Correct answer
Explanation

A flip-flop is a basic memory element that stores a single binary digit (bit). It can be either in the set state (Q=1) or reset state (Q=0), representing exactly one bit of information. The other options are incorrect because flip-flops cannot store multiple bits of data - they are single-bit storage devices.

Multiple choice
  1. no change

  2. low state

  3. high state

  4. toggle

Reveal answer Fill a bubble to check yourself
A Correct answer
Explanation

When both J and K inputs are low (0) in a JK flip-flop, the output remains in its previous state regardless of clock transitions. This is the hold or no change condition. A low state (B) or high state (C) would require specific J=1,K=0 or J=0,K=1 combinations respectively, while toggle (D) requires J=K=1.

Multiple choice
  1. 0

  2. 1

  3. tri - stated

  4. indeterminate

Reveal answer Fill a bubble to check yourself
B Correct answer
Explanation

In flip-flop terminology, the set state specifically means the Q output is 1 (high/logic true). The reset state means Q=0. Tri-state refers to a high-impedance condition used in bus systems, not normal flip-flop operation. The output is never indeterminate in a properly functioning flip-flop.

Multiple choice
  1. decoder

  2. encoder

  3. multiplexer

  4. demultiplexer

Reveal answer Fill a bubble to check yourself
D Correct answer
Explanation

A demultiplexer takes a single input and routes it to one of multiple outputs based on select lines - exactly sending data from one source to multiple destinations. A decoder extracts information, an encoder compresses multiple inputs to fewer outputs, and a multiplexer does the opposite (many-to-one).

Multiple choice
  1. decoder

  2. encoder

  3. multiplexer

  4. demultiplexer

Reveal answer Fill a bubble to check yourself
C Correct answer
Explanation

A multiplexer selects one input from multiple sources and sends it through a single output line - combining many sources onto one transmission path. This is the opposite of a demultiplexer. Encoders compress information and decoders expand it, but don't perform data selection.