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. Q will flip from 0 to 1

  2. Q will flip from 0 to 1 & then back to 0

  3. Q will flip from 1 to 0

  4. None of these

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

In an RS flip-flop with both inputs initially at 0 (hold state), applying a momentary 1 to the Set (S) input causes the Q output to become 1 and remain at 1 even after S returns to 0. The flip-flop 'remembers' this state. Option A correctly describes Q flipping from 0 to 1. The other options are incorrect: the output doesn't flip back automatically, doesn't go from 1 to 0, and the behavior is well-defined.

Multiple choice
  1. NAND gate

  2. NOR gate

  3. AND gate

  4. OR gate

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

In positive logic, high voltage (1) represents TRUE and low voltage (0) represents FALSE. In negative logic, this is inverted: high voltage (1) represents FALSE and low voltage (0) represents TRUE. An AND gate in positive logic (Y = A AND B) becomes an OR gate in negative logic because the voltage levels that indicate TRUE are swapped. By De Morgan's laws, NOT(NOT(A) AND NOT(B)) = A OR B, confirming this equivalence.

Multiple choice
  1. change its state at each clock pulse

  2. go to state 1 and stay there

  3. go to state 0 & stay there

  4. retain its previous state

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

With J=1 and K=Q, the flip-flop toggles between states: if Q=0, then J=1,K=0 causes Q→1; if Q=1, then J=1,K=1 causes Q→0. This creates a toggle action at every clock pulse.

Multiple choice
  1. interface input devices

  2. interface output devices

  3. interface memory

  4. interface DMA

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

Output port latches hold data steady for external devices while the CPU continues other tasks. This prevents data from changing during the peripheral device's read operation. Input ports may also use latches, but output latching is more critical for timing.

Multiple choice
  1. to tell the time of the day

  2. to tell how much time has elapsed since the system was turned on

  3. to carry serial data signals

  4. to synchronize events in various parts of a screen

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

The clock signal in sequential logic circuits provides timing synchronization to coordinate state changes across different parts of the circuit. While 'screen' is oddly specific (typically would say 'circuit' or 'system'), this refers to display timing signals in display controllers.

Multiple choice
  1. is a 2 bit memory

  2. is a 1 bit memory

  3. is a four state device

  4. has nothing to do with memory

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

A flip-flop is a bistable multivibrator that can store one bit of binary information (0 or 1). It has two stable states, making it a fundamental 1-bit memory element in digital systems.

Multiple choice
  1. counters

  2. shift registers

  3. transfer registers

  4. all of the above

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

Flip-flops are fundamental building blocks used extensively in counters, shift registers, and transfer registers. Counters track sequences, shift registers move data serially, and transfer registers temporarily hold data for transfers - all using flip-flops.

Multiple choice
  1. relaxation

  2. memory

  3. sequential

  4. combinational

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

An AND gate is a combinational circuit because its output depends only on the current inputs, with no memory of previous states. Sequential circuits (like flip-flops) have memory and depend on clock cycles.

Multiple choice
  1. 1 to 11 gates

  2. 12 to 99 gates

  3. 100 to 10 gates

  4. more than 10 gates

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

VLSI (Very Large Scale Integration) technology contains thousands to millions of transistors on a single chip. Option C is malformed (100 to 10 makes no sense). Option D, while vague, is the only logically consistent choice.

Multiple choice
  1. about a second

  2. about a 100th of second

  3. a few billionth second

  4. a few milli second

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

Digital gates operate at nanosecond speeds (billionths of a second) due to fast switching times of transistors. This is orders of magnitude faster than milliseconds or hundredths of a second.