Neco 2023 Computer Studies Question 12

Practice objective / multiple choice question 12 from the 2023 Neco Computer Studies examination.

Neco 2023 Computer Studies Objective / Multiple Choice Medium Difficulty
Question 12 NECO • 2023 • COMPUTER_STUDIES • objective

Consider the following Python function: ```python def process(nums): total = 0 i = 0 while i < len(nums): if nums[i] % 2 == 0: total += nums[i] else: total -= nums[i] if total > 50: total = total // 2 if total < 0: total = 0 i += 1 return total ``` If `nums = [12, 7, 9, 14, 5, 20]`, what integer value does `process(nums)` return?

Answer Options

A. 33
Correct Answer B. 29
C. 25
D. 0
Correct Answer
B
Correct Option:
29

About This Question

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