Question 7

Section A · 1 mark · 72% correct

The question in our own words · page 5

An algorithm sets \(n\) to \(17\) and \(k\) to \(5\). Then, while \(n>k\), it replaces \(n\) with \(n-k\) and prints \(n\). What does it print, in order?

  1. A12
  2. B12, 7
  3. C12, 7, 2
  4. D12, 7, 2, −3
Open the VCAA paper ↗
1 / 1

More from Methods 2025 Exam 2

Every question in this paper with how students scored ›Next: Question 8, multiple choice Sample size from a confidence interval ›Tell me what’s confusing beta feedback ↗