Programming
56 questions. Open a question to solve it and check the official answer.
Constructs · 1 mark · official answer ready
(iii) application software [1] Students in a school use computers when studying science.
Constructs · 4 marks · official answer ready
3 Two output formats are sound and animation. For each format state an application where it would be appropriate. Justify your choice in each case. (i) Sound Application Justifica…
Constructs · 4 marks · official answer ready
(c) Describe how buffers and interrupts are used to control the transfer of data from a hard disk to primary memory on a stand-alone computer system. [4] 8
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]
Constructs · 4 marks · official answer ready
3 Two output formats are graphs and hard copy reports. For each format state an application where it would be appropriate. Justify your choice in each case. (i) Graphs Application…
Constructs · 4 marks · official answer ready
(c) Describe how buffers and interrupts are used to control the transfer of data from primary memory to a printer on a stand-alone computer system. [4] 8
Constructs · 4 marks · official answer ready
(c) Describe how buffers and interrupts are used to control the transfer of data from the primary memory to a hard disk on a stand-alone computer system. [4] 8
Constructs · 2 marks · official answer ready
(a) Describe what is meant by a sequential file in this case. [2]
Constructs · 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…
Constructs · 16 marks
8 [10] 5 (ii) Explain why Bike46 is an invalid bike ID. For Examiner's Use State the line number of your code in part (f)(i) which detects that it is invalid. Line Number [2] (b) …
Programming · 18 marks
(iii) Write down two reserved words from your code in (i). Programming language Words [2] 10
Structured programming · 39 marks
(iii) State one parameter that would be passed to the procedure AddBikeRecord. [1] 15 16 reasonable effort has been made by the publisher (UCLES) to trace copyright holders, but i…
Constructs · 25 marks
(b) From the flowchart write the module code, using nested WHILE loops. For Ensure that your code demonstrates good programming practice. Examiner's Use Row ← 1 No Row
Constructs · 25 marks
(b) From the flowchart write the module code, using nested REPEAT…UNTIL loops. For Ensure that your code demonstrates good programming practice. Examiner's Use Row ← 1 No Row
Constructs · 1 mark · official answer ready
(i) What denary number is this if it represents a sign and magnitude integer? [1]
Structured programming · 2 marks · official answer ready
(iv) State the parameter identifiers for the function given above. [2] 15
