Neco 2021 Computer Studies Question 43
Practice objective / multiple choice question 43 from the 2021 Neco Computer Studies examination.
Consider the following algorithm:\n\n``\nSET total ← 0\nFOR i ← 1 TO n\n total ← total + (2*i - 1)\nEND FOR\nOUTPUT total\n``\n\n(a) Express the value of `total` as a function of \(n\) and simplify. (b) What is the value of `total` when \(n = 15\)?
Answer Options
About This Question
This is Neco 2021 Computer Studies Question 43. It is one of the objective questions from the 2021 Neco Computer Studies examination.
Difficulty level: Medium .
Master the Exam!
You've seen a preview, but there are thousands more questions plus AI tutor to break down complex solutions.