Quiz Space

Modern Application Development II · End Term · 31 Aug 2025 · May 2025 term · Set QDD3

Question 11: What will be the order of console output when the follow…

Question 11

+3 marksOne correct option

What will be the order of console output when the following JavaScript code is executed?

javascript
async function test() {
console.log("P");
await Promise.resolve();
console.log("Q");
}
console.log("R");
test();
console.log("S");
  1. A

    R P Q S

  2. B

    P R S Q

  3. C

    R S P Q

  4. D

    R P S Q

Show answer

Correct answer

  • D

    R P S Q

Question 11 of 32 in the IIT Madras BS Modern Application Development II (MAD 2) End Term paper sat on 31 Aug 2025, in the May 2025 term (IIT M IMPROVEMENT AN EXAM QIB3 31 Aug 2025). It carries 3 marks.

This question was also asked in

More questions from this paper

  1. Q1In a message queue system, if the consumer is slower than the producer, what is likely to occur first?
  2. Q2What does "reactivity" mean in the context of frontend frameworks like Vue.js?
  3. Q3In Flask, what is the main benefit of using the @cache.cached() decorator?
  4. Q4What is the primary purpose of CORS (Cross-Origin Resource Sharing)?
  5. Q5Which of the following practices help protect against supply chain attacks?
  6. Q6Which of the following factors directly affect the speed and performance of a web page load?
  7. Q7Which of the following is/are the potential benefits of using a message broker?
  8. Q8Which statements about webhooks are correct?
  9. Q9A popular e-commerce platform needs to notify multiple third-party services (inventory management, email marketing, ana…
  10. Q10What is the main advantage of using caching in a Flask-based web application?
  11. Q12Consider the following JavaScript program: What will be the output of the above program?
  12. Q13Consider the following javascript program. What will be the output of the above program on the browser’s console?
  13. Q14Consider this HTML and Vue setup: index.html app.js What will be rendered on the browser?
  14. Q15Consider the following JavaScript code running in a browser: What will be the output in the browser console?
  15. Q16Which factors directly impact the Lighthouse "Performance" score?
  16. Q17Which statements are true about handling background tasks in Flask with Celery?
  17. Q18Which of the following are true about mutations and actions in Vuex?
  18. Q19Figure question
  19. Q20Scenario\ The component is loaded.\ User clicks "Mark Complete" for the task named Build Project.\ User clicks "Show Co…
  20. Q21Scenario\ The component is loaded.\ User clicks "Mark Complete" for the task named Build Project.\ User clicks "Show Co…
  21. Q22Scenario\ The component is loaded.\ User clicks "Mark Complete" for the task named Build Project.\ User clicks "Show Co…
  22. Q23Consider the following JavaScript code: Assuming this code runs in a browser environment, what will be the output?
  23. Q24Consider this Vue.js component code: What happens when a user types "Learn Vue" into the input field and presses Enter?…
  24. Q25Given this Vue Router setup: What component renders for URL /user/123/settings?
  25. Q26Given the Flask app: frontend code: What will happen when run from a Vue app hosted at <u>http://localhost:5173</u>?
  26. Q27What will this JavaScript code output?
  27. Q28Consider the following Vue component structure with nested components and complex slot configurations: Now consider thi…
  28. Q29Consider the following Vue Router configuration in a Vue 2 application: In a Vue component, you have these navigation m…
  29. Q30Using the same Vue Router configuration from the previous question, Select ALL correct statements about these navigatio…
  30. Q31Prashant and Nikita are creating a quiz question paper collaboratively. They are each working on different sections — a…
  31. Q32Prashant and Nikita are creating a quiz question paper collaboratively. They are each working on different sections — a…