City Guilds Model Questions Vol1 2019 Information Technology Question 23

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

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

The following pseudo‑code is executed with the integer variable n = 10: ``` count ← 0 for i ← 1 to n for j ← i to n if (i + j) mod 3 = 0 then count ← count + 1 end if end for end for output count ``` What number is displayed when the program finishes?

Answer Options

A. 21
B. 24
C. 15
Correct Answer D. 18
Correct Answer
D
Correct Option:
18

About This Question

This is City Guilds Model Questions Vol1 2019 Information Technology Question 23. 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.

Unlock Full Access Available for Android & Windows
Chat with Support