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.

Gce Model Questions Vol1 2021 Computer Studies Objective / Multiple Choice Medium Difficulty
Question 26 GCE_MODEL_QUESTIONS_VOL1 • 2021 • COMPUTER_STUDIES • objective

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

A. 10
B. 12
C. 8
Correct Answer D. 9
Correct Answer
D
Correct Option:
9

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.

Unlock Full Access Available for Android & Windows
Chat with Support