Neco 2020 Computer Studies Question 50
Practice objective / multiple choice question 50 from the 2020 Neco Computer Studies examination.
The following pseudo‑code is executed with a positive integer \(n\):\n\n``` count = 0 for i = 1 to n: for j = i to n: if (i + j) mod 3 == 0: count = count + 1 for k = 1 to (i * j): count = count + 1 ```\n\nLet \(T(n)\) denote the total number of times the statement `count = count + 1` is executed.\n\n(a) Express \(T(n)\) as a function of \(n\).\n(b) Evaluate \(T(5)\). Provide the numeric value.
Answer Options
About This Question
This is Neco 2020 Computer Studies Question 50. It is one of the objective questions from the 2020 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.