What does the 'Secure' attribute flag do when appended to an HTTP cookie string specification? MCQ with Answer and Explanation

What does the 'Secure' attribute flag do when appended to an HTTP cookie string specification?
A. It blocks automated search engine crawlers from reading the page structure.
B. It automatically formats the page text layout styles into complex encryption files.
C. It prevents the cookie from being deleted when the user closes the active window tab.
D. It instructs the browser that the cookie should only be sent over encrypted HTTPS connections, protecting it from network interception.
Answer: Option D
Solution (By JKSSB Mock Tests)
The 'Secure' cookie attribute ensures that sensitive authentication cookies are never sent over unencrypted HTTP pathways, mitigating eavesdropping risks.

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 email protocols allows users to organize emails into folders on the remote server and synchronizes changes across multiple client devices?
A. POP3
B. SMTP
C. IMAP
D. FTP

Correct Answer: Option C


Explanation:
IMAP (Internet Message Access Protocol) leaves messages on the mail server and synchronizes states, folders, and reads across all connected devices seamlessly.

This question belongs to: Computer Internet and Web Technologies
Question #2
What is the primary operational task of a 'TLD (Top-Level Domain) Name Server' operating within the Domain Name System hierarchy?
A. To track local physical computer operating temperature logs
B. To maintain records for all domain names sharing a specific extension (like .com or .org) and direct queries to their respective authoritative nameservers
C. To parse HTML structural page code inside browser windows
D. To filter email spam items from incoming mail folders

Correct Answer: Option B


Explanation:
TLD nameservers maintain the directory data for specific domain extensions, acting as an essential intermediate link in the DNS resolution process by routing queries to authoritative servers.

This question belongs to: Computer Internet and Web Technologies
Question #3
What is the purpose of the 'XMLHttpRequest' object in JavaScript?
A. To handle events
B. To send and receive data from a server asynchronously
C. To style web pages
D. To parse XML documents

Correct Answer: Option B


Explanation:
XMLHttpRequest is an API in JavaScript that allows web pages to make HTTP requests to servers asynchronously, enabling AJAX.

This question belongs to: Computer Internet and Web Technologies