uiz Space

January 2026 term · Modern Application Development I · BSCS2003

Modern Application Development I Quiz 1: 15 March 2026 (January 2026 term)

The IIT Madras BS Modern Application Development I (MAD 1) Quiz 1 paper sat on 15 Mar 2026, in the January 2026 term: 15 questions for 45 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
15
Marks
45
Duration
120 min
MCQ
9
MSQ
6

Updated

Official paper: Modern Application Development I 15 Mar 26 · No negative marking.

Question 1

+4 marksOne correct option

A client sitting in a train is connected to a server through a network tower that has a range of 4.5 kilometers and a constant bandwidth of 5 Mbps. The train is at a negligible distance from the tower and is moving away from it at a speed of 180 kmph. How much data (in Megabytes) will be used by the client before the train completely moves out of the coverage area, assuming that the client is consuming the entire bandwidth?

  1. A

    45 MB

  2. B

    450 MB

  3. C

    5.6 MB

  4. D

    56.25 MB

Show answer

Correct answer

  • D

    56.25 MB

Question 2

+4 marksOne correct option

Consider the HTML code below.

Which of the following will be the rendered output?

  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
Show answer

Correct answer

  • C

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

Question 3

+5 marksOne correct option

Consider the following flask app.

Select the option which correctly matches the URL in column A with the rendered output in column B, if the application is running locally on http://127.0.0.1:5000.

  1. A

    1-b, 2-b, 3-a, 4-a

  2. B

    1-b, 2-b, 3-d, 4-a

  3. C

    1-c, 2-c, 3-d, 4-a

  4. D

    1-c, 2-b, 3-d, 4-a

Show answer

Correct answer

  • C

    1-c, 2-c, 3-d, 4-a

Show answer

Correct answer

  • D

    None of these

Question 5

+3 marksOne correct option

Consider the following Jinja2 template code:

What will be the output when the code is executed?

  1. A

    10511817

  2. B

    125111017

  3. C

    3915

  4. D

    51117

Show answer

Correct answer

  • D

    51117

Question 6

+3 marksOne correct option

Consider the following HTML and Python flask codes.

  1. A

    Welcome Admin

  2. B

    Welcome User

  3. C

    404 Not Found

  4. D

    Nothing will be rendered

Show answer

Correct answer

  • B

    Welcome User

Question 7

+3 marksOne correct option

Consider the following Jinja2 template:

What will be the output in the terminal?

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

Correct answer

  • B

Question 8

+3 marksOne correct option
  1. A

    It will render "Post ID: abc123"

  2. B

    Flask will return a 404 error because abc123 cannot be converted to integer

  3. C

    It will render "Profile of abc123"

  4. D

    The application will crash with a TypeError

Show answer

Correct answer

  • B

    Flask will return a 404 error because abc123 cannot be converted to integer

Question 9

+2 marksOne correct option

Which command would you use to get detailed information about the HTTP request and response, including headers, and to help debug the HTTP request when using curl?

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

Correct answer

  • B

Question 10

+2 marksOne or more correct options

Which of the following statements about HTML, CSS, and character encoding is/are true?

Select all that apply.

  1. A

    UTF-8 is a variable-length encoding that can represent all Unicode characters.

  2. B

    In HTML, attribute names are case-insensitive.

  3. C

    Inline CSS is preferred over external CSS for large-scale projects.

  4. D

    UTF-32 is a fixed-length encoding where each character takes 4 bytes.

Show answer

Correct answers

  • A

    UTF-8 is a variable-length encoding that can represent all Unicode characters.

  • B

    In HTML, attribute names are case-insensitive.

  • D

    UTF-32 is a fixed-length encoding where each character takes 4 bytes.

Question 11

+2 marksOne or more correct options

Which of the following is/are True about Web Applications?

Select all that apply.

  1. A

    All web applications run entirely in the client's browser without requiring a server.

  2. B

    Web applications can interact with backend services using APIs.

  3. C

    A web application typically consists of frontend, backend and database components.

  4. D

    Web applications cannot be accessed unless they are installed on the user’s computer.

Show answer

Correct answers

  • B

    Web applications can interact with backend services using APIs.

  • C

    A web application typically consists of frontend, backend and database components.

Question 12

+2 marksOne or more correct options

Which of the following are True about sys.argv in Python?

Select all that apply.

  1. A

    sys.argv is a list containing command-line arguments.

  2. B

    sys.argv[0] stores the Python script name.

  3. C

    sys.argv elements are always interpreted as integers.

  4. D

    sys.argv elements are always interpreted as strings.

Show answer

Correct answers

  • A

    sys.argv is a list containing command-line arguments.

  • B

    sys.argv[0] stores the Python script name.

  • D

    sys.argv elements are always interpreted as strings.

Question 13

+3 marksOne or more correct options

Consider the following CSS code:

Which of the following statements are TRUE regarding the element's dimensions and spacing?

Select all that apply.

  1. A

    The total width including padding and border is 224px

  2. B

    The margin affects the content box width

  3. C

    The padding adds internal spacing inside the element

  4. D

    The border contributes to the total width in the standard box model

Show answer

Correct answers

  • A

    The total width including padding and border is 224px

  • C

    The padding adds internal spacing inside the element

  • D

    The border contributes to the total width in the standard box model

Question 14

+3 marksOne or more correct options

Which statements about CSS display properties are CORRECT?

Select all that apply.

  1. A

    display: block elements always start on a new line and take full width

  2. B

    display: inline elements can be manipulated with height and width properties

  3. C

    display: inline-block elements can be placed inline and be manipulated with height and width properties

  4. D

    display: inline elements can’t be manipulated with height and width properties

Show answer

Correct answers

  • A

    display: block elements always start on a new line and take full width

  • C

    display: inline-block elements can be placed inline and be manipulated with height and width properties

  • D

    display: inline elements can’t be manipulated with height and width properties

Question 15

+3 marksOne or more correct options

Consider the following code.

Which substitution methods will work WITHOUT raising KeyError ?

Select all that apply.

  1. A

    out = template.substitute({"name": "Alice"})

  2. B

    out = template.safe_substitute({"name": "Alice"})

  3. C

    out = template.substitute({"name": "Alice", "count": 5})

  4. D

    out = template.safe_substitute({"name": "Alice", "count": 5})

Show answer

Correct answers

  • B

    out = template.safe_substitute({"name": "Alice"})

  • C

    out = template.substitute({"name": "Alice", "count": 5})

  • D

    out = template.safe_substitute({"name": "Alice", "count": 5})