Neco 2025 Computer Studies Question 16
Practice objective / multiple choice question 16 from the 2025 Neco Computer Studies examination.
Consider the following Python program:\n\n```python\ndef f(x):\n s = 0\n while x > 0:\n d = x % 10\n s += d*d\n x //= 10\n return s\n\nn = int(input())\ncount = 0\nfor num in range(1, n+1):\n if num % 2 == 0 and f(num) % 3 == 0:\n count += 1\nprint(count)\n```\n\nIf the user enters \( n = 30 \), what integer is printed?
Answer Options
About This Question
This is Neco 2025 Computer Studies Question 16. It is one of the objective questions from the 2025 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.