Computer Science 0478 · 8

8.1 Programming concepts

171 questions in this subtopic. Open a question to solve it and check the official answer.

Reset
2024 May-June · Paper 22 · Q6(a)

Programming concepts · 4 marks · official answer ready

(a) Write an algorithm in pseudocode to total the numbers input and to output the total. You do not need to validate the input. ...................................................…

2024 May-June · Paper 22 · Q6(b)

Programming concepts · 4 marks · official answer ready

(b) Write an algorithm in pseudocode to count and output the number of input values that are greater than 100. You do not need to validate the input. .............................…

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(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 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 · 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. .............................................................................................…

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]

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

Programming concepts · 4 marks · official answer ready

(b) State four processes in this algorithm. 1 .....................................................................................................................................…

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

Programming concepts · 3 marks · official answer ready

(c) Meaningful identifiers have not been used in this algorithm. Suggest suitable meaningful identifiers for: The array: A ........................................................…