Neco 2020 Computer Studies Question 50

Practice objective / multiple choice question 50 from the 2020 Neco Computer Studies examination.

Neco 2020 Computer Studies Objective / Multiple Choice Medium Difficulty
Question 50 NECO • 2020 • COMPUTER_STUDIES • objective

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

A. 155
B. 140
C. 150
Correct Answer D. 145
Correct Answer
D
Correct Option:
145

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.

Unlock Full Access Available for Android & Windows
Chat with Support