Which of the following is NOT a valid octal number?
- A.377
- B.128
- C.745
- D.66
Correct answer
Explanation
The correct answer is B, 128. The octal system has base 8, so it uses only the eight digits from 0 to 7. The general rule is that the largest digit of any number system is one less than its base, which means the digits 8 and 9 can never appear in an octal number. The number 128 contains the digit 8, so it cannot be an octal number, although it is a perfectly valid decimal or hexadecimal number. Option A is wrong as a choice because 377 uses only 3 and 7, both of which are allowed. Option C is wrong because 745 uses 7, 4 and 5, all below 8. Option D is wrong because 66 uses only the digit 6. Apply the same test to binary, where only 0 and 1 are allowed, and to hexadecimal, where 0 to 9 and A to F are allowed.
Read the full article: Number Systems and Data Representation in Computers
Practice Questions
View allWhat is the hexadecimal equivalent of this binary number (1110)2?
- A.F
- B.B
- C.A
- D.E
Show answer
Hexadecimal has base 16, and because 2 raised to the power 4 equals 16, exactly four binary bits make one hexadecimal digit.
Read the full explanation →The binary equivalent of octal number 627 is:
- A.111010110
- B.110010110
- C.110010111
- D.011010111
Show answer
Octal has base 8, and because 2 raised to the power 3 equals 8, every octal digit expands into exactly three binary bits.
Read the full explanation →(1101 0001)2 binary number is same as which octal number?
- A.(321)8
- B.(123)8
- C.(641)8
- D.(146)8
Show answer
To turn a binary number into octal, group the bits in threes starting from the rightmost bit, adding leading zeros to complete the last group, because three bits cover the eight octal digits.
Read the full explanation →The difference between the two binary numbers 10010000 and 1111001 is:
- A.11101
- B.11011
- C.10111
- D.10011
Show answer
The safest way to handle a binary subtraction in an examination is to convert both numbers to decimal, subtract, and convert the answer back.
Read the full explanation →How many bits make one nibble?
- A.2
- B.4
- C.8
- D.16
Show answer
A bit, short for binary digit, is a single 0 or 1 and is the smallest unit of data a computer handles.
Read the full explanation →