What does the 'HttpOnly' attribute flag instruct a web browser to do when handling a specific session cookie? MCQ with Answer and Explanation

What does the 'HttpOnly' attribute flag instruct a web browser to do when handling a specific session cookie?
A. To delete the cookie instantly when the network switches to an alternative port path
B. To force the web page content layout into a text-only presentation mode
C. To ensure the cookie only operates when accessing local intranet platforms
D. To prevent client-side scripts (like JavaScript) from accessing the cookie, reducing the risk of data theft via Cross-Site Scripting (XSS)
Answer: Option D
Solution (By JKSSB Mock Tests)
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.

Discuss this Question (0)

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

Practice More Internet and Web Technologies Questions

Question #1
What does the term 'Hyperlink' mean in a WWW ecosystem context?
A. A specialized password hashing rule set
B. The mechanical database query engine tracking domain registrations
C. An active navigational element that allows a user to jump instantly from one web resource location to another
D. A line of code that compresses heavy video files for transport

Correct Answer: Option C


Explanation:
Hyperlinks are interactive reference elements in a webpage that users can click to navigate directly to other web pages or assets.

This question belongs to: Computer Internet and Web Technologies
Question #2
Which of the following is a protocol for synchronizing email across multiple devices?
A. POP3
B. SMTP
C. MIME
D. IMAP

Correct Answer: Option D


Explanation:
IMAP synchronizes email folders and messages across devices, ensuring that actions on one device reflect on others, unlike POP3 which is typically download-and-delete.

This question belongs to: Computer Internet and Web Technologies
Question #3
Which specific protocol handles structural routing logic to map group communication pathways and manage multicast group memberships across IP networks?
A. SMTP protocol paths
B. POP3 server layouts
C. IGMP (Internet Group Management Protocol)
D. HTTP stateless rulesets

Correct Answer: Option C


Explanation:
IGMP (Internet Group Management Protocol) allows hosts and adjacent routers to manage multicast group memberships, optimizing multi-point streaming deliveries.

This question belongs to: Computer Internet and Web Technologies