You are on page 1of 5

Learning Alliance

Faisalabad

Name: ________________________ Computer Date: ____________________


Grade VII

Unit # 1
The nature of technology: Storing digital data
1.2 - Reading Binary Numbers

Q1. Convert these binary numbers into decimal numbers.


a. 0111

23 22 21 20
8 4 2 1

…………………………………………………………………………………………………………………………

b. 10101010

27 26 25 24 23 22 21 20
128 64 32 16 8 4 2 1

…………………………………………………………………………………………………………………………

c. 11011010

27 26 25 24 23 22 21 20
128 64 32 16 8 4 2 1

…………………………………………………………………………………………………………………………

Q2. Choose the correct option.


1. The binary number system uses ……………… bits.
A. two B. three C. four D. eight

2. Another name for the binary number system is ………………


A. base 10 B. base 8 C. base 1 D. base 2

3. A byte is ……………… bits long.


A. 64 B. 8 C. 16 D. base 32
4. Which of the following digits represent base 10 number system?
A. Binary (0 and 1) B. Octal (0-7) C. Decimal (0-9) D. Hexadecimal (0-9, A-F)

5. The value of each column in binary number is ……… times greater than the previous column.
A. two B. eight C. ten D. sixteen

6. The binary number 11 will be referred to as ………………


A. eleven B. one-one C. two D. None of these
Q3. In a classic 8-bit video game, the color of the character Mario is represented using an 8-bit
binary code. The RGB (Red, Green, Blue) values for Mario's outfit are encoded as follows:

Red: 11100100 =
Green: 00000000 = 0 in decimal
Blue: 00001111 =

Convert the binary values into decimal numbers to determine the RGB values for Mario's outfit.

27 26 25 24 23 22 21 20
Red 128 64 32 16 8 4 2 1

…………………………………………………………………………………………………………………………

27 26 25 24 23 22 21 20
Blue 128 64 32 16 8 4 2 1
0 0 0 0 1 1 1 1

…………………………………………………………………………………………………………………………
Learning Alliance
Faisalabad

Name: ________________________ Computer Date: ____________________


Grade VII

Unit # 1
The nature of technology: Storing digital data
1.3 – Adding in binary

Q1. Complete the binary addition for the 4-bit digits 1111+1111

Binary Place values

Number 1

Number 2

Carry

Sum

Q2. Show how to add together two bytes 10101010 + 00001111.

Binary Place values

Number 1

Number 2

Carry

Sum

b. Convert their sum into decimal.

…………………………………………………………………………………………………………………………
Learning Alliance
Faisalabad

Name: ________________________ Computer Date: ____________________


Grade VII

Unit # 1
The nature of technology: Storing digital data
1.4 – Decimal to binary

Q1. Mark the statement as True or False.

a. The largest number you can make with 8bits is 11111111. (T / F)


b. If you try to store the number 255 using 8bits, you`ll get an overflow error. (T / F)
c. Fractions and decimal values cannot be represented using 8 bits. (T / F)
d. The smallest number you can make with 8bits is 00000000. (T / F)

Q2. Convert the decimal numbers 106 and 152 into binary.

106 128 64 32 16 8 4 2 1

…………………………………………………………………………………………………………………………

…………………………………………………………………………………………………………………………

152 128 64 32 16 8 4 2 1

…………………………………………………………………………………………………………………………

…………………………………………………………………………………………………………………………

b. Add the two bytes together and explain what happens.

Binary Place values 128 64 32 16 8 4 2 1

Number 1

Number 2

Carry

Sum

…………………………………………………………………………………………………………………………

…………………………………………………………………………………………………………………………
Learning Alliance
Faisalabad

Name: ___________________ Computer Date: ____________


Grade VII

Unit # 1
The nature of technology: Storing digital data
1.6 – Sound and vision

Q1. Using an 8x8 square grid, create monochrome image with each pixel represented by a
single bit (1 for white and 0 for black). The following bytes represent each line to complete
the image:
00111100
00111100
00000000
10111101
01011010
01100110
10111101
11000011

You might also like