Computer Science 9608 · 10

Data types and structures

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

2016 October-November · Paper 22 · Q5(b)(iii)

Data types and records · 4 marks · official answer ready

(iii) Program code is to be designed and written for step 02.3 The program will use these identifiers: Identifier Data type Description PlayerName ARRAY[1 : 8] OF STRING Stores th…

2016 October-November · Paper 22 · Q6

Data types and records · 5 marks · official answer ready

6 Study the sequence of pseudocode statements. CONST a = 3.2 : REAL DECLARE x, y, z, Answer1, Answer2, Answer3 : REAL DECLARE p, q : BOOLEAN x 3 x x + 7 y 6 Answer1 2 * (a + y) z …

2016 October-November · Paper 23 · Q19(d)

Arrays · 4 marks

19 ENDWHILE 7 (d) To code the ‘Search by product code’ procedure, Ahmed draws a structure chart showing the different stages. The procedure uses the variables shown in the identif…

2016 October-November · Paper 23 · Q19(d)(ii)

Arrays · 18 marks

(ii) State two things that built-in and user-defined functions have in common. 1 ..................................................................................................…

2016 October-November · Paper 23 · Q19(e)(i)

Data types and records · 7 marks

(i) Triangle ................................... [1]

2016 October-November · Paper 23 · Q19(e)(ii)

Data types and records · 7 marks

(ii) Cone ................................... [1]

2016 October-November · Paper 23 · Q19(e)(iii)

Data types and records · 7 marks

(iii) Answer1 ................................... [1]

2016 October-November · Paper 23 · Q19(e)(iv)

Data types and records · 7 marks

(iv) Total ................................... [1]

2016 October-November · Paper 23 · Q19(e)(v)

Data types and records · 7 marks

(v) Answer2 ................................... [1] 19 Appendix Built-in functions (pseudocode) ONECHAR(ThisString : STRING, Position : INTEGER) RETURNS CHAR returns the single ch…

2016 May-June · Paper 21 · Q6(b)

Arrays · 6 marks

(b) Write the pseudocode equivalent of the structured English. Use the identifiers from the table in part (a). ....................................................................…

2016 May-June · Paper 21 · Q6(b)(iii)

Data types and records · 32 marks

(iii) There is a problem with the logic of the pseudocode. This could generate a run-time error. Describe the problem. ............................................................…

2016 May-June · Paper 22 · Q6(b)

Arrays · 6 marks

(b) Write the pseudocode equivalent of the structured English. Use the identifiers from the table in part (a). ....................................................................…

2016 May-June · Paper 22 · Q6(b)(iii)

Data types and records · 32 marks

(iii) There is a problem with the logic of the pseudocode. This could generate a run-time error. Describe the problem. ............................................................…

2016 May-June · Paper 23 · Q2

Data types and records · 0 marks · official answer ready

2 MyName = "Gordon"

2016 May-June · Paper 23 · Q6(b)

Arrays · 6 marks · official answer ready

(b) Write the pseudocode equivalent of the structured English. Use the identifiers from the table in part (a). For the built-in functions list, refer to the Appendix on the last p…

2016 May-June · Paper 23 · Q6(b)(i)

Data types and records · 50 marks · official answer ready

(i) State what happens when the function is called with an empty string. ..........................................................................................................…

2016 May-June · Paper 23 · Q6(b)(ii)

Data types and records · 50 marks

(ii) The function should be thoroughly tested. Give three examples of non-empty strings that may be used. In each case explain why the test string has been chosen. String ........…

2016 May-June · Paper 31 · Q4(b)(ii)

Files · 23 marks · official answer ready

(ii) The company uses a virtual machine to test possible solutions to the changes that they will need to make. Explain one limitation of this approach. ...........................…

2016 May-June · Paper 32 · Q4(b)(ii)

Files · 23 marks · official answer ready

(ii) The company uses a virtual machine to test possible solutions to the changes that they will need to make. Explain one limitation of this approach. ...........................…

2016 May-June · Paper 33 · Q4(b)(ii)

Files · 23 marks · official answer ready

(ii) The company uses a virtual machine to test possible solutions to the changes that they will need to make. Explain one limitation of this approach. ...........................…