Data types and structures
283 questions. Open a question to solve it and check the official answer.
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…
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 …
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…
Arrays · 18 marks
(ii) State two things that built-in and user-defined functions have in common. 1 ..................................................................................................…
Data types and records · 7 marks
(i) Triangle ................................... [1]
Data types and records · 7 marks
(ii) Cone ................................... [1]
Data types and records · 7 marks
(iii) Answer1 ................................... [1]
Data types and records · 7 marks
(iv) Total ................................... [1]
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…
Arrays · 6 marks
(b) Write the pseudocode equivalent of the structured English. Use the identifiers from the table in part (a). ....................................................................…
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. ............................................................…
Arrays · 6 marks
(b) Write the pseudocode equivalent of the structured English. Use the identifiers from the table in part (a). ....................................................................…
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. ............................................................…
Data types and records · 0 marks · official answer ready
2 MyName = "Gordon"
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…
Data types and records · 50 marks · official answer ready
(i) State what happens when the function is called with an empty string. ..........................................................................................................…
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 ........…
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. ...........................…
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. ...........................…
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. ...........................…
