2210/22/M/J/24 question 5: worked solution (May/June 2024, paper 22)
Show as plain textHide plain text
Cambridge O Level Computer Science 2210 · 8.1 Programming concepts Worked solution from the Programming Paper 2 Algorithms, Programming and Logic booklet, Part 1 of 3. Q31 2210/22/M/J/24 original Q5 Structured · 6 marks Worked solution Arithmetic, Boolean and logical Write what each type is used for, then one pseudocode example. Arithmetic : used in calculations [1] Example: A ← B + C [1] Boolean : used with values that are TRUE or FALSE [1] Example: IF B AND C [1] Logical : used to compare values in conditions or selection statements [1] Example: IF B > C [1] KEY IDEA Arithmetic calculates, logical compares, Boolean combines true or false values. TOTAL 6 marks Official mark scheme VIDEO ▶ Topic lesson A lesson on this topic · by Mr Bulmer's Learning Zone. Tap the picture to open it on YouTube.