Computer Science · Oct / Nov 2018 · Paper 1 SL · Question 10
Adapt for 2027Selection, parallel arrays and when binary search can be used are on the syllabus, but the pseudocode answers must be written in Python or Java.
IBCS
As printed in the paper
The question as text
10. The following method, calcBMI() accepts person’s height (H) in metres (m) and weight (W) in kilograms (kg) and returns their Body Mass Index (BMI). calcBMI(H, W) X = H * H B = W / X return B endcalcBMI Boris weighs 104 kg and is 2.00 m tall. His BMI can be calculated by calling method calcBMI() as follows BorisBMI = calcBMI(2.00, 104).
Read automatically from the paper; the printed page above is exact.
Show the answer and mark scheme
10(a)[1]
10(b)[4]
10(c)[1]
10(d)(i)[1]
10(d)(ii)[2]
10(e)[6]
Make a free account to save your answers and see your weak topics and ask the AI why a wrong answer is wrong.

