Neco 2023 Computer Studies Question 21

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

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

Consider the following Python code: ```python x = 0 for i in range(1, 7): for j in range(1, i+1): if (i*j) % 3 == 0: x += i - j else: x += j - i ``` What is the final value of the variable \(x\) after the loops complete?

Answer Options

A. 5
Correct Answer B. 7
C. 9
D. 12
Correct Answer
B
Correct Option:
7

About This Question

This is Neco 2023 Computer Studies Question 21. 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