Skip to content
Android waitlistTry on iPad
Get started

Programming Paradigms: CAIE A‑Level Computer Science questions

Every CAIE A-Level Computer Science exam question on 20.1 Programming Paradigms, June 2024 and the specimen papers, with its mark scheme and examiner’s report.

Paper
All papers
Exam
All years
Calculations

198 questions

  1. Q8(a)

    June 2024 · Paper 3

    The whole paper ↗
    The start of question 8
  2. Q8(b)

    June 2024 · Paper 3

    The whole paper ↗
    The start of question 8
  3. Q8(c)

    June 2024 · Paper 3

    The whole paper ↗
    The start of question 8
  4. Q2(a)(i)

    June 2024 · Paper 4

    The whole paper ↗The code files (zip) ↓
    The start of question 2
  5. Q2(a)(ii)

    June 2024 · Paper 4

    The whole paper ↗The code files (zip) ↓
    The start of question 2
  6. The start of question 2
  7. Q2(c)

    June 2024 · Paper 4

    The whole paper ↗The code files (zip) ↓
    The start of question 2
  8. Q2(d)(i)

    June 2024 · Paper 4

    The whole paper ↗The code files (zip) ↓
    The start of question 2
  9. Q2(d)(ii)

    June 2024 · Paper 4

    The whole paper ↗The code files (zip) ↓
    The start of question 2
  10. Q2(e)(i)

    June 2024 · Paper 4

    The whole paper ↗The code files (zip) ↓
    The start of question 2
  11. Q2(e)(ii)

    June 2024 · Paper 4

    The whole paper ↗The code files (zip) ↓
    The start of question 2
  12. Q2(e)(iii)

    June 2024 · Paper 4

    The whole paper ↗The code files (zip) ↓
    The start of question 2
  13. Q8(a)

    Specimen · Paper 3

    The whole paper ↗
    The start of question 8
  14. Q8(b)

    Specimen · Paper 3

    The whole paper ↗
    The start of question 8
  15. Q2(a)

    Specimen · Paper 4

    The whole paper ↗The code files (zip) ↓
    The start of question 2
  16. Q2(b)

    Specimen · Paper 4

    The whole paper ↗The code files (zip) ↓
    The start of question 2
  17. Q2(c)

    Specimen · Paper 4

    The whole paper ↗The code files (zip) ↓
    The start of question 2
  18. Q2(d)(i)

    Specimen · Paper 4

    The whole paper ↗The code files (zip) ↓
    The start of question 2
  19. Q2(d)(ii)

    Specimen · Paper 4

    The whole paper ↗The code files (zip) ↓
    The start of question 2
  20. Q2(d)(iii)

    Specimen · Paper 4

    The whole paper ↗The code files (zip) ↓
    The start of question 2
All 21 questions on Programming Paradigms, as a list
  1. June 2024, Paper 3, Q8(a) (3 marks): Sliding doors is a feature that is available on a minivan but unavailable on a hatchback. Write additional clauses to represent this information. 23 24 25 [3]
  2. June 2024, Paper 3, Q8(b) (1 mark): Using the variable Options, the goal: available(Options, saloon) returns Options = reversing_camera Write the result returned by the goal: available(Options, ha
  3. June 2024, Paper 3, Q8(c) (4 marks): F may be available for B if F is a feature and B is a body style and F is not unavailable for that body style. Write this as a rule: may_choose_option(F, B) IF
  4. June 2024, Paper 4, Q2(a)(i) (4 marks): Write program code to declare the class Tree and its constructor. Do not declare the other methods. Use the appropriate constructor for your programming languag
  5. June 2024, Paper 4, Q2(a)(ii) (3 marks): The get methods GetTreeName(), GetGrowth(), GetMaxHeight(), GetMaxWidth() and GetEvergreen() each return the relevant attribute. Write program code for the get
  6. June 2024, Paper 4, Q2(b) (7 marks): The text file Trees.txt stores data about 9 trees. The data in the file is stored in the format: Tree name,Height growth each year,Maximum height,Maximum width,
  7. June 2024, Paper 4, Q2(c) (4 marks): The procedure PrintTrees() takes a Tree object as a parameter and outputs the tree’s name, height growth each year, maximum height, maximum width and whether it
  8. June 2024, Paper 4, Q2(d)(i) (2 marks): Write program code for the main program. Save your program. Copy and paste the program code into part 2(d)(i) in the evidence document. [2]
  9. June 2024, Paper 4, Q2(d)(ii) (1 mark): Test your program. Take a screenshot of the output(s). Save your program. Copy and paste the screenshot into part 2(d)(ii) in the evidence document. [1]
  10. June 2024, Paper 4, Q2(e)(i) (6 marks): The procedure ChooseTree() takes an array of Tree objects as a parameter. The procedure prompts the user to input their requirements for a tree. The user needs
  11. June 2024, Paper 4, Q2(e)(ii) (2 marks): The procedure ChooseTree() needs amending. After the procedure has output the list of trees that meet all the requirements, the procedure needs to: • take as in
  12. June 2024, Paper 4, Q2(e)(iii) (2 marks): Write program code to amend the main program to call ChooseTrees(). Test your program with the following tree requirements: • a maximum height of 400 cm • a max
  13. Specimen, Paper 3, Q8(a) (2 marks): State the addressing mode used by: LDM LDD [2]
  14. Specimen, Paper 3, Q8(b) (3 marks): Using opcodes from the table, write instructions to set the value at address 509 to the contents of address 500 added to the value 12. [3]
  15. Specimen, Paper 4, Q2(a) (4 marks): Write the program code for the class, HiddenBox. Declare the properties as private. Do not write the constructor or any other methods. If you are using Python,
  16. Specimen, Paper 4, Q2(b) (4 marks): The constructor: • takes the box name, creator, date hidden and game location as parameters • sets the box to be inactive • initialises all the array elements a
  17. Specimen, Paper 4, Q2(c) (3 marks): The class HiddenBox has two getter methods: GetBoxName and GetGameLocation. Edit your program and write the getter methods GetBoxName and GetGameLocation in the
  18. Specimen, Paper 4, Q2(d)(i) (2 marks): The main program declares a 1D array named TheBoxes of type HiddenBox. The main program can store up to 10 000 elements as a local variable. Write program code
  19. Specimen, Paper 4, Q2(d)(ii) (4 marks): The procedure NewBox: • takes the Name, Creator, Date Hidden and Game Location of the box as input • creates an instance of HiddenBox and appends it to the end
  20. Specimen, Paper 4, Q2(d)(iii) (1 mark): After declaring the array, the main program calls NewBox. Edit the main program to call NewBox. Save your program. Copy and paste the program code into part 2(d
  21. Specimen, Paper 4, Q2(e) (3 marks): A new type of box is created. The new type of box is a puzzle box. The class PuzzleBox, inherits from HiddenBox. PuzzleBox has the additional properties: • Puzz

Questions, mark schemes and examiner’s reports are © Cambridge University Press & Assessment, from their published past papers. Plumi isn’t affiliated with any exam board. Want whole papers? Full past papers.

Rather write your answers by hand on iPad? Plumi marks them against the same mark schemes.