uiz Space

September 2025 term · Modern Application Development I · BSCS2003

Modern Application Development I End Term: 21 December 2025 (September 2025 term)

The IIT Madras BS Modern Application Development I (MAD 1) End Term paper sat on 21 Dec 2025, in the September 2025 term: 21 questions for 65 marks in 180 minutes. Every question is below with its answer. Take it as a timed mock test to be marked, or read it through first.

Questions
21
Marks
65
Duration
180 min
MSQ
7
MCQ
14

Updated

Official paper: Modern Application Development I 18 Dec 25 · No negative marking.

Question 1

+5 marksOne or more correct options

Based on the above data, answer the given subquestions.

Which of the following statements is/are correct ?

Select all that apply.

  1. A

    For the command: python file.py find 103 , the terminal output is:

    (A figure from the original paper is missing from the source site.)

  2. B

    For the command: python file.py find 103 , the terminal output is:

    (A figure from the original paper is missing from the source site.)

  3. C

    For the command: python file.py find 104 sid , the terminal output is:

    (A figure from the original paper is missing from the source site.)

  4. D

    For the command: python file.py find 102 , the terminal output is:

    (A figure from the original paper is missing from the source site.)

  5. E

    For the command: python file.py find 104 sid , the terminal output is:

    (A figure from the original paper is missing from the source site.)

Show answer

Correct answers

  • B

    For the command: python file.py find 103 , the terminal output is:

    (A figure from the original paper is missing from the source site.)

  • E

    For the command: python file.py find 104 sid , the terminal output is:

    (A figure from the original paper is missing from the source site.)

Question 2

+3 marksOne or more correct options

Based on the above data, answer the given subquestions.

Which of the following commands will give the terminal output as:

Select all that apply.

  1. A

    python file.py find 104 sid

  2. B

    python file.py 102 find sid

  3. C

    python file.py find 105 sid

  4. D

    python file.py find

Show answer

Correct answers

  • B

    python file.py 102 find sid

  • D

    python file.py find

Question 3

+4 marksOne correct option

Consider the following flask application and html template. Assume that the Flask app is running at http://127.0.0.1:5000.

Based on the above data, answer the given subquestions.

What will be the final styling applied to the element inside the div for the URL: http://127.0.0.1:5000/?color=green\&size=30\&msg=welcome+user

  1. A

    background-color: blue, font-size: 20px, padding: 10px, color: white

  2. B

    background-color: green, font-size: 30px, padding: 20px, color: white

  3. C

    background-color: blue, font-size: 20px, padding: 30px, color: green

  4. D

    background-color: green, font-size: 30px, padding: 10px, color: white

Show answer

Correct answer

  • D

    background-color: green, font-size: 30px, padding: 10px, color: white

Question 4

+3 marksOne or more correct options

Which of the following statements correctly differentiates between synchronous and asynchronous updates in frontend development?

Select all that apply.

  1. A

    In synchronous updates, the UI waits for the operation to complete, while in asynchronous updates, the UI remains responsive.

  2. B

    Synchronous execution is blocking, whereas asynchronous execution is non- blocking.

  3. C

    Asynchronous updates are preferred for network requests and background tasks, while synchronous is best for quick operations.

  4. D

    Both synchronous and asynchronous updates allow the browser to continue execution without waiting.

Show answer

Correct answers

  • A

    In synchronous updates, the UI waits for the operation to complete, while in asynchronous updates, the UI remains responsive.

  • B

    Synchronous execution is blocking, whereas asynchronous execution is non- blocking.

  • C

    Asynchronous updates are preferred for network requests and background tasks, while synchronous is best for quick operations.

Question 5

+3 marksOne correct option
  1. A

    1 → C, 2 → D, 3 → B, 4 → A

  2. B

    1 → B, 2 → A, 3 → D, 4 → C

  3. C

    1 → A, 2 → B, 3 → E, 4 → C

  4. D

    1 → C, 2 → D, 3 → B, 4 → E

Show answer

Correct answer

  • D

    1 → C, 2 → D, 3 → B, 4 → E

Question 6

+3 marksOne or more correct options

Select all that apply.

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

    None of these.

Show answer

Correct answers

  • A
  • B
  • C

Question 7

+2 marksOne correct option

Which of the following is the correct way to add a click event listener to a button with id="myBtn" in JavaScript?

  1. A

    (A figure from the original paper is missing from the source site.)

  2. B

    (A figure from the original paper is missing from the source site.)

  3. C

    (A figure from the original paper is missing from the source site.)

  4. D

    All of these

Show answer

Correct answer

  • D

    All of these

Question 8

+3 marksOne correct option
  1. A

    (A figure from the original paper is missing from the source site.)

  2. B

    (A figure from the original paper is missing from the source site.)

  3. C

    (A figure from the original paper is missing from the source site.)

  4. D

    Error: Missing argument

Show answer

Correct answer

  • A

    (A figure from the original paper is missing from the source site.)

Question 9

+3 marksOne correct option
  1. A

    (A figure from the original paper is missing from the source site.)

  2. B

    (A figure from the original paper is missing from the source site.)

  3. C

    (A figure from the original paper is missing from the source site.)

  4. D

    Both and

    (A figure from the original paper is missing from the source site.)

Show answer

Correct answer

  • D

    Both and

    (A figure from the original paper is missing from the source site.)

Question 10

+2 marksOne correct option

Consider the data table below in SQLite database.

  1. A

    SELECT * FROM products ORDER BY price ASC;

  2. B

    SELECT * FROM products ORDER BY price DESC;

  3. C

    SELECT price FROM products;

  4. D

    SELECT MAX(price) FROM products;

Show answer

Correct answer

  • B

    SELECT * FROM products ORDER BY price DESC;

Question 11

+3 marksOne or more correct options

Which of the following commands is/are valid to run pytest from the command line?

Select all that apply.

  1. A

    pytest

  2. B

    pytest test_file.py

  3. C

    pytest -run

  4. D

    pytest -k “login”

Show answer

Correct answers

  • A

    pytest

  • B

    pytest test_file.py

  • D

    pytest -k “login”

Question 12

+2 marksOne correct option

Consider the following Python code.

Which of the following assertion test case throws the exception?

  1. A

    assert max_value([3, 7, 2]) == 7

  2. B

    assert max_value([]) is None

  3. C

    assert max_value("abczfk") == "z"

  4. D

    assert max_value(1) == 1

Show answer

Correct answer

  • D

    assert max_value(1) == 1

Question 13

+2 marksOne correct option

What does the following curl command do?

  1. A

    Sends a POST request to retrieve data.

  2. B

    Sends a POST request to send form data.

  3. C

    Sends a POST request to send JSON data.

  4. D

    Sends a POST request to retrieve JSON data.

Show answer

Correct answer

  • B

    Sends a POST request to send form data.

Question 14

+2 marksOne correct option
  1. A

    required, minlength, and type="email"

  2. B

    min, max, and minlength

  3. C

    required, type="password", and action

  4. D

    type="email", min, max, minlength, and required

Show answer

Correct answer

  • D

    type="email", min, max, minlength, and required

Question 15

+5 marksOne or more correct options

Select all that apply.

  1. A

    GET /users - returns 200 with all users

  2. B

    GET /users/5 - returns 200 with user details for ID 5

  3. C

    POST /users - returns 201 with user created message

  4. D

    POST /users/5 - returns 201 with user created message

Show answer

Correct answers

  • A

    GET /users - returns 200 with all users

  • B

    GET /users/5 - returns 200 with user details for ID 5

  • C

    POST /users - returns 201 with user created message

Question 16

+3 marksOne or more correct options

Which statements about frontend and backend validation are TRUE?

Select all that apply.

  1. A

    Frontend validation (HTML5/JavaScript) is sufficient for security

  2. B

    Frontend validation improves user experience by providing immediate feedback

  3. C

    Backend validation is mandatory for security because frontend can be bypassed

  4. D

    Backend validation should validate the same constraints as frontend

Show answer

Correct answers

  • B

    Frontend validation improves user experience by providing immediate feedback

  • C

    Backend validation is mandatory for security because frontend can be bypassed

  • D

    Backend validation should validate the same constraints as frontend

Question 17

+3 marksOne correct option
  1. A

    All three messages will be displayed

  2. B

    Only the info and warning messages will be displayed

  3. C

    Only the warning message will be displayed

  4. D

    Only the info and debug messages will be displayed

Show answer

Correct answer

  • B

    Only the info and warning messages will be displayed

Question 18

+4 marksOne correct option
  1. A

    Once for all tests

  2. B

    Twice, once for each test

  3. C

    Once during collection phase only

  4. D

    It depends on the pytest configuration

Show answer

Correct answer

  • B

    Twice, once for each test

Question 19

+5 marksOne correct option
  1. A

    test_database and test_complex

  2. B

    Only test_calculation

  3. C

    test_calculation and test_complex

  4. D

    All three tests

Show answer

Correct answer

  • B

    Only test_calculation

Question 20

+2 marksOne correct option

You are on the main branch and want to merge feature1 and feature2 branches. What is the correct command sequence?

  1. A
  2. B

    (A figure from the original paper is missing from the source site.)

  3. C

    (A figure from the original paper is missing from the source site.)

  4. D

    (A figure from the original paper is missing from the source site.)

Show answer

Correct answer

  • A

Question 21

+3 marksOne correct option
  1. A

    Returns a 404 error

  2. B

    Displays "Welcome None"

  3. C

    Redirects to the login page

  4. D

    Returns an error page with HTTP 403

Show answer

Correct answer

  • C

    Redirects to the login page