Neco 2017 Computer Studies Question 21
Practice objective / multiple choice question 21 from the 2017 Neco Computer Studies examination.
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
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.