What is the purpose of the 'Cookie' header in an HTTP request? MCQ with Answer and Explanation

What is the purpose of the 'Cookie' header in an HTTP request?
A. To send stored cookies from the client to the server
B. To check cookie existence
C. To delete cookies
D. To set new cookies on the client
Answer: Option A
Solution (By JKSSB Mock Tests)
The Cookie header is used by the client to send previously stored cookies to the server, enabling session management.

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 browser extensions or configuration flags blocks specific outbound tracker requests to preserve network bandwidth and user privacy?
A. FTP client bridge
B. Proxy server route
C. Ad blocker
D. Antivirus module

Correct Answer: Option C


Explanation:
Ad blockers and tracker shields actively block requests to third-party ad networks and analytical tracker domains, optimizing load speeds and confidentiality.

This question belongs to: Computer Internet and Web Technologies
Question #2
What does the 'HttpOnly' attribute flag instruct a web browser to do when handling a specific session cookie?
A. To force the web page content layout into a text-only presentation mode
B. To prevent client-side scripts (like JavaScript) from accessing the cookie, reducing the risk of data theft via Cross-Site Scripting (XSS)
C. To ensure the cookie only operates when accessing local intranet platforms
D. To delete the cookie instantly when the network switches to an alternative port path

Correct Answer: Option B


Explanation:
The 'HttpOnly' security flag prevents client-side scripts from reading cookie strings via properties like 'document.cookie', protecting session tokens from malicious script injection exploits.

This question belongs to: Computer Internet and Web Technologies
Question #3
What is the primary operational task of a 'Mail Transfer Agent' (MTA) component within internet email routing infrastructures?
A. To clear old tracking cookies off terminal units
B. To forward and route electronic mail messages between different server networks using SMTP rules until they reach their destination
C. To convert plain text lines into graphic layouts natively
D. To provide a user interface to display images inside messages

Correct Answer: Option B


Explanation:
The Mail Transfer Agent (MTA) is software that transfers electronic mail messages from one computer server to another using SMTP.

This question belongs to: Computer Internet and Web Technologies