What is a cookie in the context of web browsing? MCQ with Answer and Explanation

What is a cookie in the context of web browsing?
A. A protocol for secure communication
B. A type of web browser
C. A program that scans for viruses
D. A small text file stored on the user's computer
Answer: Option D
Solution (By JKExamLibrary)
A cookie is a small piece of data sent from a website and stored on the user's browser, used to remember stateful information such as login sessions, preferences, etc.

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 a popular open-source web server software?
A. Apache HTTP Server
B. Tomcat
C. Nginx
D. IIS

Correct Answer: Option A


Explanation:
Apache HTTP Server is one of the most widely used open-source web servers. Nginx is also open-source, but Apache is more traditionally associated with the open-source label.

This question belongs to: Computer Internet and Web Technologies
Question #2 Report Error
What is a domain name registrar?
A. A web hosting provider
B. A search engine
C. An organization that sells domain names
D. A company that manages the DNS root servers

Correct Answer: Option C


Explanation:
A domain name registrar is a company that manages the reservation of Internet domain names and provides registration services to the public.

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

Correct Answer: Option A


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