Neco 2024 Computer Studies Question 32

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

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

Consider the following Python program:\\n\\n```python\\nN = 500\\ncount = 0\\nfor i in range(1, N+1):\\n if int(i**0.5) ** 2 == i: # i is a perfect square\\n s = sum(int(d) for d in str(i))\\n if s % 3 == 0:\n count += 1\\nprint(count)\\n```\\nWhat value is printed when the program is executed?

Answer Options

Correct Answer A. 7
B. 6
C. 8
D. 9
Correct Answer
A
Correct Option:
7

About This Question

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