City Guilds Model Questions Vol1 2025 Information Technology Question 21

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

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

Consider the following pseudo‑code: ``` integer n = 5 integer total = 0 for i = 1 to n for j = i to n if ( (i*j) \bmod 3 = 0 ) total = total + i - j else total = total + j - i end if end for end for output total ``` What value is displayed when the program finishes execution?

Answer Options

A. 6
B. 10
C. 12
Correct Answer D. 8
Correct Answer
D
Correct Option:
8

About This Question

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