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

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.
Which of the following pairs correctly identifies one block-level element and one inline element?
Correct answer
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.
Both statements are correct
Both statements are incorrect.
Statement 1 is incorrect, but statement 2 is correct.
Statement 2 is incorrect, but statement 1 is correct.
Correct answer
Both statements are correct
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?
404 Not Found
[0, 1, 2, 3, 4]
[ ]
[1, 2, 3, 4, 5]
Correct answer
[0, 1, 2, 3, 4]
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.)
3
30
3000
300
Correct answer
3000
Consider the following Flask code.
File name: app.py
Result: 42
Result: 13
Result: 7
Result: 12
Correct answer
Result: 42
Consider the following Python flask code.
55
52
10
TypeError
Correct answer
TypeError
Consider the following Python code.
Student Name: Siya Sunita
Student Name: Siya Student Name: Sunita
Student Name: Sunita
Key Error
Correct answer
Student Name: Siya Student Name: Sunita
Consider the following Python flask code.
Admin Panel
User: admin
404 Error
Internal Server Error
Correct answer
Admin Panel
Consider the following Python Flask code.
Correct answers
Consider the following Python Jinja2 template code.
python main.py MAD1 MAD2 MAD1_ Project MAD2_ Project
python main.py MAD1 MAD2 MAD1_Project MAD2_Project
python main.py "MAD1 MAD2 MAD1_Project MAD2_Project"
python main.py MAD1 MAD2 "MAD1_Project" "MAD2_Project"
Correct answers
python main.py MAD1 MAD2 MAD1_Project MAD2_Project
python main.py MAD1 MAD2 "MAD1_Project" "MAD2_Project"
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).
Correct answer: 125
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 )
Correct answer: 5
Consider the following Python code.
Which of the following students is classified as "Pass" by the template?
Alice
Bob
Kittu
Carol
Correct answer
Kittu