Question 34Asked in Bihar STET 2025 Paper II Computer Science, 4 Nov 2025, Shift 2 (2:00 PM) + 1 more paper

How can you make an asynchronous request to a server in JavaScript?आप जावास्क्रिप्ट में सर्वर के लिए अतुल्यकालिक अनुरोध कैसे कर सकते हैं?

आप जावास्क्रिप्ट में सर्वर के लिए अतुल्यकालिक अनुरोध कैसे कर सकते हैं?
  1. AUsing the "async" keyword"async" कीवर्ड का उपयोग करना
  2. BUsing the "await" keyword"प्रतीक्षा" कीवर्ड का उपयोग करना
  3. CUsing the fetch API or XMLHttpRequestFetch API या XMLHttpRequest
  4. DBy defining a callback functionका उपयोग करना कॉलबैक फ़ंक्शन को परिभाषित करके
Show answerHide answer

Correct answer: (C) Using the fetch API or XMLHttpRequestFetch API या XMLHttpRequest

Explanation

The fetch API and XMLHttpRequest actually send HTTP requests to a server without blocking the page. async/await and callbacks only help you handle the result.fetch API और XMLHttpRequest वास्तव में पेज को रोके बिना सर्वर को HTTP अनुरोध भेजते हैं। async/await और callback केवल परिणाम संभालने में मदद करते हैं।

From Bihar STET 2025 Paper II Computer Science PYQ, 4 Nov 2025, Shift 2 (2:00 PM)

This is question 34 of Bihar STET 2025 Paper II Computer Science PYQ, 4 Nov 2025, Shift 2 (2:00 PM). See all questions of this paper with answers, or attempt the paper as a timed online test to get your score and all-India rank.

Asked in 2 papers