Gce Model Questions Vol1 2019 Computer Studies Question 3

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

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

Consider the following Python function: ```python def mystery(k): total = 0 for i in range(1, k+1): for j in range(i, k+1): if (i*j) % 3 == 0: total += 1 return total ``` What integer value does `mystery(5)` return?

Answer Options

Correct Answer A. 5
B. 7
C. 4
D. 6
Correct Answer
A
Correct Option:
5

About This Question

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