Gce Model Questions Vol1 2021 Computer Studies Question 26
Practice objective / multiple choice question 26 from the 2021 Gce Model Questions Vol1 Computer Studies examination.
Consider the following Python program: ```python def digit_sum_factorial(k): # computes k! and returns the sum of its decimal digits fact = 1 for i in range(1, k+1): fact *= i s = 0 while fact > 0: s += fact % 10 fact //= 10 return s m = int(input()) result = digit_sum_factorial(m) + digit_sum_factorial(m-1) print(result) ``` If the user enters `5` when prompted, what number is printed?
Answer Options
About This Question
This is Gce Model Questions Vol1 2021 Computer Studies Question 26. It is one of the objective questions from the 2021 Gce Model Questions Vol1 Computer Studies examination.
Difficulty level: Medium .
Master the Exam!
You've seen a preview, but there are thousands more questions plus AI tutor to break down complex solutions.