Tap an option to check your answer — the correct answer and full explanation appear after you choose.
Computer ScienceNumber SystemsID: NSC-003
How is the decimal number 83 written in octal?
A123 ✓ Correct answer
B132
C113
D143
✓ Correct answer: 123
Full explanation
Divide by 8 repeatedly and read the remainders upward: 83 divided by 8 is 10 remainder 3; 10 divided by 8 is 1 remainder 2; 1 divided by 8 is 0 remainder 1. Reading the remainders from the last to the first gives 123, so 83 in decimal is 123 in octal. Check: 1 x 64 + 2 x 8 + 3 is 83.
Computer ScienceNumber SystemsID: NSC-004
What is the decimal value of the hexadecimal number 2F?
A47 ✓ Correct answer
B45
C51
D43
✓ Correct answer: 47
Full explanation
Expand by positional weights, with F standing for 15: 2F in hexadecimal is 2 x 16 + 15 x 1, which is 32 + 15, which is 47 in decimal.
Computer ScienceNumber SystemsID: NSC-005
How is the decimal number 171 written in hexadecimal?
AAB ✓ Correct answer
BBA
CA11
D9B
✓ Correct answer: AB
Full explanation
Divide by 16 repeatedly and read the remainders upward: 171 divided by 16 is 10 remainder 11, and 11 is B; 10 divided by 16 is 0 remainder 10, and 10 is A. Reading the remainders from the last to the first gives AB, so 171 in decimal is AB in hexadecimal. Check: 10 x 16 + 11 is 171.
Computer ScienceNumber SystemsID: NSC-006
What is the binary number 101101 in hexadecimal?
A2D ✓ Correct answer
BD2
C3D
D2B
✓ Correct answer: 2D
Full explanation
Group the bits in fours from the right, padding with leading zeros: 0010 1101. 0010 is 2 and 1101 is 13, which is D, so 101101 in binary is 2D in hexadecimal. Check: 2D in hexadecimal is 2 x 16 + 13, which is 45, and 101101 in binary is 32 + 0 + 8 + 4 + 0 + 1, which is also 45.
Computer ScienceNumber SystemsID: NSC-007
What is the 1's complement of the binary number 1101?
A0010 ✓ Correct answer
B1101
C1010
D0101
✓ Correct answer: 0010
Full explanation
The 1's complement flips every bit: 1 becomes 0 and 0 becomes 1. Flipping 1101 gives 0010.
Computer ScienceNumber SystemsID: NSC-008
What is the 2's complement of the binary number 0110?
A1010 ✓ Correct answer
B1001
C0110
D1100
✓ Correct answer: 1010
Full explanation
The 2's complement is the 1's complement plus 1. Flipping the bits of 0110 gives 1001, and 1001 + 1 is 1010. So the 2's complement of 0110 is 1010, which is how -6 is stored in 4-bit 2's complement.
Computer ScienceNumber SystemsID: NSC-009
What is the range of an 8-bit number in 2's complement representation?
A-128 to +127 ✓ Correct answer
B-127 to +127
C0 to 255
D-255 to +255
✓ Correct answer: -128 to +127
Full explanation
An n-bit 2's complement number ranges from -2 to the power (n-1) up to +2 to the power (n-1) minus 1. For 8 bits that is -128 to +127. The range -127 to +127 belongs to sign-magnitude and 1's complement, which have two zeros; 0 to 255 is the unsigned 8-bit range.
Computer ScienceNumber SystemsID: NSC-010
What is the decimal number 59 in BCD (Binary Coded Decimal)?
A0101 1001 ✓ Correct answer
B111011
C0101 1000
D1001 0101
✓ Correct answer: 0101 1001
Full explanation
BCD codes each decimal digit separately in 4 bits: 5 is 0101 and 9 is 1001, so 59 in BCD is 0101 1001. 111011 is 59 in plain binary, not BCD — BCD is not the same as binary.
Computer ScienceNumber SystemsID: NSC-011
In ASCII, what is the decimal code for the lowercase letter 'a'?
A97 ✓ Correct answer
B65
C48
D90
✓ Correct answer: 97
Full explanation
ASCII is a 7-bit code with 128 characters. The capital letter A is 65, the small letter a is 97 — upper and lower case differ by 32 — and the digit character 0 is 48.
Computer ScienceNumber SystemsID: NSC-012
What is the decimal value of the binary fraction 0.101?
A0.625 ✓ Correct answer
B0.5
C0.75
D0.125
✓ Correct answer: 0.625
Full explanation
After the binary point the places are worth 1/2, 1/4 and 1/8. So 0.101 in binary is 1 x 1/2 + 0 x 1/4 + 1 x 1/8, which is 0.5 + 0 + 0.125, which is 0.625 in decimal.
Computer ScienceNumber SystemsID: NSC-013
What is the Gray code of the binary number 1011?
A1110 ✓ Correct answer
B1011
C1101
D0100
✓ Correct answer: 1110
Full explanation
To convert binary to Gray code, keep the leftmost bit and XOR each bit with the one to its left: the first bit stays 1; 1 XOR 0 is 1; 0 XOR 1 is 1; 1 XOR 1 is 0. So binary 1011 gives Gray code 1110. In Gray code, successive values differ in exactly one bit.