Gce Model Questions Vol1 2022 Computer Studies Question 20

Practice objective / multiple choice question 20 from the 2022 Gce Model Questions Vol1 Computer Studies examination.

Gce Model Questions Vol1 2022 Computer Studies Objective / Multiple Choice Hard Difficulty
Question 20 GCE_MODEL_QUESTIONS_VOL1 • 2022 • COMPUTER_STUDIES • objective

Examine the JavaScript code below: ```javascript for (var i = 1; i <= 3; i++) { setTimeout(function() { console.log(i); }, i * 100); } for (let j = 1; j <= 3; j++) { setTimeout(function() { console.log(j); }, j * 100); } ``` Assuming the code runs in a modern browser, what sequence of numbers is printed to the console, in the order they appear?

Answer Options

A. 4,4,4,1,2,3
Correct Answer B. 4,1,4,2,4,3
C. 4,1,2,3,4,4
D. 1,2,3,4,4,4
Correct Answer
B
Correct Option:
4,1,4,2,4,3

About This Question

This is Gce Model Questions Vol1 2022 Computer Studies Question 20. It is one of the objective questions from the 2022 Gce Model Questions Vol1 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