Neco 2023 Computer Studies Question 19

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

Neco 2023 Computer Studies Objective / Multiple Choice Hard Difficulty
Question 19 NECO • 2023 • COMPUTER_STUDIES • objective

Consider the following Python code: ```python x = 0 for i in range(1, 6): for j in range(1, i+1): if (i*j) % 3 == 0: x += i - j else: x += j - i ``` After the loops finish, what is the final value stored in variable `x`?

Answer Options

A. -10
B. -6
C. 8
Correct Answer D. -8
Correct Answer
D
Correct Option:
-8

About This Question

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