Neco 2018 Computer Studies Question 38

Practice objective / multiple choice question 38 from the 2018 Neco Computer Studies examination.

Neco 2018 Computer Studies Objective / Multiple Choice Medium Difficulty
Question 38 NECO • 2018 • COMPUTER_STUDIES • objective

The following Python code counts how many ordered pairs \((i,j)\) satisfy a condition, where \(n\) is a positive integer:\n\n```python\ncount = 0\nfor i in range(1, n+1):\n for j in range(1, i+1):\n if (i*j) % 3 == 0:\n count += 1\n```\nIf \(n = 6\), what is the final value of **count** after the loops finish?

Answer Options

A. 10
B. 12
Correct Answer C. 11
D. 13
Correct Answer
C
Correct Option:
11

About This Question

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