Quiz Space

Modern Application Development I · Quiz 1 · 19 Jul 2026 · May 2026 term · Set 1-2

Question 2: Consider the following HTML and Python flask code. Assume…

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 2 of 13 in the IIT Madras BS Modern Application Development I (MAD 1) Quiz 1 paper sat on 19 Jul 2026, in the May 2026 term (Modern Application Development I 16 Jul 26). It carries 2 marks.

More questions from this paper

  1. Q1Which of the following pairs correctly identifies one block-level element and one inline element?
  2. Q3Consider the following HTML and Python flask code. Assume that the Flask app is running at http://127.0.0.1:5000. Based…
  3. Q4A web server has an outgoing bandwidth of 6 Gbps, and each client requires 2 Mbps. What is the maximum number of concur…
  4. Q5Consider the following Flask code.\ File name: app.py
  5. Q6Consider the following Python flask code.
  6. Q7Consider the following Python code.
  7. Q8Consider the following Python flask code.
  8. Q9Consider the following Python Flask code.
  9. Q10Consider the following Python Jinja2 template code.
  10. Q11Suppose a client machine C is communicating with a data center D located 12,500 km away from C. Assume that the TCP con…
  11. Q12Suppose you have a document which contains only lower case alphabets. How many bits are required to encode a character …
  12. Q13Consider the following Python code. Which of the following students is classified as "Pass" by the template?