Which HTTP header is used to indicate the type of content being sent in the response body? MCQ with Answer and Explanation

Which HTTP header is used to indicate the type of content being sent in the response body?
A. Host
B. Content-Length
C. Content-Type
D. User-Agent
Answer: Option C
Solution (By JKSSB Mock Tests)
The Content-Type header indicates the media type (MIME type) of the resource, 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 parameter indicates a 'Web Cache Poisoning' exploit intent?
A. An attacker updates a computer's local graphics driver without authorization.
B. An attacker cuts a physical underwater fiber optic internet line.
C. An attacker sends thousands of unwanted physical junk mail deliveries to an office building.
D. An attacker manipulates a web server's proxy cache hub into storing and serving a flawed or malicious version of a webpage to subsequent innocent users.

Correct Answer: Option D


Explanation:
Web cache poisoning involves forcing cache servers to store invalid or malicious HTTP responses, which are then distributed to unsuspecting users requesting the same page.

This question belongs to: Computer Internet and Web Technologies
Question #2
What is the function of the 'Default Gateway' setting in a computer's local network configuration panel?
A. To serve as a high-speed email storage facility
B. To act as the routing address that local data packets use to exit the local area network and access external networks like the internet
C. To convert graphical web pages into text files
D. To clear out temporary cookie tracker entries automatically

Correct Answer: Option B


Explanation:
The default gateway is the node or router on a computer network that serves as an access point to another network when an IP address does not match any local routes.

This question belongs to: Computer Internet and Web Technologies
Question #3
Which of the following is a common technique to reduce the size of web resources for faster loading?
A. Minification
B. Compression (Gzip)
C. All of the above
D. Image optimization

Correct Answer: Option C


Explanation:
Minification, compression, and image optimization are all effective methods to reduce resource size and improve load times.

This question belongs to: Computer Internet and Web Technologies