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. m/2

  2. m - 1

  3. m

  4. m + 1

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

Each bit position in a parallel adder requires exactly one full adder to handle that bit's addition including carry-in and carry-out. For m bits, we need m full adders. The least significant bit could use a half adder, but a full adder with carry-in=0 provides uniform design.

Multiple choice
  1. present inputs only

  2. past inputs only

  3. both present & past inputs

  4. present outputs only

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

A sequential circuit's output depends on both the present inputs AND the past inputs (stored in memory elements like flip-flops). Unlike combinational circuits, sequential circuits have memory and maintain state information, so their output is determined by current inputs plus the stored history of previous inputs.

Multiple choice
  1. Parallel Adder

  2. Carry-look-ahead adder

  3. Carry save adder

  4. Full adder

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

A Carry Save Adder (CSA) is specifically designed to add three or more numbers simultaneously without waiting for the carry to propagate. It uses multiple full adders in parallel and produces two outputs: sum and carry vectors. This makes it much faster for adding multiple numbers compared to ripple carry or regular parallel adders, which typically add only two numbers at a time.

Multiple choice
  1. combinational logic circuits

  2. sequential logic circuits

  3. both (1) and (2)

  4. none of the above

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

Parallel adders are combinational logic circuits because their outputs depend only on the present inputs - the bits being added. They do not have memory elements or feedback, so they cannot store past inputs or states. The addition operation happens immediately based on current input values, which is the defining characteristic of combinational circuits.

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 has two outputs Q and Q' (Q bar) that are complements of each other - when Q is high, Q' is low, and vice versa. This complementary output is a fundamental characteristic.

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 the basic storage elements in digital circuits and are fundamental building blocks for counters, registers, and memory. Counting is achieved by connecting flip-flops in various configurations.

Multiple choice
  1. AND

  2. OR

  3. NAND

  4. EXOR

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

NAND is commutative (A NAND B = B NAND A) but NOT associative. For example: (0 NAND 0) NAND 0 = 1 NAND 0 = 1, but 0 NAND (0 NAND 0) = 0 NAND 1 = 1. However: (0 NAND 1) NAND 1 = 1 NAND 1 = 0, but 0 NAND (1 NAND 1) = 0 NAND 0 = 1, proving non-associativity.

Multiple choice
  1. zero voltage

  2. lower voltage level

  3. higher voltage level

  4. negative voltage

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

In positive logic systems, logic 1 is represented by the higher voltage level (typically Vcc or +5V in TTL), while logic 0 is represented by the lower voltage level (typically 0V or ground).

Multiple choice
  1. parallel to serial conversion

  2. serial to parallel conversion

  3. digital delay line

  4. all of the above

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

Shift registers are versatile digital circuits that can convert parallel data to serial format, serial data back to parallel, and create digital delays by storing and shifting data bits.

Multiple choice
  1. AND circuit

  2. NAND circuit

  3. NOR circuit

  4. XOR circuit

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

A half adder consists of an XOR gate for the sum output and an AND gate for the carry output. The XOR circuit performs the core addition logic for single-bit addition.