Neco 2019 Computer Studies Question 12

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

Neco 2019 Computer Studies Objective / Multiple Choice Hard Difficulty
Question 12 NECO • 2019 • COMPUTER_STUDIES • objective

Consider the following Python code: ```python numbers = [12, 7, 5, 20, 15] result = 0 for i in range(len(numbers)): if numbers[i] % 3 == 0: numbers[i] = numbers[i] // 3 else: numbers[i] = numbers[i] * 2 if i % 2 == 0: result += numbers[i] else: result -= numbers[i] ``` What is the final value of `result` after the loop finishes?

Answer Options

A. -30
Correct Answer B. -35
C. -45
D. -40
Correct Answer
B
Correct Option:
-35

About This Question

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

Unlock Full Access Available for Android & Windows
Chat with Support