uiz Space

January 2026 term · Modern Application Development I · BSCS2003

Modern Application Development I End Term: 10 May 2026 (January 2026 term)

The IIT Madras BS Modern Application Development I (MAD 1) End Term paper sat on 10 May 2026, in the January 2026 term: 25 questions for 74 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
25
Marks
74
Duration
180 min
MCQ
18
MSQ
6
Numerical
1

Updated

Official paper: Modern Application Development I 06 May 26 · No negative marking.

Question 1

+2 marksOne correct option

Which of the following is the correct match between Column A and Column B?

  1. A

    1-B, 2-D, 3-E, 4-A, 5-C

  2. B

    1-B, 2-A, 3-E, 4-D, 5-C

  3. C

    1-A, 2-D, 3-E, 4-B, 5-C

  4. D

    1-B, 2-D, 3-C, 4-A, 5-E

Show answer

Correct answer

  • A

    1-B, 2-D, 3-E, 4-A, 5-C

Question 2

+2 marksOne correct option

Logging is typically used for what purpose?

  1. A

    detect unusual activity on the server.

  2. B

    block unauthorized access.

  3. C

    enforce HTTPS connections.

  4. D

    convert HTTP to HTTPS.

Show answer

Correct answer

  • A

    detect unusual activity on the server.

Question 3

+2 marksOne correct option

A web server has an outgoing bandwidth of 5Gbps, and each client requires 2Mbps. What is the maximum number of concurrent requests allowed? (Use: 1KB= 1000Bytes, 1MB=1000KB and so on)

  1. A

    2.5

  2. B

    25

  3. C

    250

  4. D

    2500

Show answer

Correct answer

  • D

    2500

Question 4

+2 marksOne correct option

What is the purpose of the primary_key=True attribute in a SQLAlchemy model?

  1. A

    It allows duplicate values in the column

  2. B

    It uniquely identifies each row in the table

  3. C

    It automatically creates foreign key relationships

  4. D

    It makes the column optional

Show answer

Correct answer

  • B

    It uniquely identifies each row in the table

Question 5

+3 marksOne or more correct options

Which of the following statements are correct regarding git?

Select all that apply.

  1. A

    Files in the staging area can be committed.

  2. B
  3. C
  4. D

    Git can be used only online.

  5. E

    Git branches are pointers to commits.

Show answer

Correct answers

  • A

    Files in the staging area can be committed.

  • B
  • E

    Git branches are pointers to commits.

Question 6

+3 marksOne or more correct options

Consider the following Python Flask code.

Which of the following options are true?

Select all that apply.

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

Correct answers

Question 7

+3 marksOne or more correct options

Consider the following Python Flask code.

Select all that apply.

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

Correct answers

  • A
  • C
  • E

Question 8

+3 marksOne correct option

Consider the following HTML/CSS code.

Read the following statements about “index.html” and choose the correct option.
Statement 1: Internal element selector blue will be overridden by ID selector red. Statement 2: Internal ID selector red will be overridden by inline styling green.

  1. A

    Both statements are incorrect.

  2. B

    Both statements are correct.

  3. C

    Statement 1 is incorrect, but statement 2 is correct.

  4. D

    Statement 2 is incorrect, but statement 1 is correct.

Show answer

Correct answer

  • B

    Both statements are correct.

Question 9

+3 marksOne correct option

Consider the Flask SQLAlchemy data model.

  1. A

    1

  2. B

    2

  3. C

    3

  4. D

    4

Show answer

Correct answer

  • B

    2

Question 10

+3 marksOne correct option

You write an algorithm to sort N numbers (stored in an array a[0] to a[N-1]) as follows: Algorithm steps: i. Search through the list of numbers to find the lowest number - say it is position "i" ii. Move a[i-1] to a[i], a[i-2] to a[i-1] etc, till a[0] to a[1] iii. Place the original a[i] in position 0 iv. Repeat the above steps but now starting from position 1 to N-1, then 2 to N-1 etc till all numbers are in the correct places. What is the running complexity of this algorithm?

  1. A

    linear

  2. B

    quadratic

  3. C

    cubic

  4. D

    exponential

Show answer

Correct answer

  • B

    quadratic

Question 11

+3 marksOne correct option

Consider the following graph that represents the variation in bandwidth of a network for an entire day (24 hours). Three users were connected to the network at three different times of the day. What is the total data consumed in GigaBytes by all the users in 24 hrs?

  1. A

    547.2 GB

  2. B

    12 GB

  3. C

    43.2 GB

  4. D

    345.6 GB

Show answer

Correct answer

  • C

    43.2 GB

Question 12

+3 marksOne correct option

Consider the following Python Jinja2 template code.

  1. A

    python main.py MAD1 MAD2 MAD1 Project MAD2 Project

  2. B

    python main.py MAD1 MAD2 MAD1_Project MAD2_Project

  3. C

    python main.py "MAD1 MAD2 MAD1 Project MAD2 Project"

  4. D

    python main.py MAD1 MAD2 "MAD1 Project" "MAD2 Project"

Show answer

Correct answer

  • D

    python main.py MAD1 MAD2 "MAD1 Project" "MAD2 Project"

Question 13

+3 marksOne correct option

Which of the following is the correct flask_login code snippet to register a user as logged in for the current session?

  1. A

    login_user(user.id)

  2. B

    login_user(user)

  3. C

    login_user(user.name)

  4. D

    login_user(user.name and user.password)

Show answer

Correct answer

  • B

    login_user(user)

Question 14

+3 marksOne correct option

Consider the following HTML code snippet (without any CSS styling).

Which of the following statements correctly describes how the elements will be displayed by default in a browser?

  1. A

    The content of all elements will appear on the same line as they are inline elements.

  2. B
  3. C
  4. D
Show answer

Correct answer

  • C

Question 15

+3 marksOne correct option

What does the following curl command do?

  1. A

    Sends a POST request to retrieve authentication 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 user credentials.

Show answer

Correct answer

  • B

    Sends a POST request to send form data.

Question 16

+3 marksOne correct option

Consider the following HTML and Python flask code.

Based on the above data, answer the given subquestions.

Which of the following statements are correct for the statements below? Statement 1: Accessing the URL: http://127.0.0.1:5000 directly in the browser makes a POST request. Statement 2: Clicking on the Submit button will invoke the GET request method.

  1. A

    Both statements are correct.

  2. B

    Both statements are incorrect.

  3. C

    Statement 1 is incorrect, but statement 2 is correct.

  4. D

    Statement 2 is incorrect, but statement 1 is correct.

Show answer

Correct answer

  • B

    Both statements are incorrect.

Question 17

+3 marksOne correct option

Consider the following HTML and Python flask code.

Based on the above data, answer the given subquestions.

What will be the rendered output for the following input in the form?

  1. A

    404 Not Found

  2. B

    [-1, -2, -3, -4, -5]

  3. C

    [ ]

  4. D

    None of these

Show answer

Correct answer

  • C

    [ ]

Question 18

+2 marksOne or more correct options

Which of the following statements are true in the context of HTML forms?

Select all that apply.

  1. A
  2. B

    “read-only” inputs are not submitted.

  3. C

    “disabled” inputs are not submitted.

  4. D
Show answer

Correct answers

  • A
  • C

    “disabled” inputs are not submitted.

Question 19

+2 marksOne or more correct options

Which of the following statements are true about DOM?

Select all that apply.

  1. A

    Changing the DOM value changes the HTML source file.

  2. B

    JS can interact with DOM elements.

  3. C

    DOM is created before the JS is executed.

  4. D

    DOM is created after the JS is executed.

  5. E

    HTML and DOM are identical.

Show answer

Correct answers

  • B

    JS can interact with DOM elements.

  • C

    DOM is created before the JS is executed.

Question 20

+4 marksOne correct option

Consider the following Flask RESTful API code.

Assume that the Flask app is running at http://127.0.0.1:5000. The client sends the below CURL request in the git bash terminal.

What will be the response?

  1. A

    {"n": None}

  2. B

    Runtime error

  3. C

    400 Bad Request

  4. D

    { }

Show answer

Correct answer

  • C

    400 Bad Request

Question 21

+4 marksOne correct option
  1. A

    ====== 1 passed, 1 deselected in 0.02s =========

  2. B

    ====== 1 passed, 2 deselected in 0.02s =========

  3. C

    ====== 1 failed, 1 deselected in 0.02s =========

  4. D

    ====== 1 failed, 2 deselected in 0.02s =========

Show answer

Correct answer

  • A

    ====== 1 passed, 1 deselected in 0.02s =========

Question 22

+4 marksOne correct option

Consider the following HTML templates and Python Flask code.

  1. A

    Parent content Child content

  2. B

    Parent content

  3. C

    Child content

  4. D

    Child content Parent content

Show answer

Correct answer

  • C

    Child content

Question 23

+5 marksOne correct option

Consider the following flask application "app.py" given below.

  1. A

    Static folder verified: /assets

  2. B

    Static folder verified: /public

  3. C

    Invalid argument

  4. D

    None of these

Show answer

Correct answer

  • C

    Invalid argument

Question 24

+2 marksNumerical answer

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

Show answer

Correct answer: 12

Question 25

+4 marksOne or more correct options

Select all that apply.

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

Correct answers

  • C
  • D