Gce Model Questions Vol1 2023 Computer Studies Question 2
Practice objective / multiple choice question 2 from the 2023 Gce Model Questions Vol1 Computer Studies examination.
Consider the following Python function: ```python def count_abundant(nums): # remove duplicates uniq = list(set(nums)) def proper_divisor_sum(n): total = 0 for d in range(1, n): if n % d == 0: total += d return total count = 0 for x in uniq: if proper_divisor_sum(x) > x: count += 1 return count ``` If the list `data = [12, 18, 20, 28, 30, 42, 70, 84, 90, 100, 12, 30, 70]` is passed to `count_abundant`, what integer does the function return?
Answer Options
About This Question
This is Gce Model Questions Vol1 2023 Computer Studies Question 2. It is one of the objective questions from the 2023 Gce Model Questions Vol1 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.