9.2 Algorithms
13 questions in this subtopic. Open a question to solve it and check the official answer.
Algorithms · 5 marks · official answer ready
(f) The subroutine DisplayGrid is to output the state of play at any time. For example, after three turns the display should look like: : : O : O X : : : where the character ‘:’ s…
Algorithms · 5 marks
(f) The subroutine DisplayGrid is to output the state of play at any time. For example, after three turns the display should look like: : : O : O X : : : where the character ‘:’ s…
Algorithms · 5 marks · official answer ready
(f) The subroutine DisplayGrid is to output the state of play at any time. For example, after three turns the display should look like: : : O : O X : : : where the character ‘:’ s…
Algorithms · 5 marks
(f) The subroutine DisplayGrid is to output the state of play at any time. For example, after three turns the display should look like: : : O : O X : : : where the character ‘:’ s…
Algorithms · 36 marks
(iii) Ahmed wants the program to add an extra 10% to the number of tiles required in case any tiles get broken during the work. In a high-level language, write programming stateme…
Algorithms · 36 marks
(iii) Ahmed wants the program to add an extra 10% to the number of tiles required in case any tiles get broken during the work. In a high-level language, write programming stateme…
Algorithms · 2 marks · official answer ready
(b) For a computer system using multi-programming, the low-level scheduler decides what process will get next use of the processor. One algorithm could be a “round-robin”; that is…
Algorithms · 2 marks · official answer ready
(b) For a computer system using multi-programming, the low-level scheduler decides what process will get next use of the processor. One algorithm could be a “round-robin”; that is…
Algorithms · 6 marks · official answer ready
(b) If the child chooses the number 7, the screen displays: 7 Times Table ============= 1 × 7 = 7 2 × 7 = 14 3 × 7 = 21 4 × 7 = 28 5 × 7 = 35 6 × 7 = 42 7 × 7 = 49 8 × 7 = 56 9 × …
Algorithms · 6 marks · official answer ready
(b) If the child chooses the number 7, the screen displays: 7 Times Table ============= 1 × 7 = 7 2 × 7 = 14 3 × 7 = 21 4 × 7 = 28 5 × 7 = 35 6 × 7 = 42 7 × 7 = 49 8 × 7 = 56 9 × …
Algorithms · 32 marks · official answer ready
(ii) Using a high-level programming language, declare a record structure for the fields defined in part (b)(i). Language Code [4] 7 Question 3 begins on page 8. 8 3 Raza wants to …
Algorithms · 20 marks · official answer ready
(b) The data input for HandInDate also needs validating. It will be entered as DDMMYYYY. • DD must be less than 32 and greater than 0 • MM must be less than 13 and greater than 0 …
Algorithms · 20 marks · official answer ready
(b) The data input for HandInDate also needs validating. It will be entered as DDMMYYYY. • DD must be less than 32 and greater than 0 • MM must be less than 13 and greater than 0 …
