Search Header Logo
S3 CS - Data representation (revision)

S3 CS - Data representation (revision)

Assessment

Presentation

Computers

8th Grade

Hard

Created by

G Alexander-Doyle

Used 31+ times

FREE Resource

9 Slides • 12 Questions

1

S3 Data representation revision

BGE Computing Science - Falkirk High School

2

Binary

Machine language

Data on a computer is all stored in binary code. Binary code consists of 1's and 0's and can be used to store numbers, text, graphics, video and audi.

BGE Computing Science​ - Falkirk High Schoo

Advantages of binary

  • Calculations are kept simple

  • Degraded data is still recognisable

  • ​Simplicity involves in only having to detect two voltage levels

3

Converting Binary to Decimal

The problem

Convert the binary number 10110011 to decimal.

Draw a table with 8 columns and 2 rows. In the far right column place a 1 in the top row, double the number as you move right-left. Insert the binary number and count the numbers with a 1.

BGE Computing Science​ - Falkirk High School

​128

​64

​32

​16

​8

​4

​2

​1

​1

0​

​1

1​

​0

0​

​1

1​

128 + 32 + 16 + 2 + 1 = 179

4

Multiple Choice

Question image

Which of the following decimal numbers match with the binary number - 01101101

1

107

2

108

3

109

4

110

5

Multiple Choice

Question image

Which of the following decimal numbers match with the binary number - 11001111

1

207

2

208

3

209

4

210

6

Multiple Choice

Question image

Which of the following decimal numbers match with the binary number - 11101100

1

235

2

236

3

238

4

240

7

Multiple Choice

Question image

Which of the following numbers represents the highest decimal number which can be represented with 8 bits?

1

15

2

253

3

254

4

255

8

Converting Decimal to Binary

The problem

Convert the binary number 165 to decimal.

Draw a table with 8 columns and 2 rows. In the far right column place a 1 in the top row, double the number as you move right-left.

Move from left to right placing a 1 under each column that results in the number being less than or the same as the target number.​

BGE Computing Science​ - Falkirk High School

​128

​64

​32

​16

​8

​4

​2

​1

​1

​​0

128 + 64 = 192

9

Converting Decimal to Binary

The problem

BGE Computing Science​ - Falkirk High School

​128

​64

​32

​16

​8

​4

​2

​1

​1

​​0

​1

0​

128 + 32 + 16 = 176

Convert the binary number 165 to decimal.

128 + 32​ = 160

​128

​64

​32

​16

​8

​4

​2

​1

​1

​​0

​1

​128

​64

​32

​16

​8

​4

​2

​1

​1

​​0

​1

0​

0​

128 + 32 + 8 = 168

10

Converting Decimal to Binary

The problem

BGE Computing Science​ - Falkirk High School

​128

​64

​32

​16

​8

​4

​2

​1

​1

​​0

​1

0​

0

1​

0​

1​

128 + 32 + 4 + 2 = 166

Convert the binary number 165 to decimal.

128 + 32​ + 4 = 164

128 + 32 + 8 = 165

​128

​64

​32

​16

​8

​4

​2

​1

​1

​​0

​1

0​

0

1​

​128

​64

​32

​16

​8

​4

​2

​1

​1

​​0

​1

0​

0

1​

0​

11

Multiple Choice

Question image

Which of the following binary numbers match with the decimal number - 189

1

10111101

2

10111100

3

11011101

4

10101101

12

Multiple Choice

Question image

Which of the following binary numbers match with the decimal number - 150

1

10010010

2

10010100

3

10010111

4

10010110

13

ASCII

Representing text

ASCII stands for American Standard Code for Information Interchange. It is used to represent text in a computer system.

  • ASCII uses 8 bits to represent each character.

  • Control characters such as tab, delete and backspace are also represented. They cause an effect on-screen but do not produce a printed character. ​

BGE Computing Science - Falkirk High School​

14

Multiple Choice

Question image

How many bits does ASCII use to represent a character?

1

7

2

8

3

1

4

16

15

Fill in the Blanks

media image

Type answer...

16

Multiple Choice

Question image

Which of the following is an example of a control character?

1

A

2

8

3

Tab

4

!

17

Graphics

Bit-mapped graphics

  • Bit-mapped graphics are stored as a 2-D array of pixels. The number of pixels is known as the resolution.

  • In a black and white image, we only need two states to be able to store the graphics information.

  • As more colours are added to the picture, more bits must be used to store each pixel. 

  • The number of bits used to store the colour information is known as the colour-depth.​

BGE Computing Science​ - Falkirk High School

media

18

Graphics

Vector graphics

  • Vector graphics are made up of individual objects layered together to make a graphic.

  • ​Each object has a set of attributes, such as line colour, line weight and coordinates, stored.

BGE Computing Science​ - Falkirk High School

media

19

Multiple Choice

Question image

Bit-map graphics tend to have large file sizes.

1

TRUE

2

FALSE

20

Multiple Choice

Question image

The file size of a vector graphic increases when more shapes are added to the image.

1

TRUE

2

FALSE

21

Multiple Choice

Question image

Bit-mapped graphics allow for individual shapes to be arranged in layers.

1

TRUE

2

FALSE

S3 Data representation revision

BGE Computing Science - Falkirk High School

Show answer

Auto Play

Slide 1 / 21

SLIDE