Download as docx, pdf, or txt
Download as docx, pdf, or txt
You are on page 1of 10

INTERNATIONAL MAKKHAYAR

Cambridge IGCSE™

COMPUTER SCIENCE 0478/21


Paper Theory & Algorithm March 2024

NAME - ………………………………………………………………….. 2 hours

INSTRUCTIONS
● Carry out all instructions in each step.
● At the end of the examination, put all your document into the Assessment Record Folder.
● You must not have access to either the internet or any email system during this examination.

INFORMATION
● The total mark for this paper is 60.
● The number of marks for each question or part question is shown in brackets [ ].

Page 1 of 10
INTERNATIONAL MAKKHAYAR
1. (a)Tina is creating a website for charity events. She uses HTML to
create the website.
She uses the hexadecimal colour code#43B7F0 as the background
colour for her website.
The hexadecimal colour code #43B7F0 is stored in three 8−bit
registers.
Give the 8−bit binary values for each part of the hexadecimal code.

43

B7

F0

[6]

(b) Four denary to 8−bit binary conversions are given.

Tick (✓) to show if each denary to 8−bitbinary conversion is


Corrector Incorrect.

Binary Correct Incorrect


Denary
Conversion () ()
145 10010001
179 10110101
11 00010011
100 01100010
[4]

(c) Four statement types and four examples are shown below. Draw
a line to connect each statement type to the correct example.

Page 2 of 10
INTERNATIONAL MAKKHAYAR

[3]

2. (a)An image is stored on a computer. The image is 16-bit colour and


is 100 pixels high and 150 pixels wide.
Calculate the file size of the image in bytes. Show all your working.
.................................................................................................................
......................
.................................................................................................................
......................
.................................................................................................................
......................
.................................................................................................................
......................
.................................................................................................................
......................

Answer ................................................ bytes


[3]
(b) Each letter in ASCII can also be represented as a hexadecimal
value.
The word KEY has the 8-bit binary values:

Page 3 of 10
INTERNATIONAL MAKKHAYAR
Convert the three 8-bit binary values into hexadecimal.

01001011 ...............................................

01000101 ...............................................

01011001 ...............................................

[3]

3. A new computer comes with primary and secondary storage.


Data storage is measured using binary denominations.
Complete each conversion.
8 bytes = .............................. nibbles
512 kibibytes (KiB) = .............................. mebibytes (MiB)
4 gibibytes (GiB) = .............................. mebibytes (MiB)
1 exbibyte (EiB) = .............................. pebibytes (PiB)
[4]
Working space
.......................................................................................................................................

.......................................................................................................................................

.......................................................................................................................................

.......................................................................................................................................

.......................................................................................................................................

.......................................................................................................................................

4. An audio CD uses 40960 samples per second, with 16 bits being used per sample.

The music being sampled uses two channels to allow for stereo recordings.

Calculate the file size for a 1024 second recording. Give your answer in MiB.

.......................................................................................................................................

.......................................................................................................................................

.......................................................................................................................................

.......................................................................................................................................

.......................................................................................................................................

Page 4 of 10
INTERNATIONAL MAKKHAYAR
.......................................................................................................................................

[4]

5. (a)Convert the following two denary numbers into 8-bit binary numbers which use the two’s
complement format.

( i ) +47

( ii ) −59

[2]
(b)Convert the following two binary numbers, written in two’s complement format, into
denary.

(i)11001110

.......................................................................................................................................

.......................................................................................................................................

( ii ) 1 1 1 1 1 1 1 0

.......................................................................................................................................

.......................................................................................................................................

[2]
6. This flowchart inputs the type of passenger for a survey: S for Senior, A for Adult, C
for Child. All other values are ignored, apart from Z which ends the process.

Page 5 of 10
INTERNATIONAL MAKKHAYAR

Complete the trace table for the passenger input data:

S, S, S, A, C, C, C, A, A, A, A, W, S, S, D, C, Z, D, S

Page 6 of 10
INTERNATIONAL MAKKHAYAR

[6]
7. Write a pseudocode to check prices that is entered by user is below
$10.00 and then output the suitable massages.
[5]

.......................................................................................................................................

.......................................................................................................................................

.......................................................................................................................................

.......................................................................................................................................

.......................................................................................................................................

.......................................................................................................................................

.......................................................................................................................................

Page 7 of 10
INTERNATIONAL MAKKHAYAR
8. Draw a flowchart to input 100 numbers, select and print the largest number and smallest
number.
[8]

Page 8 of 10
INTERNATIONAL MAKKHAYAR
9. (a) Convert the following denary numbers into 8-bit binary numbers:

i 123 ii 55 iii 180 [3]

(b) Carry out the following additions using your binary values from part a:

i 123 + 55 ii 123 + 180 [4]

Page 9 of 10
INTERNATIONAL MAKKHAYAR
10. The stopwatch is started again and then stopped. When the watch is stopped, the 8-bit binary
registers show:

Write the denary values that will now be shown on the stopwatch.

[3]

[ Total: 60 ]

Page 10 of 10

You might also like