Internet and Web Technologies MCQs

Computer

Internet and Web Technologies MCQs

Practice Internet MCQs covering WWW, browsers, search engines, URL, HTTP, HTTPS, email and web technologies with answers and explanations.

461
Total Questions

Practice Questions

Page 8 of 24
Question #141
What is the purpose of the 'referer' HTTP header?
A. To specify the client's IP address
B. To indicate the URL of the page that linked to the current resource
C. To set the content type
D. To authenticate the request

Correct Answer: Option B


Explanation:
The Referer header (misspelling of 'referrer') contains the URL of the previous page that linked to the current page, used for analytics and security.

This question belongs to: Computer Internet and Web Technologies
Question #142
Which of the following is a method to improve website loading speed?
A. Browser caching
B. All of the above
C. Using a CDN
D. Minification of CSS and JavaScript

Correct Answer: Option B


Explanation:
Minification reduces file sizes, CDNs distribute content, and browser caching stores resources locally, all of which improve loading speed.

This question belongs to: Computer Internet and Web Technologies
Question #143
What is the function of the 'DOCTYPE' declaration in HTML?
A. To define the character encoding
B. To set the page title
C. To specify the HTML version and standards mode
D. To link to an external stylesheet

Correct Answer: Option C


Explanation:
The DOCTYPE declaration tells the browser which version of HTML to use and triggers standards mode for proper rendering.

This question belongs to: Computer Internet and Web Technologies
Question #144
Which of the following is a valid IPv4 address?
A. 192.168.1
B. 192.168.1.1
C. 192.168.1.1.1
D. 300.168.1.1

Correct Answer: Option B


Explanation:
An IPv4 address consists of four octets (0-255) separated by dots. 192.168.1.1 is valid. 300 is invalid, and the others have incorrect structure.

This question belongs to: Computer Internet and Web Technologies
Question #145
What is the purpose of the 'Accept' HTTP header?
A. To indicate the preferred language
B. To list acceptable encodings
C. To specify the media types the client can process
D. To specify the content type of the request body

Correct Answer: Option C


Explanation:
The Accept header informs the server about the media types the client can understand, e.g., text/html, application/json.

This question belongs to: Computer Internet and Web Technologies
Question #146
Which of the following is an example of a dynamic web page technology?
A. ASP.NET
B. Server-side includes (SSI)
C. All of the above
D. PHP

Correct Answer: Option C


Explanation:
SSI, PHP, and ASP.NET are all server-side technologies used to generate dynamic content.

This question belongs to: Computer Internet and Web Technologies
Question #147
What is a web browser's 'bookmark' used for?
A. To store passwords
B. To save a URL for quick access later
C. To block websites
D. To manage browsing history

Correct Answer: Option B


Explanation:
A bookmark (or favorite) is a stored link to a web page that allows users to quickly revisit it without typing the URL again.

This question belongs to: Computer Internet and Web Technologies
Question #148
Which of the following is a protocol for real-time communication between web browsers and servers?
A. HTTP/1.1
B. WebSocket
C. HTTP/2
D. FTP

Correct Answer: Option B


Explanation:
WebSocket provides full-duplex communication over a single connection, ideal for real-time applications like chat and gaming.

This question belongs to: Computer Internet and Web Technologies
Question #149
What is the purpose of the 'Cookie' header in an HTTP request?
A. To send stored cookies from the client to the server
B. To check cookie existence
C. To set new cookies on the client
D. To delete cookies

Correct Answer: Option A


Explanation:
The Cookie header is used by the client to send previously stored cookies to the server, enabling session management.

This question belongs to: Computer Internet and Web Technologies
Question #150
Which of the following is a client-side storage mechanism in web browsers?
A. sessionStorage
B. All of the above
C. localStorage
D. Cookies

Correct Answer: Option B


Explanation:
localStorage, sessionStorage, and cookies are all ways to store data on the client side, with different scopes and persistence.

This question belongs to: Computer Internet and Web Technologies
Question #151
What does the 'autocomplete' attribute in HTML forms control?
A. Whether the form uses JavaScript
B. Whether the form is validated
C. Whether the form should submit automatically
D. Whether the browser can automatically fill in form fields

Correct Answer: Option D


Explanation:
The autocomplete attribute suggests whether the browser should enable automatic completion of input values based on the user's prior entries.

This question belongs to: Computer Internet and Web Technologies
Question #152
Which of the following is a type of web-based attack that involves injecting SQL queries into input fields?
A. SQL Injection
B. Cross-Site Scripting
C. Session Hijacking
D. Cross-Site Request Forgery

Correct Answer: Option A


Explanation:
SQL Injection is an attack where malicious SQL statements are inserted into input fields to manipulate the database.

This question belongs to: Computer Internet and Web Technologies
Question #153
What is the function of the 'title' tag in HTML?
A. To define the main heading
B. To provide a tooltip for links
C. To set the title of the web page displayed in the browser tab
D. To specify the document language

Correct Answer: Option C


Explanation:
The tag defines the title of the document, which appears in the browser's title bar or tab.

This question belongs to: Computer Internet and Web Technologies
Question #154
Which protocol is used for sending email between mail servers?
A. IMAP
B. SMTP
C. POP3
D. MIME

Correct Answer: Option B


Explanation:
SMTP is used for email transmission both from clients to servers and between servers for relaying messages.

This question belongs to: Computer Internet and Web Technologies
Question #155
What is the purpose of a URL shortening service?
A. To create a shorter alias for a long URL
B. To encrypt the URL
C. Both A and C
D. To redirect to the original URL

Correct Answer: Option C


Explanation:
URL shortening services generate a short URL that redirects to the original long URL, making it easier to share.

This question belongs to: Computer Internet and Web Technologies
Question #156
Which of the following is a component of a web browser that interprets JavaScript code?
A. Rendering engine
B. JavaScript engine
C. Cache manager
D. Network stack

Correct Answer: Option B


Explanation:
The JavaScript engine (e.g., V8 for Chrome) parses and executes JavaScript code within the browser.

This question belongs to: Computer Internet and Web Technologies
Question #157
What does the 'target' attribute in an HTML tag specify?
A. The URL of the link
B. Where to open the linked document (e.g., new tab)
C. The relationship to the linked document
D. The media type

Correct Answer: Option B


Explanation:
The target attribute defines where the linked document should be opened, such as _blank for a new tab or window.

This question belongs to: Computer Internet and Web Technologies
Question #158
Which of the following is a feature of HTTP/2 compared to HTTP/1.1?
A. Server push
B. Header compression
C. All of the above
D. Multiplexing multiple requests over a single connection

Correct Answer: Option C


Explanation:
HTTP/2 introduces multiplexing, header compression, server push, and other performance improvements over HTTP/1.1.

This question belongs to: Computer Internet and Web Technologies
Question #159
What is the purpose of the 'charset' attribute in an HTML meta tag?
A. To refresh the page
B. To set the language
C. To specify the character encoding for the document
D. To define the viewport

Correct Answer: Option C


Explanation:
The charset attribute in defines the character encoding (e.g., UTF-8) used for the HTML document.

This question belongs to: Computer Internet and Web Technologies
Question #160
Which of the following is a web-based tool for searching and indexing information on the internet?
A. Web server
B. Email client
C. Web browser
D. Search engine

Correct Answer: Option D


Explanation:
A search engine is a software system designed to search for information on the World Wide Web.

This question belongs to: Computer Internet and Web Technologies