Quiz Space

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

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

Question 8

+3 marksOne correct option

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

javascript
const obj1 = { x: 10, y: 20 },
obj2 = { x: 30, y: 40 }
function area() {
return this.x * this.y
}
function test() {
return area.call(obj2)
}
console.log(test.call(obj1), test.call(obj2))
  1. A

    200, 1200

  2. B

    1200, 200

  3. C

    1200, 1200

  4. D

    200, 200

Show answer

Correct answer

  • C

    1200, 1200

Question 8 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. Q5What will be logged on to the console, if the program written below is executed?
  6. Q6What will be logged on to the console, if the program written below is executed?
  7. Q7What 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?