Gce Model Questions Vol1 2017 Computer Studies Question 26

Practice objective / multiple choice question 26 from the 2017 Gce Model Questions Vol1 Computer Studies examination.

Gce Model Questions Vol1 2017 Computer Studies Objective / Multiple Choice Medium Difficulty
Question 26 GCE_MODEL_QUESTIONS_VOL1 • 2017 • COMPUTER_STUDIES • objective

Consider the following Python program: ``` total = 0 n = 15 for i in range(1, n+1): if i % 2 == 0: total += i else: total += i*2 if total > 50: break ``` When the program finishes execution, what is the value stored in `total`?

Answer Options

A. 56
Correct Answer B. 52
C. 54
D. 48
Correct Answer
B
Correct Option:
52

About This Question

This is Gce Model Questions Vol1 2017 Computer Studies Question 26. It is one of the objective questions from the 2017 Gce Model Questions Vol1 Computer Studies examination.

Difficulty level: Medium .

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