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