Quiz Space

Modern Application Development II · Quiz 1 · 27 Oct 2024 · September 2024 term

Question 2: Which of the following is an example of ephemeral state i…

Question 2

+2 marksOne correct option

Which of the following is an example of ephemeral state in a web application?

  1. A

    A user's authentication token stored in local storage

  2. B

    A form input value that changes as the user types

  3. C

    The list of favorite items saved in a user's profile

  4. D

    A shopping cart saved between sessions

Show answer

Correct answer

  • B

    A form input value that changes as the user types

Question 2 of 16 in the IIT Madras BS Modern Application Development II (MAD 2) Quiz 1 paper sat on 27 Oct 2024, in the September 2024 term (IIT M DIPLOMA AN EXAM QDD2 27 Oct 2024). It carries 2 marks.

More questions from this paper

  1. Q1Consider the following HTML, with the correct Vue 2 CDN links included. What will be the final rendered class attribute…
  2. Q3Consider the following JavaScript code What will be the output of the code?
  3. Q4Consider the following JavaScript code snippet What will be the output of the code?
  4. Q5Consider the following code snippet What will be the output after 1 second?
  5. Q6Consider the below javascript program. What will be the output of the above program?
  6. Q7Consider the below Vue component. What will be displayed in the <p> element, after the button with text “Update” is cli…
  7. Q8Consider the following HTML, with the correct Vue 2 CDN links included. What will be shown in the amount placeholder wh…
  8. Q9Consider the following HTML, with the correct Vue 2 CDN links included. What will be displayed in the <p> tags after th…
  9. Q10Consider the below javascript program. What will be the output of the above program?
  10. Q11Consider the below Vue component. What will be displayed in the <ul> when filterActive is true?
  11. Q12Which of the following statements is/are true about JavaScript’s “this” keyword behavior in different contexts?
  12. Q13Considering the differences between “var”, “let”, and “const” in terms of scope, hoisting, and reassignment, which of t…
  13. Q14Which of the following statements is/are true?
  14. Q15Which of the following scenario(s) represent ephemeral state(s) in a web application?
  15. Q16What are the differences between Vue's computed properties and methods?