Question 8
Consider this nested loop is written in JavaScript:
let result = "";for (let i = 0; i < 2; i++) { for (var j = 0; j < 2; j++) { result += i + j; }}console.log(result);Which of the following statements is/are true?
Consider this nested loop is written in JavaScript:
let result = "";for (let i = 0; i < 2; i++) { for (var j = 0; j < 2; j++) { result += i + j; }}console.log(result);Which of the following statements is/are true?
Correct answers
Question 8 of 16 in the IIT Madras BS Modern Application Development II (MAD 2) Quiz 1 paper sat on 26 Oct 2025, in the September 2025 term (IIT M DIPLOMA AN EXAM QDD2 26 Oct 2025). It carries 3 marks.