Neco 2018 Computer Studies Question 2

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

Neco 2018 Computer Studies Objective / Multiple Choice Hard Difficulty
Question 2 NECO • 2018 • COMPUTER_STUDIES • objective

Consider the following Python program:\n\n```python\nfor i in range(1, n+1):\n for j in range(1, i+1):\n print("*", end="")\n if i % 2 == 0:\n print("@", end="")\nprint("#" * n)\n```\nThe program prints a sequence of characters consisting of asterisks (\*), at‑signs (\@) and hash symbols (\#). If the total number of characters printed by the program is \(70\), determine the value of \(n\).

Answer Options

A. 8
B. 12
C. 14
Correct Answer D. 10
Correct Answer
D
Correct Option:
10

About This Question

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