Digital Logic & Computer Organisation Questions with Answers

25 practice questions on Digital Logic & Computer Organisation (Computer Fundamentals) with answers and step-by-step solutions. Try 10 samples below, then practise all 25 free in the AptiNest app.

Sample questions

Question 1Easy

A flip-flop can store

  1. One bit
  2. One byte
  3. One word
  4. One kilobyte

Answer: A. One bit

Explanation

A flip-flop is a one-bit memory element.

Step-by-step solution

  1. A flip-flop is a one-bit memory element.
  2. So the answer is: One bit.

Why the other options are wrong

  • B. A byte takes 8 flip-flops.
  • C. A word takes many.
  • D. A kilobyte takes thousands.

Question 2Easy

The decimal number 45 in binary is

  1. 101011
  2. 110101
  3. 100101
  4. 101101

Answer: D. 101101

Explanation

45 = 32 + 8 + 4 + 1 = 101101.

Step-by-step solution

  1. 45 = 32 + 8 + 4 + 1 = 101101.
  2. So the answer is: 101101.

Why the other options are wrong

  • A. 101011 is 43.
  • B. 110101 is 53.
  • C. 100101 is 37.

Question 3Easy

The hexadecimal number FF equals which decimal value?

  1. 255
  2. 15
  3. 156
  4. 225

Answer: A. 255

Explanation

FF = 15 x 16 + 15 = 255.

Step-by-step solution

  1. FF = 15 x 16 + 15 = 255.
  2. So the answer is: 255.

Why the other options are wrong

  • B. 15 is F.
  • C. 156 is incorrect.
  • D. 225 is 15 x 15.

Question 4Easy

Which gate gives output 1 only when all inputs are 1?

  1. OR
  2. AND
  3. XOR
  4. NOR

Answer: B. AND

Explanation

The AND gate is the logical product. It outputs 1 only if all inputs are 1.

Step-by-step solution

  1. The AND gate is the logical product.
  2. It outputs 1 only if all inputs are 1.
  3. So the answer is: AND.

Why the other options are wrong

  • A. OR gives 1 when any input is 1.
  • C. XOR gives 1 when inputs differ.
  • D. NOR gives 1 only when all inputs are 0.

Question 5Medium

A half adder has outputs

  1. Sum = A XOR B, Carry = A AND B
  2. Sum = A AND B, Carry = A XOR B
  3. Sum = A OR B, Carry = A AND B
  4. Sum = A XNOR B, Carry = A OR B

Answer: A. Sum = A XOR B, Carry = A AND B

Explanation

1 + 1 = 10 in binary: sum 0, carry 1. So sum is XOR and carry is AND.

Step-by-step solution

  1. 1 + 1 = 10 in binary: sum 0, carry 1.
  2. So sum is XOR and carry is AND.
  3. So the answer is: Sum = A XOR B, Carry = A AND B.

Why the other options are wrong

  • B. The functions are swapped.
  • C. OR does not give the sum bit.
  • D. XNOR is wrong.

Question 6Medium

How many select lines does an 8:1 multiplexer need?

  1. 2
  2. 4
  3. 8
  4. 3

Answer: D. 3

Explanation

The number of select lines n satisfies 2^n = inputs. Here 2^3 = 8.

Step-by-step solution

  1. The number of select lines n satisfies 2^n = inputs.
  2. Here 2^3 = 8.
  3. So the answer is: 3.

Why the other options are wrong

  • A. 2 selects only 4 inputs.
  • B. 4 selects 16 inputs.
  • C. 8 is the number of inputs.

Question 7Medium

A 3-to-8 decoder has how many outputs?

  1. 3
  2. 6
  3. 16
  4. 8

Answer: D. 8

Explanation

A decoder with n inputs has 2^n outputs.

Step-by-step solution

  1. A decoder with n inputs has 2^n outputs.
  2. So the answer is: 8.

Why the other options are wrong

  • A. 3 is the number of inputs.
  • B. 6 is wrong.
  • C. 16 would need 4 inputs.

Question 8Medium

The correct order of the instruction cycle is

  1. Decode, fetch, execute
  2. Fetch, decode, execute
  3. Execute, fetch, decode
  4. Fetch, execute, decode

Answer: B. Fetch, decode, execute

Explanation

The CPU fetches an instruction, decodes it, then executes it.

Step-by-step solution

  1. The CPU fetches an instruction, decodes it, then executes it.
  2. So the answer is: Fetch, decode, execute.

Why the other options are wrong

  • A. Decode needs a fetched instruction.
  • C. Execution comes last.
  • D. Decode precedes execute.

Question 9Hard

With a cache hit ratio of 0.9, cache access time of 10 ns and main memory access time of 100 ns (memory accessed only on a miss), the average access time is

  1. 10 ns
  2. 19 ns
  3. 55 ns
  4. 100 ns

Answer: B. 19 ns

Explanation

Average = 0.9 x 10 + 0.1 x 100 = 9 + 10 = 19 ns.

Step-by-step solution

  1. Average = 0.9 x 10 + 0.1 x 100 = 9 + 10 = 19 ns.
  2. So the answer is: 19 ns.

Why the other options are wrong

  • A. 10 ns ignores misses.
  • C. 55 ns is the plain average of 10 and 100.
  • D. 100 ns ignores hits.

Tip: Average time = hit ratio × cache time + (1 − hit ratio) × memory time, when memory is reached only on a miss.

Question 10Hard

RISC processors are characterised by

  1. A large set of complex instructions
  2. Only memory-to-memory operations
  3. A small set of simple, fixed-length instructions
  4. No registers

Answer: C. A small set of simple, fixed-length instructions

Explanation

RISC designs favour simple instructions that execute in about one cycle.

Step-by-step solution

  1. RISC designs favour simple instructions that execute in about one cycle.
  2. So the answer is: A small set of simple, fixed-length instructions.

Why the other options are wrong

  • A. That describes CISC.
  • B. RISC uses load/store, not memory-to-memory.
  • D. RISC uses many registers.

Tip: RISC means few, simple, fixed-length instructions that run in about one cycle; reject options describing complex instructions.

Practise all 25 questions free

The full question bank with timed practice, progress tracking and Vidya, your AI tutor. Free, no ads.

Open this topic in the app →

Related topics

See all Computer Fundamentals topics · All topics