uiz Space

May 2026 term · Modern Application Development I · BSCS2003

Modern Application Development I Quiz 1: 19 July 2026, Set 1 (May 2026 term)

The IIT Madras BS Modern Application Development I (MAD 1) Quiz 1 paper sat on 19 Jul 2026, in the May 2026 term, set 1: 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
MSQ
2
Numerical
2

Updated

Official paper: Modern Application Development I 16 Jul 26 · No negative marking.

Question 1

+2 marksOne correct option

Which of the following pairs correctly identifies one block-level element and one inline element?

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

Correct answer

  • B

Question 2

+2 marksOne correct option

Consider the following HTML and Python flask code.

Assume that the Flask app is running at http://127.0.0.1:5000.\ Based on the above data, answer the given subquestions.

Which of the following statements are correct? Statement 1: Accessing the URL: http://127.0.0.1:5000 directly in the browser makes a GET request. Statement 2: Clicking on the Submit button will invoke the POST 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

  • A

    Both statements are correct

Question 3

+4 marksOne correct option

Consider the following HTML and Python flask code.

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 rendered output for the following input in the form?

  1. A

    404 Not Found

  2. B

    [0, 1, 2, 3, 4]

  3. C

    [ ]

  4. D

    [1, 2, 3, 4, 5]

Show answer

Correct answer

  • B

    [0, 1, 2, 3, 4]

Question 4

+3 marksOne correct option

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

  1. A

    3

  2. B

    30

  3. C

    3000

  4. D

    300

Show answer

Correct answer

  • C

    3000

Question 5

+3 marksOne correct option

Consider the following Flask code.
File name: app.py

  1. A

    Result: 42

  2. B

    Result: 13

  3. C

    Result: 7

  4. D

    Result: 12

Show answer

Correct answer

  • A

    Result: 42

Question 6

+3 marksOne correct option

Consider the following Python flask code.

  1. A

    55

  2. B

    52

  3. C

    10

  4. D

    TypeError

Show answer

Correct answer

  • D

    TypeError

Question 7

+3 marksOne correct option

Consider the following Python code.

  1. A

    Student Name: Siya Sunita

  2. B

    Student Name: Siya Student Name: Sunita

  3. C

    Student Name: Sunita

  4. D

    Key Error

Show answer

Correct answer

  • B

    Student Name: Siya Student Name: Sunita

Question 8

+3 marksOne correct option

Consider the following Python flask code.

  1. A

    Admin Panel

  2. B

    User: admin

  3. C

    404 Error

  4. D

    Internal Server Error

Show answer

Correct answer

  • A

    Admin Panel

Question 9

+3 marksOne or more correct options

Consider the following Python Flask code.

Select all that apply.

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

Correct answers

  • B
  • D

Question 10

+3 marksOne or more correct options

Consider the following Python Jinja2 template code.

Select all that apply.

  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 answers

  • B

    python main.py MAD1 MAD2 MAD1_Project MAD2_Project

  • D

    python main.py MAD1 MAD2 "MAD1_Project" "MAD2_Project"

Question 11

+3 marksNumerical answer

Suppose a client machine C is communicating with a data center D located 12,500 km away from C. Assume that the TCP connection has been established and is kept alive. Calculate the RTT (Round trip time) in ms for an HTTP request. (Assume speed of light in cable is 2e8 m/s).

Show answer

Correct answer: 125

Question 12

+2 marksNumerical answer

Suppose you have a document which contains only lower case alphabets. How many bits are required to encode a character such that the size of the document is minimum? ( The document contains all lower case alphabets. Code for each alphabet should be of the same length )

Show answer

Correct answer: 5

Question 13

+5 marksOne correct option

Consider the following Python code.

Which of the following students is classified as "Pass" by the template?

  1. A

    Alice

  2. B

    Bob

  3. C

    Kittu

  4. D

    Carol

Show answer

Correct answer

  • C

    Kittu