Number Systems & Logic Questions with Answers

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

Sample questions

Question 1Easy

Which logic gate inverts its single input?

  1. AND
  2. NOT
  3. OR
  4. Buffer

Answer: B. NOT

Explanation

NOT turns 0 into 1 and 1 into 0.

Step-by-step solution

  1. NOT has one input.
  2. It outputs the opposite: 0 → 1, 1 → 0.

Why the other options are wrong

  • A. AND needs two or more inputs.
  • C. OR needs two or more inputs.
  • D. A buffer passes its input unchanged.

Question 2Easy

What is the decimal value of the octal number (75)₈?

  1. 75
  2. 117
  3. 61
  4. 69

Answer: C. 61

Explanation

5×8^0 + 7×8^1
= 61.

Step-by-step solution

  1. (75)₈ = 7 × 8 + 5.
  2. = 56 + 5 = 61.

Why the other options are wrong

  • A. 75 treats the octal digits as decimal.
  • B. 117 is not 7×8 + 5.
  • D. 69 is not 7×8 + 5.

Question 3Easy

Which logic gate gives output 1 when at least one input is 1?

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

Answer: C. OR

Explanation

OR outputs 0 only when all inputs are 0.

Step-by-step solution

  1. OR gives 1 if any input is 1.
  2. It gives 0 only when all inputs are 0.

Why the other options are wrong

  • A. AND needs all inputs to be 1.
  • B. NOR gives 1 only when all inputs are 0.
  • D. XNOR gives 1 when inputs are equal.

Question 4Easy

How many different values can be represented using 4 bits?

  1. 16
  2. 15
  3. 8
  4. 4

Answer: A. 16

Explanation

2^4 = 16 values, from 0000 to 1111.

Step-by-step solution

  1. Each bit doubles the number of patterns.
  2. 4 bits: 2^4 = 16 values (0000 to 1111).

Why the other options are wrong

  • B. 15 is the largest value, not the count.
  • C. 8 is for 3 bits.
  • D. 4 is just the number of bits.

Question 5Medium

What is the largest unsigned number that can be represented with 12 bits?

  1. 4096
  2. 4095
  3. 2047
  4. 144

Answer: B. 4095

Explanation

2^12 − 1
= 4095.

Step-by-step solution

  1. Largest n-bit unsigned value = 2^n − 1.
  2. 2^12 = 4096.
  3. 4096 − 1 = 4095.

Why the other options are wrong

  • A. 4096 is the count of values, not the largest.
  • C. 2047 is the largest 11-bit value.
  • D. 144 is 12 squared.

Question 6Medium

What is the sum of the binary numbers 1011 and 1101?

  1. 10110
  2. 1111
  3. 110
  4. 11000

Answer: D. 11000

Explanation

11 + 13 = 24, which is 11000 in binary.

Step-by-step solution

  1. 1011 = 11 and 1101 = 13.
  2. 11 + 13 = 24.
  3. 24 = 11000 in binary.

Why the other options are wrong

  • A. 10110 is 22.
  • B. 1111 is 15.
  • C. 110 is the result if all carries are ignored.

Tip: Check by converting to decimal.

Question 7Medium

A memory chip has an address bus of 16 bits. How many distinct memory locations can it address?

  1. 256
  2. 32768
  3. 16000
  4. 65536

Answer: D. 65536

Explanation

2^16
= 65,536 locations (64 K).

Step-by-step solution

  1. Each address line doubles the addressable locations.
  2. 16 lines: 2^16 = 65536 locations.

Why the other options are wrong

  • A. 256 is 2^8.
  • B. 32768 is 2^15.
  • C. 16000 is not a power of 2.

Tip: 2^16 = 65536 = 64K.

Question 8Medium

Subtract the binary number 1011 from 11010.

  1. 10001
  2. 10011
  3. 1111
  4. 1110

Answer: C. 1111

Explanation

26 − 11 = 15 = (1111)₂.

Step-by-step solution

  1. 11010 = 26 and 1011 = 11.
  2. 26 − 11 = 15.
  3. 15 = 1111.

Why the other options are wrong

  • A. 10001 is 17.
  • B. 10011 is 19.
  • D. 1110 is 14, one less.

Question 9Hard

About how long does it take to download a 25 MB file over a 100 Mbps connection, ignoring overheads and taking 1 MB = 8 Mb?

  1. 0.25 seconds
  2. 2 seconds
  3. 4 seconds
  4. 25 seconds

Answer: B. 2 seconds

Explanation

25 MB = 200 megabits; 200 Mb ÷ 100 Mb/s = 2 s. Network speeds are in bits, file sizes in bytes.

Step-by-step solution

  1. Convert size to bits: 25 MB × 8 = 200 Mb.
  2. Time = 200 Mb ÷ 100 Mbps.
  3. = 2 seconds.

Why the other options are wrong

  • A. 0.25 s forgets to convert bytes to bits.
  • C. 4 s doubles the correct time.
  • D. 25 s treats the speed as 1 MB per second.

Tip: Time = (size in MB × 8) ÷ speed in Mbps.

Question 10Hard

What is the minimum number of bits needed to represent 1000 distinct values?

  1. 10
  2. 9
  3. 1000
  4. 11

Answer: A. 10

Explanation

2^9 = 512 is too few, while 2^10 = 1024 is enough.

Step-by-step solution

  1. Need 2^n ≥ 1000.
  2. 2^9 = 512 is too few; 2^10 = 1024 is enough.
  3. So 10 bits.

Why the other options are wrong

  • B. 9 bits give only 512 values.
  • C. 1000 bits would be one bit per value, far more than needed.
  • D. 11 bits work but are not the minimum.

Tip: 1024 ≈ 1000 is 2^10.

Practise all 70 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