Gce Model Questions Vol1 2019 Computer Studies Question 50

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

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

The following Python loop prints a number and then stops:\n\n```python\ncount = 0\nfor n in range(1, 200):\n if n % 3 == 0 and n % 5 != 0:\n count += 1\n if count == 5:\n print(n)\n break\n```\n\nWhat number is printed when the program runs?

Answer Options

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

About This Question

This is Gce Model Questions Vol1 2019 Computer Studies Question 50. It is one of the objective questions from the 2019 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