Quiz Space

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

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. 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.

  4. D

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

Show answer

Correct answer

  • C

    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 30 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. Q5file:index.html Select all statements that correctly describe the console output:
  5. Q6Consider the following Flask JWT code:
  6. Q7Figure question
  7. Q8Consider the following code using flask_jwt_extended: Which of the following statements are correct? (Select all that a…
  8. Q9Pratham builds a Flask route that generates a PDF report and sends it to the user via email, all inside the route handl…
  9. Q10Which of the following is/are the advantage(s) of client-side storage?
  10. Q11Which of the following are valid capabilities of Lighthouse while analyzing a website?
  11. Q12Given the following code, select all the statements that are TRUE about its execution if the code is run in a browser e…
  12. Q13A team builds an internal warehouse dashboard where multiple managers, each on a different computer, need to receive li…
  13. Q14Match the testing concept in Column I with the most appropriate description in Column II.
  14. Q15Match the performance metric in Column I with the most appropriate description in Column II.
  15. Q16What is the value of result after running the following code?
  16. Q17A developer has just created a new Vue 2 project using Vue CLI and the following package.json was generated. package.js…
  17. Q18Consider the following JavaScript code: What will be output on the browser’s console?
  18. Q19What is logged to the console after running the following code?
  19. Q20A developer runs the following code in Tab 1 of a browser, then opens the same website in a new Tab 2 (not a duplicate,…
  20. Q21Consider the following Vue 2 + Vuex application: Note: All three image above are of one html.\ Based on the above data,…
  21. Q22Consider the following Vue 2 + Vuex application: Note: All three image above are of one html.\ Based on the above data,…
  22. Q23Consider the following JavaScript code: Based on the above data, answer the given subquestions. What will be printed in…
  23. Q24Consider the following JavaScript code: Based on the above data, answer the given subquestions. Which of the following …
  24. Q25What text appears on the button when the app first renders?
  25. Q26After the button is clicked once, what is the value of log in the parent?
  26. Q27Read the following Vuex setup carefully and answer the given subquestions: store.js component
  27. Q28Read the following Vuex setup carefully and answer the given subquestions: store.js component
  28. Q29Select all statements that are TRUE about the output:
  29. Q30Select all statements that are TRUE about the output :