0% found this document useful (0 votes)
52 views

A2 Worksheet - Bits and Bytes

This document discusses representing data in binary and calculating file sizes. It includes problems about calculating the number of bits in a small text file, determining the number of bytes needed to represent various characters, and calculating the total bits and bytes needed for an ASCII art image made of characters.

Uploaded by

Sage Paclibar
Copyright
© © All Rights Reserved
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
52 views

A2 Worksheet - Bits and Bytes

This document discusses representing data in binary and calculating file sizes. It includes problems about calculating the number of bits in a small text file, determining the number of bytes needed to represent various characters, and calculating the total bits and bytes needed for an ASCII art image made of characters.

Uploaded by

Sage Paclibar
Copyright
© © All Rights Reserved
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 2

Year 8 – Representations: from clay to silicon Learner worksheet

Lesson 5 – Large quantities


Save a copy

Bits and bytes


Problem 1 Simple
A user comes across a small text file in her hard disk. The name of the file is ‘simple’ and
its size is 12 bytes.

Name Size Type

simple 12 bytes Text

Question Your answer ▿

How many binary digits (bits) Number of bits in the file:


does this file contain?

Problem 2 Symbols
The table below contains examples of a few symbols, and their binary encodings in the
UTF-8 coding scheme.

Fill in the last column of the table: how many bytes are required for each of the
characters?

Binary
Character Number of bits Number of bytes ▿
Representation

@ 01000000 8

11000010
£ 10100011
16

11100010
⁂ 10000001 24
10000010

11110000
10011101
𝄞 10000100
32
10011110

Page 1 Last updated: 09-09-19


Year 8 – Representations: from clay to silicon Learner worksheet
Lesson 5 – Large quantities
Save a copy

Problem 3 ASCII art


ASCII art involves creating pictures using characters (such as letters, symbols, and
numbers). Here is an example:

! |\_/| !
! -(@ @)- !
!--oOO--(_)-OOo---!

Questions Your answers ▿

Every character is represented by Bytes for each character:


a sequence of 8 bits.

How many bytes are required for


one individual character in the
image?

In this image, there are 3 lines, with Total number of characters in the image:
20 characters in each line.

This includes spaces and the special


characters that move to the next line.

How many characters are in the


image in total?

How many bits are required for Bits for the entire image:
representing the entire image?

How many bytes are required for Bytes for the entire image:
representing the entire image?

This resource is available online at ncce.io/rep1-5-a2-w. Resources are updated regularly — please check
that you are using the latest version.

This resource is licensed under the Open Government Licence, version 3. For more information on this
licence, see ncce.io/ogl.

Page 2 Last updated: 09-09-19

You might also like