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