Quiz Space

Modern Application Development I · End Term · 31 Aug 2025 · May 2025 term · Set QDB3

Question 12: You created the following templates: base.html home.html…

Question 12

+3 marksOne correct option

You created the following templates:

base.html

html
<html>
<body>
{% block content %}{% endblock %}
</body>
</html>

home.html

html
{% extends "base.html" %}
<h1>Welcome!</h1>

But when rendered, "Welcome!" doesn't appear. Why?

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

Correct answer

  • D

Question 12 of 32 in the IIT Madras BS Modern Application Development I (MAD 1) End Term paper sat on 31 Aug 2025, in the May 2025 term (IIT M DIPLOMA FN EXAM QDD1 31 Aug 2025). It carries 3 marks.

More questions from this paper

  1. Q1Figure question
  2. Q2What does SQLAlchemy's lazy='dynamic' do?
  3. Q3Why is using the GET method for sensitive data discouraged?
  4. Q4You define two routes in your Flask app as: A user visits /about (without the trailing slash). What will Flask do?
  5. Q5A login form doesn't show any message when users enter wrong credentials. Which Nielsen heuristic is violated?
  6. Q6Which of the following are handled by the browser and not the Flask server?
  7. Q7Consider the following git branches for a remote repository. Choose the correct git command sequence to merge feature1 …
  8. Q8Figure question
  9. Q9What will be displayed when running python app.py 8080 for the following script? app.py
  10. Q10Consider the following Flask code. What will be the output when you run the following code in the terminal python app.p…
  11. Q11Consider the following Python code File name: main_test.py What will be the output of running the above python script u…
  12. Q13A user downloads a 10 MB file from a server with 5 Mbps speed. How long does it approximately take?
  13. Q14Suppose you have these models in your Flask-SQLAlchemy app: If you delete an Author instance from the database, what ha…
  14. Q15Consider the following HTML code snippet (without any CSS styling). Which of the following statements correctly describ…
  15. Q16Consider the following Python code. File name: main.py What will be the output, when running the above code using the c…
  16. Q17Figure question
  17. Q18You are working on a team project hosted on GitHub. After making changes to your local files, you run the following com…
  18. Q19Consider the following Flask application structure and code. app.py: Which of the following statements about the templa…
  19. Q20Examine the following Python code snippet. File: logger_test.py What will be the output when running the command: pytho…
  20. Q21Consider the following Python code snippet: python: app.py What will be printed on the terminal for the command: python…
  21. Q22Consider the following Flask app code. The above flask app is running on “http://127.0.0.1:5000”. Which of the followin…
  22. Q23Figure question
  23. Q24Examine the following Python test file: Filename: math_tests.py Consider the following pytest command output: Which of …
  24. Q25Figure question
  25. Q26Consider the following Flask application. Based on the above data, answer the given subquestions.
  26. Q27Consider the following Flask application. Based on the above data, answer the given subquestions. Analyze the following…
  27. Q28Consider the following Flask-RESTful resource class for a student management system: Based on the above data, answer th…
  28. Q29Consider the following Flask-RESTful resource class for a student management system: Based on the above data, answer th…
  29. Q30Consider the following flask code and answer the given subquestions.
  30. Q31Consider the following flask code and answer the given subquestions.
  31. Q32Consider the following flask code and answer the given subquestions.