uiz Space

May 2026 term · Modern Application Development I · BSCS2003

Modern Application Development I Quiz 2: 16 August 2026 (May 2026 term)

The IIT Madras BS Modern Application Development I (MAD 1) Quiz 2 paper sat on 16 Aug 2026, in the May 2026 term: 13 questions for 39 marks in 120 minutes. Every question is below with its answer. Take it as a timed mock test to be marked, or read it through first.

Questions
13
Marks
39
Duration
120 min
MCQ
9
Numerical
2
MSQ
2

Updated

Official paper: Modern Application Development I 14 Aug 26 · No negative marking.

Question 1

+3 marksOne correct option

Consider the Flask SQLAlchemy data model.

What is the output after the following Python code is executed ? (Assume all entries are successfully committed to the database)

  1. A

    4

  2. B

    3

  3. C

    2

  4. D

    1

Show answer

Correct answer

  • D

    1

Question 2

+3 marksOne correct option

Consider the following models: Course and Enrollment corresponding to tables course and enrollment in SQLite database.

Based on the model schemas, what relationship do the classes Course and Enrollment share?

  1. A

    Many-to-Many

  2. B

    One-to-Many

  3. C

    One-to-One

  4. D

    The tables are not at all related

Show answer

Correct answer

  • B

    One-to-Many

Question 3

+3 marksOne correct option

Which of the following statements is correct?
Statement 1: In Server-Side Rendering (SSR), the client's browser receives a nearly empty HTML skeleton and relies heavily on client-side JavaScript execution to fetch data and construct the Document Object Model (DOM).
Statement 2: Client-Side Rendering (CSR) reduces the immediate processing load on the web server by offloading UI layout rendering tasks to the user's browser engine.

  1. A

    Both are incorrect

  2. B

    Both are correct

  3. C

    Only Statement 1 is correct

  4. D

    Only Statement 2 is correct

Show answer

Correct answer

  • D

    Only Statement 2 is correct

Question 4

+3 marksOne correct option

A recipe webpage needs to display two distinct sections: A list of ingredients where the order does not matter.1. A sequence of cooking steps that must be followed in order.2. Which combination of HTML list container tags is most appropriate for these sections?

  1. A
  2. B
  3. C
  4. D
Show answer

Correct answer

  • D

Question 5

+3 marksOne correct option

Consider the following Python jinja2 templating code.

  1. A

    Nothing will be rendered in place of x

  2. B

    0

  3. C

    1

  4. D

    2

Show answer

Correct answer

  • A

    Nothing will be rendered in place of x

Question 6

+5 marksOne correct option

Consider the following Flask application structure and code.

Which of the following statements about the template rendering behavior is correct?

  1. A
  2. B
  3. C
  4. D

    All routes fail because Flask requires templates to be in a default folder

Show answer

Correct answer

  • C

Question 7

+2 marksOne correct option
  1. A

    Sends a PUT request to update data using form format.

  2. B

    Sends a PUT request using JSON encoding.

  3. C

    Sends a GET request to retrieve user information.

  4. D

    Sends a DELETE request to remove user data.

Show answer

Correct answer

  • A

    Sends a PUT request to update data using form format.

Question 8

+2 marksOne correct option

In the context of asynchronous updates, which of the following statements is correct?

  1. A

    It updates a web page without reloading the whole page

  2. B

    It leads to better user experience as it involves quick response on the main page with minimal data to refresh

  3. C

    Both It updates a web page without reloading the whole page and It leads to better user experience as it involves quick response on the main page with minimal data to refresh are correct

  4. D

    None of these

Show answer

Correct answer

  • C

    Both It updates a web page without reloading the whole page and It leads to better user experience as it involves quick response on the main page with minimal data to refresh are correct

Question 9

+4 marksOne correct option

Consider the following Flask RESTful API code.

What will be the response?

  1. A

    {"n": 3}

  2. B

    Runtime error

  3. C

    400 Bad Request

  4. D

    { }

Show answer

Correct answer

  • A

    {"n": 3}

Question 10

+2 marksNumerical answer

A magnetic disk can spin only in one direction with a constant speed of 6000rpm. What is the maximum delay (worst-case latency) before data transfer starts (in milliseconds)?

Show answer

Correct answer: 10

Question 11

+4 marksOne or more correct options

Consider the following Flask app code.

The above flask app is running on "http://127.0.0.1:5000". Which of the following commands will return a runtime error?

Select all that apply.

  1. A
  2. B
  3. C
  4. D
Show answer

Correct answers

  • A
  • C

Question 12

+2 marksOne or more correct options

Which of the following statements is/are true about Document Object Model (DOM)?

Select all that apply.

  1. A

    It is the programming interface for web documents.

  2. B

    It is the abstract model of the document.

  3. C

    Its structure is rigid and cannot be changed once created.

  4. D

    It can only be manipulated with the help of JavaScript.

Show answer

Correct answers

  • A

    It is the programming interface for web documents.

  • B

    It is the abstract model of the document.

Question 13

+3 marksNumerical answer

An e-commerce web application stores user shopping cart information as server-side session state. Each active user session occupies an average of 4 KB of memory. During a flash sale, the application is expected to handle 1.5 million concurrent active sessions, all stored in a centralized Redis cache server. What is the minimum RAM capacity (in GB) required solely to store these session states? (Assume that 1000B=1KB, 1000KB=1MB and so on)

Show answer

Correct answer: 6