11.1 Programming basics
104 questions in this subtopic. Open a question to solve it and check the official answer.
Programming basics · 19 marks · official answer ready
(e) DateReturned will have to be later than HandInDate, the same or earlier than the For current date, and a mark has been entered. Examiner's Use Write pseudocode that will test …
Programming basics · 19 marks · official answer ready
(i) Complete the trace table using the data in the table above. Count Mark Mark < 40 Output [4] 9
Programming basics · 16 marks · official answer ready
(ii) What useful information does this pseudocode output? For Examiner's Use [1]
Programming basics · 17 marks · official answer ready
(iii) Meena has written the above pseudocode with features that make it easy to understand. State two such features. Feature 1 Feature 2 [2]
Programming basics · 16 marks · official answer ready
(iv) State one other feature that could be introduced to this pseudocode to make it easier to understand. [1]
Programming basics · 16 marks · official answer ready
(v) Write pseudocode to demonstrate your answer to (iv). [1] 10
Programming basics · 17 marks · official answer ready
(vii) Could this pseudocode be written using a FOR-ENDFOR structure? Justify your answer. [2] 11
Programming basics · 6 marks · official answer ready
(b) Design the interface. It must allow for entry of marks and the output of the average mark. Remember, one of her friends has a sight impairment. [6] 11
Programming basics · 3 marks · official answer ready
(i) Batch processing [3]
Programming basics · 3 marks · official answer ready
(i) Batch processing [3]
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…
