Computational thinking and problem-solving
86 questions. Open a question to solve it and check the official answer.
Recursion · 12 marks · official answer ready
5 (i) A BNF rule may be recursive. What is meant by a recursive rule? .............................................................................................................…
Recursion · 12 marks · official answer ready
5 (i) A BNF rule may be recursive. What is meant by a recursive rule? .............................................................................................................…
Recursion · 11 marks
5 (i) A BNF rule may be recursive. What is meant by a recursive rule? .............................................................................................................…
Recursion · 11 marks
5 (i) A BNF rule may be recursive. What is meant by a recursive rule? .............................................................................................................…
Recursion · 4 marks
5 (i) A BNF rule may be recursive. What is meant by a recursive rule? .............................................................................................................…
Recursion · 9 marks
(i) Class ................................................................................................................................. .......................................…
Recursion · 9 marks
(ii) Inheritance ........................................................................................................................ .........................................…
Recursion · 10 marks
(i) Instance ........................................................................................................................................... ..........................…
Recursion · 10 marks
(ii) Method ........................................................................................................................................... ...........................…
Recursion · 23 marks
(iii) Encapsulation ........................................................................................................................................... ...................…
Recursion · 6 marks
5 (i) A BNF rule may be recursive. What is meant by a recursive rule? .............................................................................................................…
Recursion · 14 marks
(i) 1 1 1 0 1 0 0 1 Denary ............................................ Hexadecimal ................................... [2]
Recursion · 14 marks
(ii) 0 1 1 0 1 0 1 1 Denary ............................................ Hexadecimal ................................... [2]
Recursion · 13 marks
(iii) State the largest positive denary integer which can be represented. .........................................................................................................…
Recursion · 18 marks
(iv) Why do computer scientists often write binary numbers in hexadecimal? ........................................................................................................…
Algorithms · 2 marks · official answer ready
(c) Technical documentation is also produced as part of the system’s development. State two items you would expect to find in technical documentation. 1 2 [2] 5
Recursion · 17 marks · official answer ready
4 Look at this pseudocode function: FUNCTION Y(s : STRING) RETURNS STRING DECLARE x : INTEGER x LENGTH(s) IF x = 1 THEN RETURN s ELSE RETURN Y(RIGHT(s, x - 1)) + LEFT(s, 1) // RIG…
Recursion · 17 marks · official answer ready
4 Look at this pseudocode function: FUNCTION Y(s : STRING) RETURNS STRING DECLARE x : INTEGER x LENGTH(s) IF x = 1 THEN RETURN s ELSE RETURN Y(RIGHT(s, x - 1)) + LEFT(s, 1) // RIG…
Recursion · 2 marks · official answer ready
(a) A rule may be recursive. Explain what is meant by this and identify the rule above which is recursive. Rule number [2]
Recursion · 2 marks · official answer ready
(a) A rule may be recursive. Explain what is meant by this and identify the rule above which is recursive. Rule number [2]
