Algorithms and flowchartsIB MYP Maths Extended: Subtopic test
10 questions, 27 marks
IB MYP Maths Extended
Algorithms and flowcharts
Total 27 marks
Name
Class
Date
- 1An algorithm is written in steps. Step 1: Set and . Step 2: Add to . Step 3: Reduce by . Step 4: If , go back to Step 2; otherwise output and stop.(a)What does the algorithm output?[1 mark]
- A
- B
- C
- D
(b)How many times is Step 2 carried out?[1 mark]- A
- B
- C
- D
(c)Step 1 is changed to set . Find the new output.[2 marks]Total for question 1: 4 marks
- 2A flowchart takes a number as its input. Process: double and subtract to get . Decision: if , output the word "Large"; otherwise output .(a)What is the output when ?[1 mark]
- A
- B"Large"
- C
- D
(b)What is the output when ?[1 mark]- A"Large"
- B
- C
- D
(c)Find the smallest whole number input that gives the output 'Large'.[2 marks]Total for question 2: 4 marks
- 3A sequence is generated by an algorithm. Step 1: Set the first term . Step 2: To get the next term, multiply the previous term by and then add . Step 3: Repeat Step 2 until the terms needed have been found.(a)Use the algorithm to find the first five terms of the sequence.[3 marks](b)Continue the algorithm to find the first term that is greater than , and state its position in the sequence.[4 marks]
Total for question 3: 7 marks
- 4An algorithm solves equations of the form . Step 1: Input , and . Step 2: Subtract from . Step 3: Divide the result by . Step 4: Output the answer as .(a)(i) Use the algorithm with , and to find .[6 marks]
(ii) Explain why the algorithm fails when .(b)Write the steps of an algorithm to solve , where . Use your algorithm to solve and verify your answer.[6 marks]Total for question 4: 12 marks
End of questions
Written by the Exaim team, led by Shaun Daswani (Head of Upper Secondary, Improve ME Institute; MSc Financial Mathematics, Imperial College London; BSc, UCL) and Jason Daswani (operational lead, Improve ME Institute; LSE).