8.1 Programming concepts
171 questions in this subtopic. Open a question to solve it and check the official answer.
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. ...................................................…
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. .............................…
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 ..............................................................................…
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…
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]
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…
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…
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. .................…
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 .....................................................................…
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. ..................................…
Programming concepts · 3 marks · official answer ready
(i) Write pseudocode to reject the input of values less than zero for variables Cost and Sell .....................................................................................…
Programming concepts · 4 marks · official answer ready
6 Describe two types of iteration that a programmer can use whilst writing a program. .............................................................................................…
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]
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]
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…
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]
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…
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]
Programming concepts · 4 marks · official answer ready
(b) State four processes in this algorithm. 1 .....................................................................................................................................…
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 ........................................................…
