Indian Institute of Technology Madras
BS Degree Programme · Examination & Study Paper
Modern Application Development I
Most repeated questions
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.
- NAT: Numerical response. No negative marking.
- Scientific calculator allowed for all calculations.
- Official answer key is sealed at the end of this sheet.
Type 1 · asked 6 times · Requests, forms & HTTP errors
Predict /score route output for given query strings
Read the passage below, then answer Q1–Q3
Q1MCQ3 Marks·Choose one optionEnd Term · 31 Aug 2025 (AN)Key ↓
- AAlex scored 0 and received grade F.
- BAlex scored eighty and received grade F
- CError 500: Internal Server Error
- DInvalid marks for Alex
- Q2MCQ2 Marks·Choose one optionEnd Term · 31 Aug 2025 (AN)Key ↓

- AGuest scored 88 and received grade A
- BGuest scored 0 and received grade F
- CGuest scored 88 and received grade B
- DInvalid marks for Guest
- Q3MCQ2 Marks·Choose one optionEnd Term · 31 Aug 2025 (AN)Key ↓

- AAnya scored 59.5 and received grade F
- BInvalid marks for Anya
- CAnya scored 0 and received grade F
- DAnya scored 59 and received grade F
Read the passage below, then answer Q4–Q6
Q4MCQ3 Marks·Choose one optionEnd Term · 31 Aug 2025 (FN)Key ↓
- AAlex scored 0 and received grade F
- BInvalid marks for Alex
- CAlex scored eighty and received grade F
- DError 500: Internal Server Error
- Q5MCQ2 Marks·Choose one optionEnd Term · 31 Aug 2025 (FN)Key ↓

- AGuest scored 88 and received grade A
- BGuest scored 88 and received grade B
- CGuest scored 0 and received grade F
- DInvalid marks for Guest
- Q6MCQ2 Marks·Choose one optionEnd Term · 31 Aug 2025 (FN)Key ↓

- AAnya scored 59.5 and received grade F
- BAnya scored 0 and received grade F
- CInvalid marks for Anya
- DAnya scored 59 and received grade F
Type 2 · asked 5 times · Python essentials: decorators & argv
Predict the output of a function wrapped by a Python decorator
- Q7MCQ3 Marks·Choose one optionEnd Term · 22 Dec 2024 (FN)Key ↓

- A

- B

- C

- D

- A
- Q8MCQ3 Marks·Choose one optionEnd Term · 13 Apr 2025 (FN)Key ↓

- A

- B

- C

- D

- A
- Q9MCQ3 Marks·Choose one optionQuiz 2 · 3 Aug 2025 (AN)Key ↓

- A10
- B9
- C3
- D4
- Q10MCQ3 Marks·Choose one optionEnd Term · 31 Aug 2025 (AN)Key ↓

- A

- B

- C

- D

- A
- Q11MCQ3 Marks·Choose one optionEnd Term · 31 Aug 2025 (FN)Key ↓

- A

- B

- C

- D

- A
Type 3 · asked 4 times · JavaScript & the DOM
Pick the JS code that makes a text box's content bold
- Q12MCQ3 Marks·Choose one optionEnd Term · 22 Dec 2024 (FN)Key ↓
Consider the following HTML document.

- A

- B

- C

- D

- A
- Q13MSQ3 Marks·Choose all correct optionsEnd Term · 13 Apr 2025 (FN)Key ↓

- A

- B

- C

- D

- A
- Q14MSQ4.5 Marks·Choose all correct optionsEnd Term · 31 Aug 2025 (AN)Key ↓

- A

- B

- C

- D

- A
- Q15MSQ4.5 Marks·Choose all correct optionsEnd Term · 31 Aug 2025 (FN)Key ↓

- A

- B

- C

- D

- A
Type 4 · asked 4 times · Templates: string Template & Jinja2
Predict the rendered output of a Jinja2 for-loop template
Type 5 · asked 4 times · Templates: string Template & Jinja2
Work out what a child template renders with extends and block
Type 6 · asked 4 times · HTML, CSS & accessible UI
Find the final text colour using CSS specificity rules
- Q24MCQ4.5 Marks·Choose one optionEnd Term · 22 Dec 2024 (FN)Key ↓
Consider the following HTML document.
How will the browser render above HTML file?- A

- B

- C

- D

- A
- Q25MCQ3 Marks·Choose one optionEnd Term · 13 Apr 2025 (FN)Key ↓

- A1- b, 2 - a, 3- d, 4 - c
- B1- c, 2 - d, 3- d, 4 - b
- C1- c, 2 - a, 3- d, 4 - b
- D1- a, 2 - c, 3- b, 4 - d
- Q26MCQ3 Marks·Choose one optionEnd Term · 31 Aug 2025 (FN)Key ↓

- AColor: green, Font-size: 20px
- BColor: orange, Font-size: 14px
- CColor: purple, Font-size: 20px
- DColor: purple, Font-size: 14px
- Q27MCQ3 Marks·Choose one optionEnd Term · 31 Aug 2025 (FN)Key ↓

- ABlue
- BRed
- CGreen
- DBlack
Type 7 · asked 3 times · Testing with pytest
Find which tests run with 'pytest -m <marker>'
Type 8 · asked 3 times · Templates: string Template & Jinja2
Find which string.Template call works or raises KeyError
Type 9 · asked 3 times · Templates: string Template & Jinja2
Predict output when string.Template and Jinja2 are combined
Type 10 · asked 3 times · Web basics, bandwidth & data size
Compute bits/bytes or characters with optimal fixed-length encoding
Type 11 · asked 3 times · Requests, forms & HTTP errors
Trace a Flask login loop over request.args for given URLs
Type 12 · asked 3 times · Logging, Git & deployment
Find which log messages appear for a given logging level
Type 13 · asked 3 times · HTML, CSS & accessible UI
Tell how block and inline HTML elements display by default
- Q46MCQ3 Marks·Choose one optionEnd Term · 31 Aug 2025 (AN)Key ↓

- A

- B

- C

- D

- A
- Q47MCQ3 Marks·Choose one optionEnd Term · 31 Aug 2025 (FN)Key ↓

- A

- B

- C

- D

- A
- Q48MCQ3 Marks·Choose one optionQuiz 1 · 26 Oct 2025 (AN)Key ↓

- AStatement 1 is correct, but statement 2 is incorrect.
- BStatement 2 is correct, but statement 1 is incorrect.
- CBoth statements 1 and 2 are correct
- DBoth statements 1 and 2 are incorrect
Type 14 · asked 3 times · REST APIs with Flask-RESTful
Find which curl requests fail on a Flask-RESTful resource
- Q49MCQ3 Marks·Choose one optionEnd Term · 13 Apr 2025 (FN)Key ↓

- AOnly 3
- BOnly 3 and 4
- COnly 5 and 6
- DOnly 3, 4, 5 and 6
- Q50MSQ3 Marks·Choose all correct optionsEnd Term · 31 Aug 2025 (AN)Key ↓

- A

- B

- C

- D

- A
Read the passage below, then answer Q51

Based on the above data, answer the given subquestions.
Q51MCQ4.5 Marks·Choose one optionEnd Term · 31 Aug 2025 (AN)Key ↓
- A

- B

- C

- D

- A
Type 15 · asked 2 times · Flask routes & app setup
Predict url_for() results inside app.test_request_context()
Type 16 · asked 2 times · Testing with pytest
Find the pytest setup issue with a fixture in a conftest file
Type 17 · asked 2 times · Testing with pytest
Predict 'pytest -v' output for a test class with assertions
Type 18 · asked 2 times · Web basics, bandwidth & data size
Compute data used over a time period at a given bandwidth
Type 19 · asked 2 times · Web basics, bandwidth & data size
Compute download time from file size and connection speed
- Q60MCQ3 Marks·Choose one optionEnd Term · 31 Aug 2025 (AN)Key ↓
A user downloads a 10 MB file from a server with 5 Mbps speed. How long does it approximately take?
- A2 seconds
- B10 seconds
- C16 seconds
- D1.6 seconds
- Q61MCQ3 Marks·Choose one optionEnd Term · 31 Aug 2025 (FN)Key ↓
A user downloads a 10 MB file from a server with 5 Mbps speed. How long does it approximately take?
- A2 seconds
- B10 seconds
- C16 seconds
- D1.6 seconds
Type 20 · asked 2 times · Requests, forms & HTTP errors
Predict the response with abort() and custom error handlers
Type 21 · asked 2 times · Models, databases & SQLAlchemy
Match GET, SQLAlchemy, Template and SQLite to their MVC roles
Type 22 · asked 2 times · Testing with pytest
Match software testing types to their focus area
- Q66MCQ3 Marks·Choose one optionEnd Term · 31 Aug 2025 (AN)Key ↓

- A1-a, 2- c, 3-b, 4-d, 5-e
- B1-b, 2- c, 3-a, 4-e, 5-d
- C1-e, 2- d, 3-c, 4-a, 5-b
- D1-e, 2- d, 3-b, 4-a, 5-c
- Q67MCQ3 Marks·Choose one optionEnd Term · 31 Aug 2025 (FN)Key ↓

- A1-a, 2- c, 3-b, 4-d, 5-e
- B1-b, 2- c, 3-a, 4-e, 5-d
- C1-e, 2- d, 3-b, 4-a, 5-c
- D1-e, 2- d, 3-c, 4-a, 5-b
Type 23 · asked 2 times · Logging, Git & deployment
Choose the git commands to merge two feature branches into main
Type 24 · asked 2 times · Logging, Git & deployment
Predict the result of git push after a teammate pushed first
Type 25 · asked 2 times · Flask routes & app setup
Find which routes work with a custom template_folder
- Q72MCQ4.5 Marks·Choose one optionEnd Term · 31 Aug 2025 (AN)Key ↓

- A

- B

- C

- D

- A
- Q73MCQ4.5 Marks·Choose one optionEnd Term · 31 Aug 2025 (FN)Key ↓

- AAll routes will work correctly as Flask will automatically search in both templates/ and custom_templates/ folders
- BThe / and /dashboard routes will fail with TemplateNotFound error, while /admin and /profile routes will work correctly
- COnly the /admin and /profile routes will work correctly, while / and /dashboard routes will fail with TemplateNotFound error
- DAll routes will fail because Flask requires the template folder to be named exactly templates
Type 26 · asked 2 times · Models, databases & SQLAlchemy
Predict effect of cascade delete on related SQLAlchemy rows
Type 27 · asked 2 times · Python essentials: decorators & argv
Predict output of a script that reads sys.argv
Type 28 · asked 2 times · Requests, forms & HTTP errors
Find the HTTP method or URL produced by submitting an HTML form
Type 29 · asked 2 times · Validation & access control
Judge statements about client-side vs server-side validation
- Q80MSQ3 Marks·Choose all correct optionsEnd Term · 22 Dec 2024 (FN)Key ↓
Which of the following statements about the Constraint Validation API is/are true?
- AThe Constraint Validation API ensures that form input meets client-side validation rules before submission.
- BThe Constraint Validation API is sufficient to prevent server-side attacks like SQL injection.
- CIt is possible to bypass the Constraint Validation API by directly sending requests to the server.
- DThe Constraint Validation API automatically validates all data on the server side.
- Q81MCQ2 Marks·Choose one optionEnd Term · 31 Aug 2025 (FN)Key ↓
Consider the following statements and choose the correct option Statement 1: It is mandatory to implement server-side validations and client-side validations. Statement 2: Server-side validations can be implemented using HTML5.
- AStatement 1 is false, while statement 2 is true
- BStatement 1 is true, while statement 2 is false
- CBoth statements are false
- DBoth statements are true
Type 30 · asked 2 times · Testing with pytest
Pick true statements about unit tests in Flask with pytest
Official KeyMaster Answer Key & Explanations
Official answer keys from IIT Madras BS past papers. Click any question to review.
Reveal KeyCollapse Key
Master Answer Key & Explanations
Official answer keys from IIT Madras BS past papers. Click any question to review.













































































































