Computer Knowledge

Digital Logic and Microprocessors

749 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. Register Indirect Branch Addressing Mode

  2. Branch Instruction Type Addressing Mode

  3. Direct Addressing Mode

  4. Instruction

  5. Intersegment Indirect Addressing Mode

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

These instructions can specify the address of the next instruction to be executed, if it is not the one immediately following the branch , in two ways in 8085 processor.

Multiple choice
  1. input unit

  2. output unit

  3. control unit

  4. ALU

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

The accumulator is a register in the Arithmetic Logic Unit (ALU) where intermediate arithmetic and logic results are stored. The ALU performs mathematical and logical operations, and the accumulator is central to this process. Input, output, and control units are separate components of the computer architecture.

Multiple choice
  1. units

  2. hertz

  3. pulses

  4. seconds

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

CPU clock speed measures how many instruction cycles the processor can execute per second, measured in Hertz (Hz). Modern processors operate in gigahertz (GHz) range, meaning billions of cycles per second, which determines how quickly the CPU can process instructions.

Multiple choice
  1. mega flops and tera flops

  2. giga flops and tera flops

  3. giant flops and tera flops

  4. both (1) and (2)

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

FLOPS (Floating Point Operations Per Second) measures computer performance in powers of 1000. Both megaFLOPS (10^6 operations/sec) and gigaFLOPS (10^9 operations/sec) are standard units, making option D correct. TeraFLOPS (10^12) is also valid but the question asks which pair is correct, and A-B are indeed real FLOPS types.

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 use combinational logic - they compute sums instantly based solely on current inputs without any memory elements. All full-adder circuits operate simultaneously on all bit positions, hence 'parallel'. Sequential circuits require memory and clock signals, which parallel adders do not use. They are purely feedforward logic networks.

Multiple choice
  1. S = JQ, R = K + JQ'

  2. J = S, K = R

  3. J = S + R' Q, K = S- (R' + Q' )

  4. S = JQ' , R = KQ

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

When constructing a JK flip-flop from an SR flip-flop, we need to prevent the invalid state (S=1, R=1) and enable toggling (J=1, K=1). The correct mapping is S = JQ' and R = KQ. When Q=0, S=J and R=0, so setting J=1 sets Q to 1. When Q=1, S=0 and R=K, so setting K=1 resets Q to 0. When J=K=1 and Q=0, the SR inputs become (1,0) setting Q to 1; when Q=1, they become (0,1) resetting Q to 0 - thus toggling.

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.