Data representation – IGCSE Computer Science (0478)

141 questions · page 3 of 10

0 / 0Answer a question to start your score.
Quick quiz (10)Saved 0
Advertisement
31
0478/11/M/J/24 · Question 3May/June 2024Paper 115 marks
Loading question…
Question text

3
The binary number 10100011 is stored in random access memory (RAM).
A logical left shift of three places is performed on the binary number.
(a) Give the 8-bit binary number that will be stored after the shift has taken place.
… [1]
(b) Tick (3) one box to show which statement about a logical left shift of two places is correct.
A
It would divide the binary number by 2.
B
It would multiply the binary number by 2.
C
It would divide the binary number by 4.
D
It would multiply the binary number by 4.
[1]
(c) 10100011 can be stored as a two’s complement integer.
Convert the two’s complement integer 10100011 to denary. Show all your working.
…
…
…
… [2]
(d) The binary number is measured as a byte because it has 8 bits.
State how many bytes there are in a kibibyte (KiB).
… [1]

32
0478/12/M/J/24 · Question 1May/June 2024Paper 126 marks
Loading question…
Question text

1
Data can be measured in bits.
(a) Give the name of the data storage measurement that is equal to 8 bits.
… [1]
(b) State how many bits there are in a kibibyte (KiB).
… [1]
(c) Give the name of the data storage measurement that is equal to 1024 gibibytes (GiB).
… [1]
(d) A 16-bit colour image has a resolution of 512 pixels wide by 512 pixels high.
Calculate the file size of the image in kibibytes (KiB). Show all your working.
…
…
…
…
…
Answer … KiB
[3]

33
0478/12/M/J/24 · Question 3May/June 2024Paper 1211 marks
Loading question…
Question text

3
Binary is a base 2 number system.
(a) Give the name of the number system that is base 16.
… [1]
(b) Three denary numbers are entered into a computer. The computer converts the numbers and
stores them as binary.
(i)
Give the binary number that would be stored for each of the denary numbers.
10 …
50 …
201 …
[3]
Working space
…
…
…
…
…
(ii)
Explain why the data is converted to binary by the computer.
…
…
…
… [2]
(c) The two binary integers 00110000 and 01100110 are added together.
Add the binary integers using binary addition and show your answer in binary. Show all your
working.
…
…
…
…
… [3]
,
,
(d) The denary integer –32 is stored as a two’s complement integer.
Calculate the two’s complement integer that would be stored.
Show all your working.
…
…
…
…
… [

Advertisement
34
0478/13/M/J/24 · Question 1May/June 2024Paper 133 marks
Loading question…
Question text

1
The size of a file can be measured in different units.
(a) State how many bits there are in a byte.
… [1]
(b) State how many kibibytes (KiB) there are in 2 mebibytes (MiB).
… [1]
(c) Identify the unit of data that is equal to 4 bits.
… [1]

35
0478/13/M/J/24 · Question 2May/June 2024Paper 132 marks
Loading question…
Question text

2
An image has a 16-bit colour depth and a resolution of 1000 × 1750 pixels.
(a) State what is meant by a 16-bit colour depth.
…
… [1]
(b) The resolution of the image is changed to 750 × 1500 pixels.
Give the effect this will have on the file size of the image.
…
… [1]

36
0478/13/M/J/24 · Question 3May/June 2024Paper 1313 marks
Loading question…
Question text

3
A programmer is creating a computer game. One character is not moving correctly.
The programmer needs to debug the program. To do this they need to look at addresses that are
locations in memory.
The addresses are displayed as hexadecimal numbers.
(a) One address is A2F.
(i)
Convert the address to binary.
… [3]
(ii)
Convert the address to denary.
… [1]
Working space
…
…
…
…
(b) The binary number stored for another address is 000110011011.
(i)
Convert the binary number to hexadecimal.
… [3]
(ii)
Convert the binary number to denary.
… [1]
Working space
…
…
…
…
(c) Give one reason why the addresses are displayed in hexadecimal instead of binary.
…
… [1]
(d) Identify two other ways that hexadecimal is used in computer science.
1 …
2 …
[2]
(e) The health value for a character in the computer game can sometimes be a negative value.
The negative values are stored as two’s complement 8-bit integers.
A character has a health value of –25.
Calculate the two’s complement 8-bit integer for –25. Show all your working.
…
…
…
…
…
…

37
0478/12/F/M/24 · Question 1Feb/March 2024Paper 128 marks
Loading question…
Question text

1
Computers represent different types of data in binary.
(a) Tick (✓) one box to show the reason why computers use binary to represent data.
A
Computers only allow 1s and 0s to be entered.
B
Computers are made of switches and gates that can only be on or off.
C
Binary does not need to be converted into other forms of data to be displayed.
D
Both computers and humans can quickly process binary data.
[1]
(b) One form of data is characters.
The American standard code for information interchange (ASCII) denary number for the
character ‘N’ is 78.
(i)
Tick (✓) one box to identify the ASCII denary number for the character ‘Q’.
A
81
B
80
C
79
D
77
[1]
(ii)
Give the binary number for the ASCII denary number for ‘N’.
… [1]
Working space
…
…
…
(iii)
Explain how the word ‘RED’ is represented using a character set.
…
…
…
… [2]
(c) Sound can be represented as binary.
(i)
Explain why recording sound with a higher sampling resolution creates a more accurate
recording.
…
…
…
… [2]
(ii)
Give one other way that the accuracy of a sound recording can be improved.
…
… [1]

38
0478/12/F/M/24 · Question 8Feb/March 2024Paper 127 marks
Loading question…
Question text

8
(a) Hexadecimal can be used to represent binary numbers.
(i)
Convert the denary number 236 into hexadecimal.
…
… [1]
Working space
…
…
…
(ii)
Give one benefit of using hexadecimal instead of binary to represent data.
…
… [1]
(b) Two’s complement can be used to represent positive and negative binary integers.
(i)
Convert the two’s complement integer 10110111 into denary.
Show all your working.
…
…
…
…
… [2]
(ii)
Convert the denary number 45 into an 8-bit two’s complement integer.
…
… [1]
Working space
…
…
…
(c) Logical shifts are performed on binary integers.
State the mathematical effect of a right shift of four places on a positive binary integer.
…
…
… [2]
Permission to reproduce items where third-party owned material protected by copyright is included has been sought and cleared where possible. Every
publisher will be pleased to make amends at the earliest possible opportunity.
To avoid the issue of disclosure of answer-related information to candidates, all copyright acknowledgements are reproduced online in the Cambridge
Assessment International Education Copyright Acknowledgements Booklet. This is produced for each series of examinations and is freely available to download
at ww

Advertisement
39
0478/11/O/N/23 · Question 2Oct/Nov 2023Paper 1114 marks
Loading question…
Question text

2
A car park has a payment machine that allows a customer to pay for their parking.
The cost of parking is displayed as a denary number on a screen on the payment machine.
The cost of parking is stored in two 8-bit binary registers.
For the parking cost of $10.50:
•
register 1 stores the denary value 10 as binary
•
register 2 stores the denary value 50 as binary.
(a) Give the parking cost that would be displayed on the payment machine when the registers
store:
•
register 1: 00010001
•
register 2: 01000110
Parking cost displayed $ …
[2]
Working space
…
…
…
…
(b) The parking cost of $14.98 is displayed on the payment machine.
Give the 8-bit binary numbers that are stored in the registers to display the parking cost.
Register 1 …
Register 2 …
[2]
Working space
…
…
…
…
(c) The payment machine gives the customer a ticket when they have paid their parking cost.
Each ticket has a 4-digit hexadecimal ticket number that is stored as binary.
The binary number 1010000000111101 is stored for a customer’s ticket number.
Give the hexadecimal ticket number that would be displayed on this customer’s ticket.
Hexadecimal ticket number … [4]
Working space
…
…
…
…
(d) Explain why data input into the payment machine needs to be converted to binary.
…
…
…
…

40
0478/11/O/N/23 · Question 5Oct/Nov 2023Paper 1114 marks
Loading question…
Question text

5
A musician is recording herself playing the music for a song on the piano.
(a) Explain how the analogue sound is recorded and converted to digital.
…
…
…
…
…
…
…
…
…
… [5]
(b) State two ways that the accuracy of the recording could be increased.
1 …
2 …
[2]
(c) The musician compresses the sound file using lossless compression instead of lossy
compression.
Explain why the musician would choose to use lossless compression instead of lossy
compression.
…
…
…
…
…
… [3]
(d) The musician types the words for the song into a document.
Two character sets that can be used when converting text to digital are the American standard
code for information interchange (ASCII) and Unicode.
Explain the differences between the ASCII character set and the Unicode character set.
…
…
…
…
..

41
0478/12/O/N/23 · Question 2Oct/Nov 2023Paper 1210 marks
Loading question…
Question text

2
A register stores the binary number:
1
1
1
0
0
0
1
1
(a) Give the denary number for the binary number stored in the register.
… [1]
Working space
…
…
…
(b) Give the hexadecimal number for the binary number stored in the register.
… [2]
Working space
…
…
…
(c) A logical left shift of two places is performed on the binary number stored in the register.
Complete the binary register to show its contents after this logical left shift.
[1]
(d) The negative denary number −99 needs to be stored in the register.
Complete the register to show the binary number that would be stored, using two’s
complement. Show all your working.
Working space …
…
…
…
Register:
[2]
(e) The number 01001100 is added to 11100011
Add the two 8-bit binary numbers, using binary addition.
Give your answer in binary. Show all your working.
…
…
…
…
…
… [4]

42
0478/12/O/N/23 · Question 5Oct/Nov 2023Paper 125 marks
Loading question…
Question text

5
A band is recording their new song. They need to consider the sample rate and sample resolution
of their recording.
(a) Give one benefit of using a higher sample rate to record the song.
…
… [1]
(b) Give one drawback of using a higher sample rate to record the song.
…
… [1]
(c) Describe what is meant by sample resolution.
…
…
…
… [2]
(d) The band wants to compress the sound file, but they do not want any data to be permanently
removed.
Identify the compression method that should be used.
… [1]

43
0478/13/O/N/23 · Question 1Oct/Nov 2023Paper 138 marks
Loading question…
Question text

1
A mobile telephone has built-in input and output devices.
(a) Give two examples of an input device that would be built into a mobile telephone.
1 …
2 …
[2]
(b) Give one example of an output device that would be built into a mobile telephone.
… [1]
(c) The data storage in the mobile telephone can be measured using different units of
measurement.
(i)
State how many bits are equal to a byte.
… [1]
(ii)
State how many kibibytes (KiB) equal a mebibyte (MiB).
… [1]
(d) The mobile telephone has an operating system.
Describe the purpose of the operating system.
…
…
…
…
…
… [3]

Advertisement
44
0478/13/O/N/23 · Question 2Oct/Nov 2023Paper 1313 marks
Loading question…
Question text

2
Humans use a denary number system and computers use a binary number system.
(a) Explain what is meant by a binary number system.
…
…
…
… [2]
(b) Convert the denary numbers 14, 59 and 234 to binary.
14 …
59 …
234 …
[3]
Working space
…
…
…
…
(c) Convert the denary numbers 9, 26 and 65 to hexadecimal.
9 …
26 …
65 …
[3]
Working space
…
…
…
…
(d) Convert the positive denary number 123 to 8-bit binary using two’s complement.
Show all your working.
…
…
…
… [2]
(e) Add the binary values 00110011 and 01111000 using binary addition.
Give your answer in binary. Show all your working.
…
…

45
0478/13/O/N/23 · Question 7Oct/Nov 2023Paper 136 marks
Loading question…
Question text

7
A photographer takes an image with a digital camera. The photographer sets the resolution and
colour depth for the image.
(a) State what is meant by the image resolution.
…
… [1]
(b) State what is meant by the image colour depth.
…
… [1]
(c) Give one benefit of increasing the colour depth of the image.
…
… [1]
(d) The photographer compresses the image using a method that permanently reduces the
colour depth and resolution of the image.
Identify which compression method the photographer uses.
… [1]
(e) One benefit for compressing the image is to reduce the storage space it uses.
Give two other benefits of compressing the image.
1 …
…
2 …
…
[2]

Advertisement