Quiz Space

Modern Application Development II · Quiz 1 · 16 Oct 2022 · September 2022 term

Question 5: What will be logged on to the console, if the program wri…

Question 5

+3 marksOne correct option

What will be logged on to the console, if the program written below is executed?

javascript
{
let x = 10
{
let getNum = () => {
return x + 10
}
}
console.log(getNum())
}
  1. A

    10

  2. B

    NaN

  3. C

    Undefined

  4. D

    ReferenceError

Show answer

Correct answer

  • D

    ReferenceError

Question 5 of 16 in the IIT Madras BS Modern Application Development II (MAD 2) Quiz 1 paper sat on 16 Oct 2022, in the September 2022 term (IIT M QUIZ 1 FOUNDATION DAD DIPLOMA QPD2 16 Oct 2022). It carries 3 marks.

More questions from this paper

  1. Q1Which of the following statements is correct regarding javascript language?
  2. Q2Consider the following Vue application with markup “index.html” and javascript file “app.js”. index.html: app.js: If th…
  3. Q3Consider the below javascript program, and predict the output, if executed.
  4. Q4Consider the following Vue application with markup “index.html” and javascript file “app.js”. index.html: app.js: If th…
  5. Q6What will be logged on to the console, if the program written below is executed?
  6. Q7What will be logged on to the console, if the program written below is executed?
  7. Q8What will be logged on to the console, if the program written below is executed?
  8. Q9What will be logged on to the console, if the program written below is executed?
  9. Q10Consider the following Vue app with markup “index.html” and javascript file “app.js”. index.html: app.js: What will be …
  10. Q11Consider the below javascript program, and predict the output, if executed.
  11. Q12What will be logged on to the console, if the program written below is executed.
  12. Q13Consider the following Vue application with markup “index.html” and javascript file “app.js”. index.html: app.js: If th…
  13. Q14Consider the following Vue application with markup “index.html” and javascript file “app.js”. index.html: app.js: If th…
  14. Q15Which of the following statement(s) is/are false regarding javascript language?
  15. Q16Which of the following statement(s) is/are true regarding the state of a web application?