WorksheetsNumber-Systems
Total questions: 33
Worksheet time: 29mins
What is the base (radix) of the decimal number system?
2
8
10
16
In binary, the digit 1 represents...
Negative value
Switch OFF/False
Switch ON/True
Decimal digit 10
How many bits are there in 1 byte?
4
8
16
32
Which of the following is a valid hexadecimal digit?
G
F
Z
Q
What is the binary representation of decimal 5?
1010
0101
1111
0010
Which of the following systems is most natural for computers?
Decimal
Binary
Octal
Hexadecimal
In two’s complement (8-bit), which value can be represented?
–129
–128
256
2000
How many unique values can be represented with 3 bits?
3
6
7
8
What is the hexadecimal equivalent of binary 1111₂?
15
A
F
1F
Which method is most commonly used in computers to represent signed integers?
Sign & Magnitude
One’s Complement
Two’s Complement
Floating Point
Convert decimal 55₁₀ to binary.
110111₂
111001₂
100111₂
101101₂
What is the 8-bit two’s complement representation of +59₁₀?
00111011
11001011
11111011
00011101
What is the 8-bit two’s complement representation of -1₁₀?
10000000
11111111
00000001
11111110
Which decimal number cannot be represented in 8-bit two’s complement?
–128
0
+127
+200
Convert 0xF1 to binary (8-bit).
11110001
00001111
111100001
Not possible in 8 bits
Expand binary signed number 11011001₂ to 16-bit two’s complement.
1111111111011001
0000000011011001
00000000011011001
1111111101101001
Convert decimal –97₁₀ to 8-bit two’s complement.
10011111
10101111
01100001
11011101
How many bits are required to represent 0x2E8 in binary?
8 bits
10 bits
12 bits
16 bits
Which of the following is the binary equivalent of hex FAC₁₆?
111110101100₂
111110111100₂
111101101100₂
101010111100₂
What is the result of 11 & 7 (bitwise AND in Python)?
1110₂
0011₂
1010₂
0111₂
Convert decimal 700₁₀ into binary. Then, write the result in hexadecimal.
1010111100₂, 2BC₁₆
1010101100₂, 2AC₁₆
1100111100₂, 33C₁₆
1111111100₂, 3FC₁₆
Which of the following 12-bit two’s complement numbers is valid when expanding 8-bits signed number 10011101₂?
000010011101
111110011101
101010011101
Not possible
Convert –128₁₀ into 8-bit two’s complement. Can –129 be represented in 8-bit two’s complement?
10000000₂, –129 causes overflow
01111111₂, –129 also fits
11111111₂, no overflow
10000001₂, works fine
Resize binary 1110 1011 1001 0001₂ into 12-bit two’s complement. What happens?
Fits → 101110010001₂
Doesn’t fit → value overflow
Becomes positive
Becomes zero
Convert decimal –113 to 8-bit two’s complement step by step. What is the final result?
01110001
10001111
10110001
11100001
Which decimal value does the two’s complement binary 10001111₂ represent (8-bit)?
+113
–113
–17
+17
If you have a variable cycles from 0 → 7. How many LEDs are needed to display the full range in binary?
2
3
4
7
If the proto board shows 101 on its 3 LEDs, what decimal value is being displayed?
2
3
5
6
In Python, what is the result of 13 ^ 7 (bitwise XOR)?
1010₂ = 10₁₀
1110₂ = 14₁₀
1000₂ = 8₁₀
0011₂ = 3₁₀
Resize the unsigned 0000 0100 1000 1011₂ to 12-bit. Is it possible?
0100 1000 1011
1000 1000 1011
0000 1000 1011
Not possible
Sign-extend 0xFAC to 16-bit two’s complement.
0000 1111 1010 1100
1111 1111 1010 1100
1111 0000 1010 1100
0000 0000 1010 1100
Zero-extend the unsigned binary 1101 1001₂ to 16 bits.
1111111111011001
0000000011011001
0011111111011001
Not possible
Can 0x1E5 be represented as 8-bit binary?
Yes: 11100101
No
