Indian Institute of Technology Madras
BS Degree Programme · Examination & Study Paper
Modern Application Development II
Caching & page performance
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
- Q1MCQ2 Marks·Choose one option
In Flask, what is the main benefit of using the @cache.cached() decorator?
- AIt stores output in session storage
- BIt skips route execution for repeated inputs
- CIt enables token authentication
- DIt sends compressed response headers
- Q2MSQ2 Marks·Choose all correct options
Which of the following factors directly affect the speed and performance of a web page load?
- AThe number of CSS selectors in the stylesheet
- BNumber of HTTP requests made
- CFile size of resources (like images, JS)
- DUse of semantic HTML tags
- Q3MCQ3 Marks·Choose one option
What is the main advantage of using caching in a Flask-based web application?
- AIt eliminates the need for client-side rendering
- BIt encrypts data transmission between server and client
- CIt avoids the need for database interactions completely
- DIt reduces server load by reusing responses for repeated requests
- Q4MSQ3 Marks·Choose all correct options
Which factors directly impact the Lighthouse "Performance" score?
- AFirst Contentful Paint (FCP)
- BHTTPS usage
- CTime to Interactive (TTI)
- DLayout Shift
- Q5MCQ4.5 Marks·Choose one option
If requests for user IDs 1, 2, 1 are made within 5 minutes, what's the total response time?- A15 seconds
- B10 seconds
- C5 seconds
- D0 seconds
End Term · 31 Aug 2025 (AN)End Term
- Q6MCQ2 Marks·Choose one option
In Flask, what is the main benefit of using the @cache.cached() decorator?
- AIt stores output in session storage
- BIt enables token authentication
- CIt sends compressed response headers
- DIt skips route execution for repeated inputs
- Q7MSQ2 Marks·Choose all correct options
Which of the following factors directly affect the speed and performance of a web page load?
- AThe number of CSS selectors in the stylesheet
- BUse of semantic HTML tags
- CNumber of HTTP requests made
- DFile size of resources (like images, JS)
- Q8MCQ3 Marks·Choose one option
What is the main advantage of using caching in a Flask-based web application?
- AIt eliminates the need for client-side rendering
- BIt reduces server load by reusing responses for repeated requests
- CIt encrypts data transmission between server and client
- DIt avoids the need for database interactions completely
- Q9MSQ3 Marks·Choose all correct options
Which factors directly impact the Lighthouse "Performance" score?
- AFirst Contentful Paint (FCP)
- BTime to Interactive (TTI)
- CLayout Shift
- DHTTPS usage
End Term · 22 Dec 2024 (FN)End Term
- Q10MCQ3 Marks·Choose one option
Which of the following best describes the difference between @cache.memoize() and @cache.cached() in Flask-Caching?
- A

- B

- C

- D

- A
End Term · 22 Dec 2024 (AN)End Term
- Q11MCQ4.5 Marks·Choose one option

- A

- B

- C

- D

- A
- Q12MSQ2 Marks·Choose all correct options
Which of the following statements are true about Lighthouse?
- ALighthouse measures various performance metrics, including Time to Interactive and Speed Index.
- BLighthouse generates a single score for UI design only.
- CIt can emulate network throttling and device types during performance evaluation.
- DLighthouse focuses exclusively on performance and ignores accessibility.