Neco 2018 Computer Studies Question 38
Practice objective / multiple choice question 38 from the 2018 Neco Computer Studies examination.
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
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.