11.1 Programming basics
22 questions in this subtopic. Open a question to solve it and check the official answer.
Programming basics · 2 marks · official answer ready
(i) State an input device which would be suitable for use in this application. Justify your choice. Device Justification [2]
Programming basics · 2 marks · official answer ready
(ii) State an output device which would be suitable for use in this application. Justify your choice. Device Justification [2]
Programming basics · 6 marks · official answer ready
2 [2] (d) Each subtask is coded as a program module. Explain how it is possible to use the same variable name for different variables in different modules. [2] (e) When validating…
Programming basics · 4 marks
2 [2] (e) When validating the type of bike (road, hybrid, track) Soni uses INPUT Bike IF (Bike = “road”) (Bike = “hybrid”) (Bike = “track”) THEN OUTPUT Bike “ is valid” ELSE OUTPU…
Programming basics · 2 marks
2 [2] (f) All bikes in stock have a bike ID. Each bike ID is six characters long and has the format For BIKEXX, where X is a digit. Examiner's Use For example, BIKE65 is a valid b…
Programming basics · 7 marks · official answer ready
3 [6] 6 2 Philipe is trying different ways of designing the process of entering data into an array. For He declares a variable called ArraySize and sets it to 3. Examiner's Use He…
Programming basics · 9 marks
3 [6] 6 2 Philipe is trying different ways of designing the process of entering data into an array. For He declares a variable called ArraySize and sets it to 3. Examiner's Use He…
Programming basics · 19 marks
(i) State the parameters of the function. [2]
Programming basics · 19 marks
(ii) Write the function header in the language you used in part (a). [2]
Programming basics · 7 marks · official answer ready
3 [6] 6 2 Philipe is trying different ways of designing the process of entering data into an array. For He declares a variable called ArraySize and sets it to 3. Examiner's Use He…
Programming basics · 9 marks
3 [6] 6 2 Philipe is trying different ways of designing the process of entering data into an array. For He declares a variable called ArraySize and sets it to 3. Examiner's Use He…
Programming basics · 19 marks
(i) State the parameters of the function. [2]
Programming basics · 19 marks
(ii) Write the function header in the language you used in part (a). [2]
Programming basics · 16 marks
(a) Using a high-level programming language, write the code to perform this task. (Ensure that you use meaningful variable names and lay the code out clearly.) Programming languag…
Programming basics · 16 marks · official answer ready
4 [8] 6 2 Gina is developing her programming skills in string handling. For She is going to input one string. Examiner's Use The string contains letters and zero or more '*' chara…
Programming basics · 16 marks · official answer ready
4 [8] 6 2 Gina is developing her programming skills in string handling. For She is going to input one string. Examiner's Use The string contains letters and zero or more '*' chara…
Programming basics · 19 marks · official answer ready
4 [8] 6 2 Gina is developing her programming skills in string handling. For She is going to input one string. Examiner's Use The string contains letters and zero or more '*' chara…
Programming basics · 13 marks
4 [8] 6 2 Gina is developing her programming skills in string handling. For She is going to input one string. Examiner's Use The string contains letters and zero or more '*' chara…
Programming basics · 13 marks
(ii) 7 MOD 4
Programming basics · 20 marks
(iii) 7 DIV 4 [3] (b) Raul has Y litres of oil to put into drums. Each drum can hold X litres of oil. Write expressions to calculate: (i) the number of full drums [1] (ii) the num…
