Indian Institute of Technology Madras
BS Degree Programme · Examination & Study Paper
Modern Application Development II
Vue Router
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

- AAdmin component
- BUnauthorized component
- CBlank screen
- DVue throws a routing error
End Term · 31 Aug 2025 (AN)End Term
- Q2MCQ4.5 Marks·Choose one option

- AUserProfile
- BUser
- CNotFound
- DUserSettings
Read the passage below, then answer Q3–Q4
Answer the given Subquestions:
Q3MCQ4.5 Marks·Choose one optionConsider the following Vue Router configuration in a Vue 2 application:
In a Vue component, you have these navigation methods:
What URLs will be generated when the user clicks each navigation element?- AUser button: /user, Product button: /product, Home link: /home
- BUser button: /user/123, Product button: /product/electronics/456, Home link: /
- CUser button: /UserProfile/123, Product button: /ProductDetail/electronics/456, Home link: /Home
- DUser button: /user?id=123, Product button: /product?category=electronics&id=456, Home link: /
- Q4MSQ4.5 Marks·Choose all correct options
Using the same Vue Router configuration from the previous question, Select ALL correct statements about these navigation methods.
- AThe "View User" link will navigate to /user/789 and match the UserProfile route
- BThe navigateOne() method will create URL /user/555?tab=settings
- CThe $router.replace() method adds a new entry to the browser history
- DThe $router.go(-1) method navigates to the previous page in browser history
Quiz 2 · 3 Aug 2025 (AN)Quiz 2
- Q5MCQ3 Marks·Choose one option

- ADashboard only
- BStats Component only
- CDashboard Stats Component
- D404 Not Found
- Q6MSQ3 Marks·Choose all correct options

- A

- B

- C

- D

- E

- A
- Q7MCQ4.5 Marks·Choose one option

- ABoth will show Dashboard
- B1: Dashboard, 2: 404 Not Found
- C1: Dashboard, 2: Stats Component
- DBoth will show 404 Not Found
Read the passage below, then answer Q8–Q9
You are given the following HTML and JavaScript code that uses Vue 2 via CDN along with Vue Router. Read the code carefully and answer the given subquestions.

Q8MCQ4.5 Marks·Choose one option
- A

- B

- C

- D

- A
- Q9MCQ3 Marks·Choose one option
Suppose the button is clicked multiple times quickly, the message area flickers unexpectedly. How can you improve the code to ensure proper async behavior and prevent overlapping fetches?
- A

- B

- C

- D

- A
End Term · 22 Dec 2024 (FN)End Term
- Q10MSQ2 Marks·Choose all correct options

- Athis.$route.params.id
- Bthis.$router.params.id
- Cthis.$route.query.id
- Dthis.$route.params['id']
End Term · 22 Dec 2024 (AN)End Term
- Q11MCQ3 Marks·Choose one option

- AHome
- BProfile
- CSecurity
- DSettings
- Q12MSQ2 Marks·Choose all correct options

- A

- B

- C

- D

- A