Neco 2024 Computer Studies Question 18
Practice objective / multiple choice question 18 from the 2024 Neco Computer Studies examination.
Consider the following pseudocode where \(n\) is a positive integer:\n\n``\ncount = 0\nfor i = 1 to n\n for j = i to n\n if (i + j) mod 3 = 0\n count = count + 1\n```\n\nFor \(n = 12\), what is the value of \(count\)? Also give a closed‑form expression for \(count\) as a function of \(n\).
Answer Options
About This Question
This is Neco 2024 Computer Studies Question 18. It is one of the objective questions from the 2024 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.