Neco 2023 Computer Studies Question 32

Practice objective / multiple choice question 32 from the 2023 Neco Computer Studies examination.

Neco 2023 Computer Studies Objective / Multiple Choice Hard Difficulty
Question 32 NECO • 2023 • COMPUTER_STUDIES • objective

Given the Python function:\n\n```python\ndef mystery(m, n):\n count = 0\n for i in range(1, m+1):\n j = i\n while j < n:\n if (i*j) % 3 == 0:\n count += 1\n j += i\n return count\n```\n\nWhat value is returned when the function is called as \(m = 6\) and \(n = 20\)?

Answer Options

Correct Answer A. 20
B. 22
C. 18
D. 24
Correct Answer
A
Correct Option:
20

About This Question

This is Neco 2023 Computer Studies Question 32. It is one of the objective questions from the 2023 Neco 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