← All subjects IGCSE Computer Science · 0478
Cambridge IGCSE · 0478 547 questions

Computer Science

Try it free — the AI marks 3 answers a day. A free account marks 30 a day. Start with a Drill below — the question cards need an account. Sign up free →
Data representation
Quick drill
Start →
Paper 1
Paper 1 · Hardware and embedded systems
9 Q
Paper 1
Paper 1 · Hardware and storage
4 Q
Paper 2
Paper 2 · Algorithms & logic
39 Q
Explanation 1 mark
Give the name of the programming construct shown in the pseudocode.
Sign up to open
Explanation 1 mark
State the name of the string function used to return the number of characters stored in a string variable.
Sign up to open
Explanation 1 mark
State the purpose of this algorithm.
Sign up to open
Explanation 1 mark
Give the name of the type of iteration (loop) shown in this pseudocode.
Sign up to open
Explanation 1 mark
State the most suitable data type for the variable Distance.
Sign up to open
Explanation 1 mark
Write a line of pseudocode that opens the text file Results.txt so that data can be written to it.
Sign up to open
Explanation 1 mark
State the data type most suitable for storing the price of an item, such as 4.65.
Sign up to open
Explanation 1 mark
Give the name of the type of iteration shown in the pseudocode.
Sign up to open
Explanation 1 mark
State the name given to Score in the procedure header PROCEDURE PrintBadge(Score : INTEGER).
Sign up to open
Explanation 2 marks
State the reason why the algorithm does not work as expected and explain how the algorithm could be corrected. Any code used must be fully explained.
Sign up to open
Explanation 2 marks
Write a pseudocode statement to set the final cost of the booking to 2 decimal places. You do not need to rewrite the whole algorithm.
Sign up to open
Explanation 2 marks
Complete the structured query language (SQL) statement to display only the names of the members who have not paid their subscription. Explain the f...
Sign up to open
Explanation 2 marks
Write the pseudocode to input the number of new books and to use the procedure AddBooks. A variable declaration is not required.
Sign up to open
Explanation 2 marks
A membership number is entered by a member of staff. Describe one verification method that could be applied to the input of the membership number.
Sign up to open
Explanation 3 marks
Explain how you could modify the pseudocode to validate that each mark entered is between 0 and 100 inclusive. Any code must be fully explained.
Sign up to open
Explanation 3 marks
Give the output that would be produced by the structured query language (SQL) statement.
Sign up to open
Explanation 3 marks
Describe the processes carried out by the algorithm.
Sign up to open
Explanation 3 marks
Write the pseudocode to implement a range-check validation on the age entered. You do not need to rewrite the whole algorithm.
Sign up to open
Explanation 3 marks
Complete the structured query language (SQL) statement to list the equipment currently on loan. The list must contain only the titles and the names...
Sign up to open
Explanation 3 marks
Identify the line numbers of the three errors in the pseudocode and suggest a correction for each error.
Sign up to open
Explanation 4 marks
Describe the logic circuit you would draw for the given logic expression. Each logic gate must have a maximum of two inputs and the expression must...
Sign up to open
Explanation 4 marks
Write the procedure Convert(TotalGrams) in pseudocode. It takes a number of grams as a parameter, converts it into whole kilograms and the remainin...
Sign up to open
Explanation 4 marks
Complete the pseudocode for PROCEDURE AddBooks so that it stores the data for a number of new books at the start of the 2D array Books[].
Sign up to open
Explanation 4 marks
Explain why the search algorithm may not always give the expected results, and explain how it could be improved so that it is more likely to find t...
Sign up to open
Explanation 4 marks
Write the pseudocode required to declare and initialise the array AirportCode[].
Sign up to open
Explanation 4 marks
Complete a structure diagram for the given parts of the online food-ordering system. Explain the sub-systems your structure diagram would contain.
Sign up to open
Explanation 4 marks
Complete the SQL statement to list only the species, family and lifespan of all garden birds whose typical lifespan is at least 4 years, sorted in ...
Sign up to open
Explanation 4 marks
Write an algorithm in pseudocode to input the number of adult foot passengers and child foot passengers for a ferry booking, calculate the total co...
Sign up to open
Explanation 4 marks
Explain how the algorithm could be changed so that it repeatedly asks for the number of adult foot passengers if the number input is less than 1. A...
Sign up to open
Explanation 4 marks
Write an algorithm in pseudocode to read a line of text from the file Scores.txt and store this line in the variable NextScore.
Sign up to open
Explanation 4 marks
Identify the line numbers of the four errors in the pseudocode and suggest a correction for each error.
Sign up to open
Explanation 5 marks
Write an algorithm in pseudocode to input the number of adult and child tickets, calculate the total cost of the tickets applying a group discount ...
Sign up to open
Explanation 5 marks
Write pseudocode statements to define the procedure StoreScore with the parameter Score, and store the value of the score in the file Results.txt.
Sign up to open
Explanation 5 marks
Identify the line numbers of five errors in the pseudocode and suggest a correction for each error.
Sign up to open
Explanation 6 marks
Write the algorithm in pseudocode to input a name, search the array MemberList for that name, and output the position at which it is found, or outp...
Sign up to open
Explanation 6 marks
Write the pseudocode for an algorithm that inputs a password and checks whether it contains a # symbol, then outputs a suitable message with the re...
Sign up to open
Explanation 15 marks
Write a program in pseudocode (with comments) that inputs and validates the round scores for each competitor in a quiz league, calculates each comp...
Sign up to open
Explanation 15 marks
Write a program (with comments) that spins an 8-segment spinner 80 000 times, counts how often each segment is landed on, sorts the counts into des...
Sign up to open
Explanation 15 marks
Write a program in pseudocode (with comments) that inputs and validates the names of two players, generates 50 random whole numbers between 1 and 6...
Sign up to open
Paper 1
Paper 1 · Data representation
4 Q
Paper 1
Paper 1 · The CPU and the FDE cycle
2 Q
Paper 1
Paper 1 · Data transmission
12 Q
Explanation 1 mark
State the name of the method of data transmission in which data can only ever travel in one direction.
Sign up to open
Explanation 1 mark
State the name of the data transmission method in which data can travel in both directions, but in only one direction at a time.
Sign up to open
Explanation 1 mark
State what the abbreviation ARQ stands for in error detection.
Sign up to open
Explanation 1 mark
Give the name of the final section of a packet, which can contain error-checking data.
Sign up to open
Explanation 1 mark
State one benefit of using serial transmission rather than parallel transmission to send data over a long distance.
Sign up to open
Explanation 1 mark
State the name of the error detection method that adds an extra bit to each byte so that the number of 1s matches an agreed odd or even parity.
Sign up to open
Explanation 2 marks
A games controller is connected to a console using a universal serial bus (USB) connection. Explain how data is sent from the controller to the con...
Sign up to open
Explanation 2 marks
A film is streamed from a cloud server to a smart television. The received data is checked for errors. Explain how errors may occur in the data dur...
Sign up to open
Explanation 3 marks
A photograph is uploaded to a cloud server and an echo check is used to check for errors. Explain how the echo check would detect any errors in the...
Sign up to open
Explanation 4 marks
Inside a computer, data is sent between two internal components using parallel half-duplex data transmission. Explain how data is transmitted using...
Sign up to open
Explanation 4 marks
Two people take part in a video call, sending video and audio data to each other at the same time. This uses serial full-duplex data transmission. ...
Sign up to open
Explanation 5 marks
A lecture hall has a single microphone on the stage that is connected by a long cable to several loudspeakers around the hall. A person speaks into...
Sign up to open
Paper 1
Paper 1 · Interrupts
2 Q
Paper 1
Paper 1 · Software
7 Q
Paper 1
Paper 1 · The internet and its uses
2 Q
Paper 1
Paper 1 · Cyber security
6 Q
Paper 1
Paper 1 · Automated and emerging technologies
12 Q
Explanation 1 mark
State who assigns the media access control (MAC) address to a network-enabled device.
Sign up to open
Explanation 1 mark
Give the name of the output component that a microprocessor sends a signal to when it needs to physically switch a device on or off.
Sign up to open
Explanation 2 marks
The smart doorbell is an example of an embedded system. Explain why the smart doorbell is an embedded system.
Sign up to open
Explanation 2 marks
Some of the pizza restaurant's customers are elderly. Explain one drawback to these customers of robots being used to deliver their food.
Sign up to open
Explanation 2 marks
A pizza restaurant uses robots to deliver pizzas to homes in the local area. Explain one benefit to the restaurant of using robots to deliver its p...
Sign up to open
Explanation 3 marks
In a football video game, the computer-controlled players use AI. Explain how the AI can be used to improve the movements and actions of the comput...
Sign up to open
Explanation 3 marks
The pizza delivery robots have artificial intelligence (AI). Give three ways the robots could make use of AI.
Sign up to open
Explanation 3 marks
A smart doorbell has a camera and can send a video feed to a phone, but it cannot be described as a robot. Explain why the smart doorbell is not a ...
Sign up to open
Explanation 3 marks
A warehouse uses robots to move boxes of stock between shelves. Describe the characteristics of a robot.
Sign up to open
Explanation 3 marks
A greenhouse uses a temperature sensor and a microprocessor to keep the air at a constant temperature. The sensor continuously sends data to the mi...
Sign up to open
Explanation 3 marks
A car uses artificial intelligence (AI) to help it drive itself. Describe what is meant by AI.
Sign up to open
Explanation 4 marks
A smart doorbell has machine learning capabilities and is used to recognise the faces of family members. Explain how the smart doorbell can use mac...
Sign up to open
Paper 1
Paper 1 · The internet and cyber security
2 Q
Quick drills · instant marking
Definitions, facts & calculations