Neco 2022 Computer Studies Question 35

Practice objective / multiple choice question 35 from the 2022 Neco Computer Studies examination.

Neco 2022 Computer Studies Objective / Multiple Choice Hard Difficulty
Question 35 NECO • 2022 • COMPUTER_STUDIES • objective

Consider the following Python program: ```python def digit_square_sum(n): total = 0 while n > 0: d = n % 10 total += d*d n //= 10 return total def repeat_until_one_digit(x): while x >= 10: x = digit_square_sum(x) return x result = repeat_until_one_digit(9875) print(result) ``` What number is printed when the program is executed?

Answer Options

Correct Answer A. 1
B. 4
C. 7
D. 9
Correct Answer
A
Correct Option:
1

About This Question

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