Computer Science 0478 · 8

Programming

221 questions. Open a question to solve it and check the official answer.

Reset
2025 October-November · Paper 11 · Q5(c)

Programming concepts · 2 marks · official answer ready

(c) Explain one drawback to the elderly customers of robots being used to deliver their groceries. ................................................................................…

2025 October-November · Paper 11 · Q7

Programming concepts · 5 marks · official answer ready

7 A theatre has a microphone on stage that is connected by cables to several speakers around the theatre. A person speaks into the microphone and their voice is output from the sp…

2025 October-November · Paper 12 · Q7(f)(ii)

Programming concepts · 2 marks · official answer ready

(ii) Give two error detection methods that could be used to check for errors in the data after transmission. 1 ....................................................................…

2025 October-November · Paper 13 · Q1(a)

Programming concepts · 1 mark

(a) Tick (✓) one box to show whether a keypad is an example of an input, output, process or storage device. A input B output C process D storage [1]

2025 October-November · Paper 13 · Q1(e)(i)

Programming concepts · 1 mark

(i) Tick (✓) one box to show whether the sensor is an example of an input, output, process or storage device. A input B output C process D storage [1]

2025 October-November · Paper 13 · Q6(d)(iv)

Programming concepts · 1 mark · official answer ready

(iv) Stops execution of the machine code where an error is found and will resume execution of the machine code once the error is fixed. ...........................................…

2025 October-November · Paper 21 · Q3

Programming concepts · 1 mark · official answer ready

3 Tick (✓) one box to identify the operator that returns the quotient of a calculation with the fractional part discarded. A / B DIV C ^ D MOD [1] * 0000800000003 * DFD 3 , ,

2025 October-November · Paper 21 · Q4(a)

Programming concepts · 5 marks · official answer ready

4 (a) A restaurant offers a fixed priced menu. A meal for an adult costs $9.99 and a meal for a child costs $6.99. If there are 6 or more people at a table, a 15% discount is appl…

2025 October-November · Paper 21 · Q6(b)

Programming concepts · 3 marks · official answer ready

(b) Explain how you could modify the pseudocode to validate that each input is a single digit. Any code must be fully explained. ..................................................…

2025 October-November · Paper 21 · Q6(c)

Programming concepts · 2 marks · official answer ready

(c) The 5-digit number needs to be entered as a single input. Describe one verification method that could be applied to the input of the 5-digit number. ..........................…

2025 October-November · Paper 21 · Q7(c)

Programming concepts · 1 mark · official answer ready

(c) State a suitable data type for the variable Count .............................................................................................................................…

2025 October-November · Paper 21 · Q9

Programming concepts · 4 marks · official answer ready

9 A school stores all the students’ attendance data in a file called Attendance.txt Write an algorithm in pseudocode to read a line of text from the file and store this line in th…

2025 October-November · Paper 21 · Q10(a)

Programming concepts · 1 mark · official answer ready

(a) Write pseudocode statements to declare the variables Seconds and Minutes ......................................................................................................…

2025 October-November · Paper 21 · Q10(b)

Programming concepts · 4 marks · official answer ready

(b) The procedure Time(TotalSeconds) takes the number of seconds as a parameter. The procedure converts the value held in the parameter into minutes and seconds and outputs the re…

2025 October-November · Paper 21 · Q11

Arrays · 15 marks · official answer ready

11 The scores for each competitor in an archery competition are recorded. The one-dimensional (1D) array CompetitorName[] is used to store the names of the competitors. The maximu…

2025 October-November · Paper 22 · Q2(b)(i)

Programming concepts · 4 marks · official answer ready

(i) Complete the pseudocode for PROCEDURE NewData PROCEDURE NewData(....................................................................................................) FOR Row 1…

2025 October-November · Paper 22 · Q2(b)(ii)

Programming concepts · 2 marks · official answer ready

(ii) Write the pseudocode to input the number of new contacts and to use procedure NewData. A variable declaration is not required. ...............................................…

2025 October-November · Paper 22 · Q2(c)(i)

Programming concepts · 2 marks · official answer ready

(i) Explain why the given algorithm may not always give the expected results. .....................................................................................................…

2025 October-November · Paper 22 · Q2(c)(ii)

Programming concepts · 2 marks · official answer ready

(ii) Explain how you could improve the algorithm so that the search is more likely to find the required results. ..................................................................…

2025 October-November · Paper 22 · Q4(b)

Programming concepts · 6 marks · official answer ready

(b) An email address can be validated by checking that it contains an @ symbol. Write the pseudocode for an algorithm that will allow an email address to be input and check whethe…