Programming
471 questions. Open a question to solve it and check the official answer.
Programming basics · 2 marks · official answer ready
(ii) State two input/output device management tasks performed by the OS. 1 ........................................................................................................…
Constructs · 3 marks · official answer ready
(b) Computers on the Internet have IP addresses. Describe the format of an IP address. ............................................................................................…
Constructs · 4 marks · official answer ready
(b) Complete the table by identifying the most appropriate term for each description. Each term must be different. Description Term Receives data packets from a network and forwar…
Constructs · 4 marks · official answer ready
(b) Describe two drawbacks of using a wireless network compared to using a wired network. Drawback 1 ..............................................................................…
Constructs · 5 marks · official answer ready
(c) Each pseudocode statement in the following table may contain an error due to the incorrect use of the function or operator. Describe the error in each case, or write ‘NO ERROR…
Constructs · 5 marks · official answer ready
(i) Write pseudocode for the procedure GuessNum(). Refer to the Appendix on pages 22–23 for the list of built-in pseudocode functions and operators. ..............................…
Constructs · 2 marks · official answer ready
(ii) Suggest two different validation checks that could be applied to the input of the procedure GuessNum() to ensure invalid guesses are not counted. 1 ..........................…
Constructs · 1 mark
(i) Identify this type of testing. ..................................................................................................................................... [1]
Constructs · 2 marks · official answer ready
(ii) Her program contains a function Status() that she has not yet written, but will be called from several places within the program. Explain what Alice needs to do to allow the …
Constructs · 1 mark · official answer ready
(iii) Alice compiles her program. Explain the function of the compiler. ...........................................................................................................…
Constructs · 5 marks · official answer ready
(d) Each pseudocode statement in the following table may contain an error due to the incorrect use of the function or operator. Describe the error in each case, or write ‘NO ERROR…
Structured programming · 5 marks · official answer ready
(a) Examine the pseudocode and complete the following table: Answer The identifier name of a global variable The name of the loop structure The identifier involved in a data type …
Constructs · 2 marks · official answer ready
(i) Module names and parameters are features that may be represented on a structure chart. State two other features than can be represented on a structure chart. Feature 1 .......…
Structured programming · 5 marks · official answer ready
(ii) The headers for three modules in a program are defined in pseudocode as follows: Pseudocode module header PROCEDURE Create(S2 : INTEGER, P3 : STRING) PROCEDURE Modify(S2 : IN…
Constructs · 7 marks · official answer ready
(b) A program contains a global 2D array XRef. The array consists of 100 rows and 3 columns. The array is of data type STRING. A function, Search(), takes two parameters Par1 and …
Constructs · 3 marks · official answer ready
(c) Each pseudocode statement in the following table may contain an error due to the incorrect use of the function or operator. Describe the error in each case, or write 'NO ERROR…
Programming · 3 marks · official answer ready
(ii) State three other examples of good programming practice. 1 ...................................................................................................................…
Structured programming · 8 marks · official answer ready
(a) Write pseudocode for a function GroupNum(), which takes a telephone number and a template as parameter strings and returns a formatted string. You may assume that the template…
Structured programming · 4 marks · official answer ready
(b) The function GroupNum() is to be extended to include parameter checking. State one check that could be applied to each parameter. Give an example of test data that could be us…
Constructs · 18 marks · official answer ready
(a) Write pseudocode for the module CheckBackupFile(). ............................................................................................................................…
