Programming
468 questions. Open a question to solve it and check the official answer.
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
Constructs · 3 marks · official answer ready
(c) Complete the rule below to determine if two countries are in the same continent. in_same_continent(Country1, Country2) IF [3] reasonable effort has been made by the publisher …
Constructs · 6 marks · official answer ready
4 Describe the following methods of automated data capture. Give an example, in each case, of an application where it would be used. (i) Optical Mark Recognition (OMR) [3] (ii) Op…
Constructs · 6 marks · official answer ready
(ii) The table shows three fields that are used in the records for data stored about students. Give the data type for each field. Give a reason for your choice in each case. Field…
Constructs · 6 marks · official answer ready
4 Describe the following methods of automated data capture. Give an example, in each case, of an application where it would be used. (i) Optical Mark Recognition (OMR) [3] (ii) Op…
Constructs · 6 marks · official answer ready
(ii) The table shows three fields that are used in the records for data stored about students. Give the data type for each field. Give a reason for your choice in each case. Field…
Constructs · 1 mark · official answer ready
(ii) generic applications software [1]
Constructs · 4 marks · official answer ready
(d) The salesmen each have a terminal on the stall in the mall and each terminal is connected to a single computer. The computer runs a multi-user operating system. Describe what …
