City Guilds Model Questions Vol1 2024 Information Technology Question 48

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

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

Consider the following pseudo‑code:\n\n``` int a = 2, b = 5, c = 0; for (int i = 1; i <= 4; i++) { if (i % 2 == 0) { a = a + b; } else { b = b * a; } c = c + (a - b); } ```\n\nWhat is the final value of \(c\) after the loop terminates?

Answer Options

A. -106
B. -98
Correct Answer C. -102
D. -112
Correct Answer
C
Correct Option:
-102

About This Question

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