Computer Science 9608 · 11

Programming

471 questions. Open a question to solve it and check the official answer.

Reset
2021 October-November · Paper 11 · Q7(a)(ii)

Programming basics · 2 marks · official answer ready

(ii) State two input/output device management tasks performed by the OS. 1 ........................................................................................................…

2021 October-November · Paper 11 · Q11(b)

Constructs · 3 marks · official answer ready

(b) Computers on the Internet have IP addresses. Describe the format of an IP address. ............................................................................................…

2021 May-June · Paper 11 · Q9(b)

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…

2021 May-June · Paper 12 · Q9(b)

Constructs · 4 marks · official answer ready

(b) Describe two drawbacks of using a wireless network compared to using a wired network. Drawback 1 ..............................................................................…

2021 May-June · Paper 21 · Q1(c)

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…

2021 May-June · Paper 21 · Q5(a)(i)

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. ..............................…

2021 May-June · Paper 21 · Q5(a)(ii)

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 ..........................…

2021 May-June · Paper 21 · Q5(b)(i)

Constructs · 1 mark

(i) Identify this type of testing. ..................................................................................................................................... [1]

2021 May-June · Paper 21 · Q5(b)(ii)

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 …

2021 May-June · Paper 21 · Q5(b)(iii)

Constructs · 1 mark · official answer ready

(iii) Alice compiles her program. Explain the function of the compiler. ...........................................................................................................…

2021 May-June · Paper 22 · Q1(d)

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…

2021 May-June · Paper 22 · Q2(a)

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 …

2021 May-June · Paper 22 · Q3(a)(i)

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 .......…

2021 May-June · Paper 22 · Q3(a)(ii)

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…

2021 May-June · Paper 22 · Q4(b)

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 …

2021 May-June · Paper 23 · Q1(c)

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…

2021 May-June · Paper 23 · Q2(b)(ii)

Programming · 3 marks · official answer ready

(ii) State three other examples of good programming practice. 1 ...................................................................................................................…

2021 May-June · Paper 23 · Q5(a)

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…

2021 May-June · Paper 23 · Q5(b)

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…

2021 May-June · Paper 23 · Q6(a)

Constructs · 18 marks · official answer ready

(a) Write pseudocode for the module CheckBackupFile(). ............................................................................................................................…