What is the role of a cookie in maintaining sessions? MCQ with Answer and Explanation

What is the role of a cookie in maintaining sessions?
A. To store a session identifier on the client
B. To authenticate the user directly
C. To store user data on the server
D. To encrypt session data
Answer: Option A
Solution (By JKExamLibrary)
Cookies often contain a session ID that is sent to the server with each request, allowing the server to associate the request with a specific user session.

This question belongs to: Computer Internet and Web Technologies

Discuss this Question (0)

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

Practice More Internet and Web Technologies Questions

Question #1 Report Error
Which of the following is an example of a static web page?
A. A page with a login form
B. A page that shows user-specific data
C. A page that displays the same content every time
D. A page that updates automatically

Correct Answer: Option C


Explanation:
A static web page is delivered exactly as stored and does not change based on user interaction or server-side processing.

This question belongs to: Computer Internet and Web Technologies
Question #2 Report Error
What does the term 'Hypertext' mean in the context of the World Wide Web environment?
A. Text that contains embedded links pointing to other documents or media files
B. Text that is transmitted at speeds faster than fiber networks
C. Text written using machine language binary code values
D. Encrypted secure string text used inside user database units

Correct Answer: Option A


Explanation:
Hypertext is text that contains embedded electronic cross-references (hyperlinks), allowing users to easily jump from one piece of text to another related node.

This question belongs to: Computer Internet and Web Technologies
Question #3 Report Error
What does the acronym AJAX stand for?
A. Automated JavaScript and XML
B. Asynchronous Java and XML
C. Asynchronous JavaScript and XML
D. Advanced JavaScript and XHTML

Correct Answer: Option C


Explanation:
AJAX stands for Asynchronous JavaScript and XML, a technique for creating asynchronous web applications that exchange data with the server without reloading the page.

This question belongs to: Computer Internet and Web Technologies