City Guilds Model Questions Vol1 2023 Information Technology Question 25

Practice objective / multiple choice question 25 from the 2023 City Guilds Model Questions Vol1 Information Technology examination.

City Guilds Model Questions Vol1 2023 Information Technology Objective / Multiple Choice Hard Difficulty
Question 25 CITY_GUILDS_MODEL_QUESTIONS_VOL1 • 2023 • INFORMATION_TECHNOLOGY • objective

Consider the following pseudocode: ``` count ← 0 for i ← 1 to n do for j ← 1 to i do if (i × j) mod 3 = 0 then count ← count + 1 end if end for end for ``` If \(n = 10\), what is the final value of **count**? Also state the time‑complexity of the algorithm in Big‑O notation.

Answer Options

A. 27; O(n^3)
B. 30; O(n^2)
Correct Answer C. 27; O(n^2)
D. 24; O(n log n)
Correct Answer
C
Correct Option:
27; O(n^2)

About This Question

This is City Guilds Model Questions Vol1 2023 Information Technology Question 25. It is one of the objective questions from the 2023 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.

Unlock Full Access Available for Android & Windows
Chat with Support