Quiz Space

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

Question 16: What are the differences between Vue's computed properti…

Question 16

+2 marksOne or more correct options

What are the differences between Vue's computed properties and methods?

Select all that apply.

  1. A

    Computed properties are cached based on their reactive dependencies, whereas methods are recalculated every time they are called.

  2. B

    Methods can be used to perform operations that do not need to be cached.

  3. C

    Computed properties can be used as methods if they require parameters.

  4. D

    Methods are always reactive and update automatically when their dependencies change.

Show answer

Correct answers

  • A

    Computed properties are cached based on their reactive dependencies, whereas methods are recalculated every time they are called.

  • B

    Methods can be used to perform operations that do not need to be cached.

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