Quiz Space

Modern Application Development II · End Term · 13 Sept 2026 · May 2026 term · Set S2

Question 3: A startup is building a food delivery app. The customer-f…

Question 3

+4.5 marksOne correct option

A startup is building a food delivery app. The customer-facing screen shows live order status updates: "Order Placed → Preparing → Out for Delivery → Delivered".
Each stage is triggered by the restaurant or the delivery rider updating the status on their end. The customer's screen should reflect these changes in real time without refreshing the page.
Two developers debate about the right technology: Developer A says: "Let's use Server-Sent Events. It's the right fit here." Developer B says: "No, we must use WebSockets. SSE won't work."
Who is correct, and why?

  1. A

    Developer B is correct. SSE cannot transmit JSON data, so structured order status objects cannot be pushed to the browser.

  2. B

    Developer B is correct. SSE connections do not reconnect automatically when the network is briefly interrupted, making it unreliable for a live tracker.

  3. C

    Developer A is correct, but only if WebSockets are set up as a mandatory fallback, since SSE requires HTTP/2 to function.

  4. D

    Developer A is correct. The tracker only requires the server to push status updates to the customer, without the customer sending data back through the same connection. SSE is purpose-built for exactly this one-way server-to-client push scenario.

Show answer

Correct answer

  • D

    Developer A is correct. The tracker only requires the server to push status updates to the customer, without the customer sending data back through the same connection. SSE is purpose-built for exactly this one-way server-to-client push scenario.

Question 3 of 31 in the IIT Madras BS Modern Application Development II (MAD 2) End Term paper sat on 13 Sept 2026, in the May 2026 term (Modern Application Development Ii 13 Sep 26 (Session 2)). It carries 4.5 marks.

This question was also asked in

More questions from this paper

  1. Q1Figure question
  2. Q2A news platform wants to send a morning digest email to all subscribers every day at 7 AM. Sweta sets up the beat sched…
  3. Q4File: app.js
  4. Q5In a Celery setup, we use two separate Redis databases: Which of the following best explains the conceptual difference …
  5. Q6A team builds an internal warehouse dashboard where multiple managers, each on a different computer, need to receive li…
  6. Q7Match the testing concept in Column I with the most appropriate description in Column II.
  7. Q8Match the performance metric in Column I with the most appropriate description in Column II.
  8. Q9A developer has just created a new Vue 2 project using Vue CLI and the following package.json was generated.\ package.j…
  9. Q10Consider the following JavaScript code: What will be output on the browser’s console?
  10. Q11What is logged to the console after running the following code?
  11. Q12What is logged to the console after running the following code?
  12. Q13Consider the following JavaScript code: What is the order of console output?
  13. Q14Match each Vue directive with its correct description:
  14. Q15Which of the following is/are the advantage(s) of client-side storage?
  15. Q16Which of the following are valid capabilities of Lighthouse while analyzing a website?
  16. Q17Given the following code, select all the statements that are TRUE about its execution if the code is run in a browser e…
  17. Q18Consider the following Flask JWT code:
  18. Q19Figure question
  19. Q20Consider the following code using flask_jwt_extended: Which of the following statements are correct? (Select all that a…
  20. Q21Consider the following javascript code: Note: Each sub question runs on its own, starting from the original 'user' obje…
  21. Q22Consider the following javascript code: Note: Each sub question runs on its own, starting from the original 'user' obje…
  22. Q23Consider the following JavaScript code: Based on the above data, answer the given subquestions. What will be the output…
  23. Q24Consider the following JavaScript code: Based on the above data, answer the given subquestions. Which of the following …
  24. Q25Read the following Vue 2 component code carefully (using the Options API via CDN) and answer the given sub questions.
  25. Q26Read the following Vue 2 component code carefully (using the Options API via CDN) and answer the given sub questions.
  26. Q27Called from a view/script: Checked immediately, right after delay() — worker hasn't processed it yet: Called separately…
  27. Q28Called from a view/script: Checked immediately, right after delay() — worker hasn't processed it yet: Called separately…
  28. Q29component's method:
  29. Q30component's method:
  30. Q31component's method: