What is the purpose of the 'Accept' HTTP header? MCQ with Answer and Explanation

What is the purpose of the 'Accept' HTTP header?
A. To indicate the preferred language
B. To specify the media types the client can process
C. To list acceptable encodings
D. To specify the content type of the request body
Answer: Option B
Solution (By JKSSB Mock Tests)
The Accept header informs the server about the media types the client can understand, e.g., text/html, application/json.

Discuss this Question (0)

No comments yet. Be the first to start the discussion!

Practice More Internet and Web Technologies Questions

Question #1
Which of the following is a popular web technology for creating single-page applications?
A. React
B. AngularJS
C. All of the above
D. Vue.js

Correct Answer: Option C


Explanation:
React, AngularJS (and Angular), and Vue.js are all JavaScript frameworks/libraries commonly used for building single-page applications.

This question belongs to: Computer Internet and Web Technologies
Question #2
What is the standard network port number allocated for unencrypted HTTP traffic by default?
A. 443
B. 21
C. 80
D. 25

Correct Answer: Option C


Explanation:
Port 80 is the standard default port assigned for handling unencrypted web traffic via the Hypertext Transfer Protocol (HTTP).

This question belongs to: Computer Internet and Web Technologies
Question #3
What is a web server?
A. A search engine
B. A program that browses web pages
C. A program that stores and serves web pages
D. An email client

Correct Answer: Option C


Explanation:
A web server is software that handles HTTP requests and serves web pages to clients, e.g., Apache, Nginx.

This question belongs to: Computer Internet and Web Technologies