City Guilds Model Questions Vol1 2020 Information Technology Question 7

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

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

Consider the following pseudo‑code:\n\n``\ncount ← 0\nfor i ← 1 to n\n for j ← i to n\n if (i + j) mod 3 = 0 then\n count ← count + 1\n end if\n end for\nend for\noutput count\n``\n\nIf the input value is \(n = 10\), what integer does the program output?

Answer Options

A. 15
B. 12
C. 20
Correct Answer D. 18
Correct Answer
D
Correct Option:
18

About This Question

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