Neco 2025 Computer Studies Question 24

Practice objective / multiple choice question 24 from the 2025 Neco Computer Studies examination.

Neco 2025 Computer Studies Objective / Multiple Choice Hard Difficulty
Question 24 NECO • 2025 • COMPUTER_STUDIES • objective

The following JavaScript code attaches click handlers to three list items: ```html ``` ```js var items = document.querySelectorAll('#menu li'); for (var i = 1; i <= items.length; i++) { items[i-1].addEventListener('click', function() { alert('You clicked item ' + i); }); } ``` When the user clicks on **Item 3**, what message is displayed?

Answer Options

A. You clicked item 2
Correct Answer B. You clicked item 4
C. You clicked item 3
D. You clicked item 5
Correct Answer
B
Correct Option:
You clicked item 4

About This Question

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