Quiz Space

Modern Application Development II · Quiz 2 · 16 Aug 2026 · May 2026 term

Question 9: A Vue 2 component does the following: •loads initial task…

Question 9

+4.5 marksOne or more correct options

A Vue 2 component does the following: •loads initial task data from an API, •starts a timer after the component appears on the page, •clears that timer before the component is removed. Which hook choices are appropriate?

Select all that apply.

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

Correct answers

  • A
  • B
  • C

Question 9 of 15 in the IIT Madras BS Modern Application Development II (MAD 2) Quiz 2 paper sat on 16 Aug 2026, in the May 2026 term (Modern Application Development Ii 14 Aug 26). It carries 4.5 marks.

More questions from this paper

  1. Q1A developer opens the Node.js REPL and runs the following line: Why does this fail?
  2. Q2Consider the following javascript code: The above code is initially loaded on the browser and then the browser is refre…
  3. Q3Point out the error with the following code that is used to display user data?
  4. Q4What is the correct output order for the following code?
  5. Q5Consider the following code:
  6. Q6Consider the following JavaScript code snippet? What will be the output of above code on the browser’s console?
  7. Q7Suppose the following HTML exists: Which of the following statements are correct?
  8. Q8A Vue frontend, a mobile app, and another backend service all call the same Flask API deployed on multiple servers. The…
  9. Q10Figure question
  10. Q11Fill in Code1, inside a mutation handler, which can be used to reduce the price of each of the products in the state by…
  11. Q12Consider the following Vuex store and component code. store.js Component.vue
  12. Q13What will be logged in the console when this component first loads?
  13. Q14file2: ProfileComponent.vue What should be filled in at Line A to correctly read the username from the URL?
  14. Q15file2: ProfileComponent.vue What should be filled in at Line B to navigate to the Settings page?