What is the purpose of the 'Content-Encoding' header in HTTP? MCQ with Answer and Explanation

What is the purpose of the 'Content-Encoding' header in HTTP?
A. To specify the character encoding
B. To set the language
C. To define the MIME type
D. To indicate the compression algorithm used on the response body
Answer: Option D
Solution (By JKExamLibrary)
Content-Encoding tells the client how the response body is encoded (e.g., gzip, deflate) so it can decompress it.

This question belongs to: Computer Internet and Web Technologies

Discuss this Question (0)

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

Practice More Internet and Web Technologies Questions

Question #1 Report Error
Which of the following is a protocol used for transferring files over the internet, often used for uploading website content?
A. DNS
B. SMTP
C. FTP
D. HTTP

Correct Answer: Option C


Explanation:
FTP (File Transfer Protocol) is used to transfer files between client and server, commonly used for uploading website files to web hosts.

This question belongs to: Computer Internet and Web Technologies
Question #2 Report Error
What is the function of the 'Referrer-Policy' HTTP header?
A. To set a custom referrer
B. To enable cross-origin requests
C. To control how much referrer information is sent with requests
D. To block referrer information

Correct Answer: Option C


Explanation:
Referrer-Policy defines the amount of referrer information (URL of previous page) that should be included in requests, for privacy and security.

This question belongs to: Computer Internet and Web Technologies
Question #3 Report Error
Which of the following web browser features allows users to open and switch between multiple web pages within a single application window?
A. Extensions Engine
B. Tabbed Browsing
C. Bookmarking
D. History Pane

Correct Answer: Option B


Explanation:
Tabbed browsing enables multiple web pages to be loaded simultaneously within distinct tabs inside the exact same window frame.

This question belongs to: Computer Internet and Web Technologies