Which of the following is a client-side storage mechanism in web browsers? MCQ with Answer and Explanation

Which of the following is a client-side storage mechanism in web browsers?
A. sessionStorage
B. localStorage
C. Cookies
D. All of the above
Answer: Option D
Solution (By JKSSB Mock Tests)
localStorage, sessionStorage, and cookies are all ways to store data on the client side, with different scopes and persistence.

Discuss this Question (0)

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

Practice More Internet and Web Technologies Questions

Question #1
Which specific protocol variant establishes a secure, encrypted file management channel over a standard Transport Layer Security (TLS) tunnel, separate from SSH-based options?
A. Telnet console links
B. SMTP outbound pathways
C. Standard unencrypted FTP rules
D. FTPS (File Transfer Protocol Secure)

Correct Answer: Option D


Explanation:
FTPS uses SSL/TLS encryption to protect file transfers, distinct from SFTP which relies on the SSH protocol layer for its security tunnels.

This question belongs to: Computer Internet and Web Technologies
Question #2
What is the function of the 'defer' attribute in a script tag?
A. To prevent script from running
B. To load the script after page load
C. To execute the script asynchronously
D. To delay script execution until the page has parsed

Correct Answer: Option D


Explanation:
The defer attribute tells the browser to continue parsing the HTML while the script downloads, and execute it after the document is parsed, in order.

This question belongs to: Computer Internet and Web Technologies
Question #3
What mechanism does a browser use to maintain persistent client-side data store pools across tabs using basic key-value pairs without expiration deadlines via JavaScript?
A. DNS Registry Logs
B. Session Cookies
C. RAM Buffers
D. LocalStorage

Correct Answer: Option D


Explanation:
The Web Storage API provides 'localStorage', allowing web applications to save data locally inside the user's browser with no built-in expiration timeline.

This question belongs to: Computer Internet and Web Technologies