Neco 2017 Computer Studies Question 21

Practice objective / multiple choice question 21 from the 2017 Neco Computer Studies examination.

Neco 2017 Computer Studies Objective / Multiple Choice Hard Difficulty
Question 21 NECO • 2017 • COMPUTER_STUDIES • objective

Given the Python function below, what integer value does it return when called with \(N = 10\)?\n\n```python\ndef mystery(N):\n total = 0\n i = 1\n while i <= N:\n if i % 2 == 0:\n j = i\n while j > 0:\n total += j % 5\n j -= 3\n else:\n total += i\n i += 1\n return total\n```

Answer Options

A. 45
Correct Answer B. 48
C. 52
D. 60
Correct Answer
B
Correct Option:
48

About This Question

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