Data representation – IGCSE Computer Science (0478)
141 questions · page 8 of 10
Question text
7
David is writing a program using a high-level language. The program will be published and sold for
profit.
(a) David uses an interpreter when creating the computer program.
State three features of an interpreter.
Feature 1 …
…
Feature 2 …
…
Feature 3 …
…
[3]
(b) David compiles the program when he has completed it.
Explain two benefits of compiling the program.
Benefit 1 …
…
…
…
Benefit 2 …
…
…
…
[4]
(c) David needs to send a large section of the programming code as an email attachment.
He uses lossless compression to reduce the file size.
Explain how the file size is reduced.
…
…
…
…
…
… [3]
Question text
12 Explain the difference between a Musical Instrument Digital Interface (MIDI) file and a MP3 file.
…
…
…
…
…
…
…
… [4]
Question text
1
Jane answers an examination question about computers and data correctly.
Six different words or numbers have been removed from her answer.
Complete the sentences in Jane’s answer, using the list given. Not all items in the list need to be
used.
•
2
•
10
•
16
•
analogue
•
binary
•
denary
•
digital
•
hexadecimal
As humans, we process … data, but a computer cannot
process this type of data. For a computer to be able to process data it needs to be
converted to … data.
As humans, we mostly use a … number system;
this is a base … number system.
Computers use a … number system;
this is a base … number system.
[6]
Question text
2
Dheeraj identifies three hexadecimal numbers.
Write the denary number for each of the three hexadecimal numbers:
2A …
101 …
21E …
[3]
Working Space
…
…
…
…
…
Question text
3
The three binary numbers in the registers A, B and C have been transmitted from one computer to
another.
Parity bit
Register A
1
0
0
1
1
0
0
0
Register B
0
1
1
0
0
1
1
1
Register C
1
0
0
1
1
0
0
1
One binary number has been transmitted incorrectly. This is identified through the use of a parity bit.
Identify which register contains the binary number that has been transmitted incorrectly. Explain
the reason for your choice.
The binary number that has been transmitted incorrectly is in Register …
Explanation …
…
…
…
…
…
[4]
Question text
4
Michele wants to email a file to Elsa. The file is too large so it must be compressed.
(a) Name two types of compression that Michele could use.
Compression type 1 …
Compression type 2 …
[2]
(b) The file Michele is sending contains the source code for a large computer program.
Identify which type of compression would be most suitable for Michele to use.
Explain your choice.
Compression type …
Explanation …
…
…
…
…
…
[4]
Question text
1
Different units of data can be used to represent the size of a file, as it changes in size.
Fill in the missing units of data, using the list given:
•
byte
•
gigabyte (GB)
•
megabyte (MB)
•
nibble
The units of data increase in size from smallest to largest.
Smallest
bit
… ..
… ..
kilobyte (kB)
… ..
… ..
Largest
terabyte (TB)
[4]
Question text
2
(a) Nancy has captured images of her holiday with her camera. The captured images are stored
as digital photo files on her camera.
Explain how the captured images are converted to digital photo files.
…
…
…
…
…
…
…
… [4]
(b) Nancy wants to email the photos to Nadia.
Many of the photos are very large files, so Nancy needs to reduce their file size as much as
possible.
Identify which type of compression would be most suitable for Nancy to use. Explain your
choice.
Compression type …
Explanation …
…
…
…
…
…
[4]
Question text
3
A stopwatch uses six digits to display hours, minutes and seconds.
The stopwatch is stopped at:
0 2
3 1
5 8
Hours
Minutes
Seconds
An 8-bit register is used to store each pair of digits.
(a) Write the 8-bit binary numbers that are currently stored for the Hours, Minutes and Seconds.
Hours
Minutes
Seconds
[3]
(b) The stopwatch is started again and then stopped.
When the watch is stopped, the 8-bit binary registers show:
Hours
0
0
0
0
0
1
0
1
Minutes
0
0
0
1
1
0
1
0
Seconds
0
0
1
1
0
1
1
1
Write the denary values that will now be shown on the stopwatch.
Hours
Minutes
Seconds
[3]
Question text
4
Jafar is using the Internet when he gets the message:
“D03, page is not available”
Jafar remembers that hexadecimal is often used to represent binary values in error codes.
Convert the hexadecimal number in the error message into 12-bit binary.
[3]
Question text
5
The three binary numbers in the registers X, Y and Z have been transmitted from one computer to
another.
Parity bit
Register X
1
0
0
1
0
0
1
0
Register Y
1
1
1
0
0
1
1
1
Register Z
1
1
1
0
1
0
0
1
Only one binary number has been transmitted correctly. This is identified through the use of a
parity bit.
Identify which register contains the binary number that has been transmitted correctly. Explain
the reason for your choice.
The binary number that has been transmitted correctly is in Register …
Explanation …
…
…
…
…
…
[4]
Question text
5
(a) Convert the denary number 107 to binary.
… [1]
(b) Represent the denary number 300 as it would be stored in a 12-bit binary register.
… [2]
(c) Convert the denary number 179 to hexadecimal.
… [2]
Question text
12 An image is to be stored electronically.
The image is 256 pixels high by 200 pixels wide with a 16-bit colour depth.
Calculate the file size of the image. You must show all of your working.
File size … kB
[3]
Question text
5
The IP address of a computer is stored as a set of four 8-bit binary numbers.
The network administrator converts each binary number into hexadecimal.
(a) Complete the table to show the hexadecimal equivalent of the binary IP address.
The first number has already been converted.
Binary IP address
11000100
00010000
11111110
00001001
Hexadecimal
C4
[3]
(b) Explain why the network administrator uses hexadecimal.
…
…
…
… [2]
Question text
9
A 32-second sound clip will be recorded. The sound will be sampled 16000 times a second.
Each sample will be stored using 8 bits.
Calculate the file size in kilobytes. You must show all of your working.
File Size … kB
[3]