Quiz Space

Modern Application Development II · End Term · 3 Sept 2023 · May 2023 term · Set QPF1-S1

Question 2: Consider the below HTML document. index.html: Suppose you…

Question 2

+3 marksOne correct option

Consider the below HTML document.

index.html:

html
<table id ="table_id">
<tr>
<th>Name</th>
<th>Standard</th>
</tr>
<tr>
<td id = "cell_id_1">Abhishek</td>
<td id = "cell_id_2">10th</td>
</tr>
<tr>
<td id = "cell_id_3">Narendra</td>
<td id = "cell_id_4">11th</td>
</tr>
</table>
<script>
document.getElementById("table_id").addEventListener("click", () =>
console.log("Table Clicked !!"));
document.getElementById("cell_id_1").addEventListener("click", () =>
console.log("Cell Clicked !!"));
</script>

Suppose you open the “index.html” file in a browser, and click on the table cell with the text “Abhishek”. Which of the following shows the correct sequence of output?

  1. A
  2. B
  3. C
  4. D
Show answer

Correct answer

  • A

Question 2 of 32 in the IIT Madras BS Modern Application Development II (MAD 2) End Term paper sat on 3 Sept 2023, in the May 2023 term (IIT M FOUNDATION ET1 EXAM QPF1 S1 03 Sep). It carries 3 marks.

More questions from this paper

  1. Q1Consider the below HTML document. index.html: Suppose you open the “index.html” file in a browser, and click on the tab…
  2. Q3Consider the following JavaScript program, and predict the output if executed.
  3. Q4Match the Vue directives / constructs with their function.
  4. Q5Consider the below Vue application with markup file “index.html” and javascript file “app.js”. index.html: app.js: Supp…
  5. Q6Consider the below Vue application with markup file “index.html” and javascript file “app.js”. index.html: app.js: Supp…
  6. Q7Consider the below javascript program, and predict the output, if executed.
  7. Q8Consider the following flask application. app.py: Suppose the application is running on “http://localhost:5000”. If the…
  8. Q9What will be the output of the following javascript code.
  9. Q10Consider the below Vue application with markup file “index.html” and javascript file “app.js”. index.html: app.js: Supp…
  10. Q11Consider the Vue application
  11. Q12Which of the following is/are example(s) of ephemeral state?
  12. Q13Which of the following statement(s) is/are false in general?
  13. Q14Which of the following statement(s) is/are correct regarding the execution context in JavaScript?
  14. Q15Which of the following statements is/are correct regarding the prototype in javascript?
  15. Q16Which of the following statements is/are correct?
  16. Q17Which of the following statements is/are true regarding the celery in python?
  17. Q18Which of the following statements are true regarding async and await?
  18. Q19Which of the following statements is true regarding HTTP and fetch API?
  19. Q20Consider the following Vue application with markup “index.html” and javascript file “app.js”. index.html: app.js: Suppo…
  20. Q21Consider the below flask app, and an HTML file named “index.html”. app.py: index.html: Suppose you open the “index.html…
  21. Q22Consider the following flask application. app.py: Suppose the application is running on “http://localhost:5000”. If the…
  22. Q23Consider the below Vue application with markup file “index.html” and javascript file “app.js”. index.html: app.js: If t…
  23. Q24Consider the below Vue application with markup file “index.html” and javascript file “app.js”.
  24. Q25Consider the Vue application
  25. Q26Consider the below Vue component and a Vuex store implementation. You are supposed to invoke the mutation function “upd…
  26. Q27Consider the given 2 implementations. Approach 1: driver code: celery job: Approach 2: driver code: celery job: Suppose…
  27. Q28Which of the following statement(s) is/are false regarding flask_caching and caching in general?
  28. Q29Which of the following statements is/are true?
  29. Q30Figure question
  30. Q31Which of the following statement(s) is/are true regarding short polling?
  31. Q32Which of the following statements is/are true in context of lighthouse?