Neco 2025 Computer Studies Question 16

Practice objective / multiple choice question 16 from the 2025 Neco Computer Studies examination.

Neco 2025 Computer Studies Objective / Multiple Choice Hard Difficulty
Question 16 NECO • 2025 • COMPUTER_STUDIES • objective

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

A. 3
B. 0
Correct Answer C. 2
D. 1
Correct Answer
C
Correct Option:
2

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.

Unlock Full Access Available for Android & Windows
Chat with Support