Computer Science 0478 · 8

Programming

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

Reset
2024 May-June · Paper 23 · Q3

Programming concepts · 4 marks · official answer ready

3 Describe the characteristics of the string and char data types and give an example of each. String ..............................................................................…

2024 May-June · Paper 23 · Q4(b)

Arrays · 4 marks · official answer ready

(b) Write the pseudocode that you could add to the end of this algorithm to output the contents of the array. Make sure that the output ends when the data in the array ends. .....…

2024 May-June · Paper 23 · Q4(c)

Programming concepts · 4 marks · official answer ready

(c) Explain how you could alter the original corrected algorithm to make sure that the number of elements being added to the array does not exceed the maximum size of the array (5…

2024 May-June · Paper 23 · Q5(d)

Programming concepts · 2 marks · official answer ready

(d) State a more appropriate identifier for each of the variables L, S, T and A Original identifier Improved identifier L S T A [2]

2024 May-June · Paper 23 · Q7(a)

Programming concepts · 4 marks · official answer ready

7 (a) The string operation SUBSTRING(FullText, X, Y) returns a string from FullText beginning at position X that is Y characters long. The first character in FullText is in positi…

2024 May-June · Paper 23 · Q7(b)

Programming concepts · 3 marks · official answer ready

(b) Write the pseudocode statements to: • store the content of the variable you created in part (a) to a text file named "Subjects.txt" • close the text file at the end of the alg…

2024 May-June · Paper 23 · Q9

Arrays · 15 marks · official answer ready

9 A one-dimensional (1D) array Teams[] contains the names of 10 football teams in a local league. A two-dimensional (2D) array Results[] stores, for each team, the total number of…

2024 February-March · Paper 12 · Q3(b)(iii)

Programming concepts · 5 marks · official answer ready

(iii) A processor is currently executing a program. The processor receives an interrupt. Explain how the processor manages the current program and the interrupt. .................…

2024 February-March · Paper 12 · Q6(b)(ii)

Programming concepts · 2 marks · official answer ready

(ii) Identify one other sensor that the self-driving tractor might use and how it will use the sensor. Sensor .....................................................................…

2024 February-March · Paper 12 · Q8(c)

Programming concepts · 2 marks · official answer ready

(c) Logical shifts are performed on binary integers. State the mathematical effect of a right shift of four places on a positive binary integer. ..................................…

2024 February-March · Paper 22 · Q4

Programming · 3 marks · official answer ready

4 Identify three data types used in programming. 1 ................................................................................................................................…

2024 February-March · Paper 22 · Q5(b)(i)

Programming concepts · 3 marks · official answer ready

(i) Write pseudocode to reject the input of values less than zero for variables Cost and Sell .....................................................................................…

2024 February-March · Paper 22 · Q6

Programming concepts · 4 marks · official answer ready

6 Describe two types of iteration that a programmer can use whilst writing a program. .............................................................................................…

2024 February-March · Paper 22 · Q11

Arrays · 15 marks · official answer ready

11 Students in a class are recording the amount of time in minutes spent in front of a screen for each day of the week. The one-dimensional (1D) array StudentName[] contains the n…

2023 October-November · Paper 11 · Q1(a)

Programming concepts · 1 mark

(a) The student uses a keyboard to complete his schoolwork. Tick (3) one box to show which type of device the keyboard is. A input B memory C output D storage [1]

2023 October-November · Paper 11 · Q1(b)

Programming concepts · 1 mark

(b) The student uses a printer to print his schoolwork. Tick (3) one box to show which type of device the printer is. A input B memory C output D storage [1]

2023 October-November · Paper 11 · Q2(e)

Programming concepts · 4 marks · official answer ready

(e) When a customer is leaving the car park they arrive at a barrier. The customer needs to insert their ticket into a system at the barrier. This system reads the ticket number t…

2023 October-November · Paper 21 · Q2

Programming concepts · 1 mark · official answer ready

2 Tick (3) one box to show how a value can be passed to a procedure. A function B parameter C return D subroutine [1]

2023 October-November · Paper 21 · Q3

Programming concepts · 4 marks · official answer ready

3 Four descriptions of data and five data types are shown. Draw one line to link each description to the most appropriate data type. Not all data types will be used. Description D…

2023 October-November · Paper 21 · Q4

Programming concepts · 3 marks · official answer ready

4 Circle the three words representing places where data may be stored. array constant dimension input output procedure variable [3]