Question 1
Which of the following is the correct match between Column A and Column B?
1-B, 2-D, 3-E, 4-A, 5-C
1-B, 2-A, 3-E, 4-D, 5-C
1-A, 2-D, 3-E, 4-B, 5-C
1-B, 2-D, 3-C, 4-A, 5-E

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.
Which of the following is the correct match between Column A and Column B?
1-B, 2-D, 3-E, 4-A, 5-C
1-B, 2-A, 3-E, 4-D, 5-C
1-A, 2-D, 3-E, 4-B, 5-C
1-B, 2-D, 3-C, 4-A, 5-E
Correct answer
1-B, 2-D, 3-E, 4-A, 5-C
Logging is typically used for what purpose?
detect unusual activity on the server.
block unauthorized access.
enforce HTTPS connections.
convert HTTP to HTTPS.
Correct answer
detect unusual activity on the server.
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)
2.5
25
250
2500
Correct answer
2500
What is the purpose of the primary_key=True attribute in a SQLAlchemy model?
It allows duplicate values in the column
It uniquely identifies each row in the table
It automatically creates foreign key relationships
It makes the column optional
Correct answer
It uniquely identifies each row in the table
Which of the following statements are correct regarding git?
Files in the staging area can be committed.
Git can be used only online.
Git branches are pointers to commits.
Correct answers
Files in the staging area can be committed.
Git branches are pointers to commits.
Consider the following Python Flask code.
Which of the following options are true?
URL request: http://127.0.0.1:5000/signin will return output: http://127.0.0.1:5000/login
URL request: http://127.0.0.1:5000/login will return output: http://127.0.0.1:5000/login
URL request: http://127.0.0.1:5000/index will return output: http://127.0.0.1:5000/home
URL request: http://127.0.0.1:5000/home will return output: http://127.0.0.1:5000/home
Correct answers
URL request: http://127.0.0.1:5000/signin will return output: http://127.0.0.1:5000/login
URL request: http://127.0.0.1:5000/index will return output: http://127.0.0.1:5000/home
Consider the following Python Flask code.
Correct answers
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.
Both statements are incorrect.
Both statements are correct.
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 Flask SQLAlchemy data model.
1
2
3
4
Correct answer
2
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?
linear
quadratic
cubic
exponential
Correct answer
quadratic
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?
547.2 GB
12 GB
43.2 GB
345.6 GB
Correct answer
43.2 GB
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 answer
python main.py MAD1 MAD2 "MAD1 Project" "MAD2 Project"
Which of the following is the correct flask_login code snippet to register a user as logged in for the current session?
login_user(user.id)
login_user(user)
login_user(user.name)
login_user(user.name and user.password)
Correct answer
login_user(user)
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?
The content of all elements will appear on the same line as they are inline elements.
Correct answer
What does the following curl command do?
Sends a POST request to retrieve authentication data.
Sends a POST request to send form data.
Sends a POST request to send JSON data.
Sends a POST request to retrieve user credentials.
Correct answer
Sends a POST request to send form data.
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.
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 incorrect.
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?
404 Not Found
[-1, -2, -3, -4, -5]
[ ]
None of these
Correct answer
[ ]
Which of the following statements are true in the context of HTML forms?
“read-only” inputs are not submitted.
“disabled” inputs are not submitted.
Correct answers
“disabled” inputs are not submitted.
Which of the following statements are true about DOM?
Changing the DOM value changes the HTML source file.
JS can interact with DOM elements.
DOM is created before the JS is executed.
DOM is created after the JS is executed.
HTML and DOM are identical.
Correct answers
JS can interact with DOM elements.
DOM is created before the JS is executed.
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?
{"n": None}
Runtime error
400 Bad Request
{ }
Correct answer
400 Bad Request
====== 1 passed, 1 deselected in 0.02s =========
====== 1 passed, 2 deselected in 0.02s =========
====== 1 failed, 1 deselected in 0.02s =========
====== 1 failed, 2 deselected in 0.02s =========
Correct answer
====== 1 passed, 1 deselected in 0.02s =========
Consider the following HTML templates and Python Flask code.
Parent content Child content
Parent content
Child content
Child content Parent content
Correct answer
Child content
Consider the following flask application "app.py" given below.
Static folder verified: /assets
Static folder verified: /public
Invalid argument
None of these
Correct answer
Invalid argument
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)?
Correct answer: 12
Correct answers