City Guilds Model Questions Vol1 2019 Information Technology Question 34
Practice objective / multiple choice question 34 from the 2019 City Guilds Model Questions Vol1 Information Technology examination.
Consider the following pseudocode:\n\n``` S ← 0\nFOR i ← 1 TO N DO\n j ← 2*i - 1\n S ← S + j*j\nEND FOR\n```\n\nThe variable \(S\) stores the sum of the squares of the first \(N\) odd positive integers.\n(a) Compute the value of \(S\) when \(N = 10\).\n(b) State the time‑complexity of this algorithm in Big‑O notation.
Answer Options
About This Question
This is City Guilds Model Questions Vol1 2019 Information Technology Question 34. It is one of the objective questions from the 2019 City Guilds Model Questions Vol1 Information Technology examination.
Difficulty level: Hard .
Master the Exam!
You've seen a preview, but there are thousands more questions plus AI tutor to break down complex solutions.