Indian Institute of Technology Madras
BS Degree Programme · Examination & Study Paper
Modern Application Development II
Vue components, slots & lifecycle
Official Paper
Examination Instructions & Guidelines
- Solve on notebook/paper first before checking solutions.
- MCQ: Exactly 1 option is correct. Negative marking applies.
- MSQ: One or more options correct. Select all to score.
- Scientific calculator allowed for all calculations.
- Official answer key is sealed at the end of this sheet.
End Term · 31 Aug 2025 (FN)End Term
- Q1MCQ3 Marks·Choose one option

- A

- B

- C

- D

- A
- Q2MCQ4.5 Marks·Choose one option

- A

- B

- C

- D

- A
End Term · 31 Aug 2025 (AN)End Term
- Q3MSQ4.5 Marks·Choose all correct options
Assuming that the root Vue instance has already been created and mounted to div app. Which of the following statements are CORRECT?- AThe header slot will display "Welcome John" when loading is true
- BThe content slot will render 3 list items with "item1 (3 total)", "item2 (3 total)", "item3 (3 total)"
- CThe default slot will display "No data available" from the fallback prop
- DIf we change isLoading: true in data-provider, the header will show "Loading..."
- EChanging v-slot:default to just v-slot in parent-component would break the functionality
Quiz 2 · 3 Aug 2025 (AN)Quiz 2
- Q4MSQ2 Marks·Choose all correct options
Which of the following statements are true?
- A

- B

- C

- D

- A
- Q5MCQ3 Marks·Choose one option

- A

- B

- C

- D

- A
- Q6MCQ3 Marks·Choose one option

- A

- B

- C

- D

- E

- A
- Q7MCQ4.5 Marks·Choose one option

- A

- B

- C

- D

- A
End Term · 22 Dec 2024 (FN)End Term
- Q8MCQ3 Marks·Choose one option

- A

- B

- C

- D

- A
- Q9MCQ2 Marks·Choose one option
Which of the following statements about the beforeDestroy and destroyed lifecycle hooks in Vue is true?
- AThe “beforeDestroy” hook is called after the component is removed from the DOM, and the “destroyed” hook is called before the component is destroyed.
- BThe “beforeDestroy” hook is called before the component is removed from the DOM, and the “destroyed” hook is called after the component is destroyed.
- CThe “beforeDestroy” hook is called when the component is mounted, and the “destroyed” hook is called before the component is destroyed.
- DBoth hooks are called after the component is destroyed.
- Q10MCQ4.5 Marks·Choose one option

- AParent
- BButton
- CButton Parent
- DParent Button
End Term · 22 Dec 2024 (AN)End Term
- Q11MCQ3 Marks·Choose one option

- A

- B

- C

- D

- A
- Q12MCQ4.5 Marks·Choose one option

- A

- B

- C

- D

- A