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 6 of 24
Question #101
What does the 'WWW' prefix in a URL usually signify?
A. The port number
B. World Wide Web, indicating the resource is on the web
C. The protocol used
D. The server hosting the site

Correct Answer: Option B


Explanation:
The 'www' prefix is a common subdomain indicating that the resource is part of the World Wide Web, though it is not required and many sites omit it.

This question belongs to: Computer Internet and Web Technologies
Question #102
Which of the following is a web-based email service?
A. All of the above
B. Outlook
C. Gmail
D. Yahoo Mail

Correct Answer: Option A


Explanation:
Gmail, Yahoo Mail, and Outlook (as a web client) are all web-based email services accessible via a browser.

This question belongs to: Computer Internet and Web Technologies
Question #103
What is the purpose of the 'Cache-Control' HTTP header?
A. To set the language of the content
B. To authenticate the user
C. To specify caching policies for the resource
D. To control the format of the response

Correct Answer: Option C


Explanation:
The Cache-Control header is used to define caching directives such as max-age, no-cache, and private, controlling how and for how long the resource can be cached.

This question belongs to: Computer Internet and Web Technologies
Question #104
Which of the following is a type of web attack that injects malicious scripts into web pages?
A. Cross-Site Request Forgery (CSRF)
B. Phishing
C. SQL Injection
D. Cross-Site Scripting (XSS)

Correct Answer: Option D


Explanation:
Cross-Site Scripting (XSS) is a vulnerability where attackers inject malicious scripts into otherwise benign websites, which are then executed in users' browsers.

This question belongs to: Computer Internet and Web Technologies
Question #105
What is the function of an IP address?
A. To translate domain names
B. To encrypt data
C. To identify a device on a network
D. To store web pages

Correct Answer: Option C


Explanation:
An IP address is a numerical label assigned to each device connected to a computer network that uses the Internet Protocol for communication.

This question belongs to: Computer Internet and Web Technologies
Question #106
Which of the following is a version of IP that provides a larger address space to accommodate more devices?
A. IPsec
B. IPv6
C. IPv4
D. IPv5

Correct Answer: Option B


Explanation:
IPv6 (Internet Protocol version 6) was developed to address the exhaustion of IPv4 addresses, offering a 128-bit address space.

This question belongs to: Computer Internet and Web Technologies
Question #107
What is the purpose of a web application firewall (WAF)?
A. To monitor and filter HTTP traffic to protect web applications
B. To manage domain names
C. To cache web content
D. To encrypt web traffic

Correct Answer: Option A


Explanation:
A WAF monitors, filters, and blocks HTTP traffic to and from a web application to protect against common attacks such as SQL injection and XSS.

This question belongs to: Computer Internet and Web Technologies
Question #108
What does the term 'REST' stand for in web services?
A. Reliable Service Transfer
B. Resource State Transfer
C. Representational State Transfer
D. Remote Execution State Transfer

Correct Answer: Option C


Explanation:
REST (Representational State Transfer) is an architectural style for designing networked applications, using HTTP methods for CRUD operations.

This question belongs to: Computer Internet and Web Technologies
Question #109
Which of the following is a method of authentication that uses a token for API access?
A. Basic Auth
B. NTLM
C. OAuth
D. Digest Auth

Correct Answer: Option C


Explanation:
OAuth (Open Authorization) is an open standard for token-based authentication, commonly used for APIs to allow third-party services access without exposing passwords.

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

Correct Answer: Option A


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 #111
Which of the following is a protocol for secure remote login?
A. FTP
B. Telnet
C. HTTP
D. SSH

Correct Answer: Option D


Explanation:
SSH (Secure Shell) is a cryptographic network protocol for secure remote login and command execution over an insecure network, unlike Telnet which is unencrypted.

This question belongs to: Computer Internet and Web Technologies
Question #112
What is the function of the 'ping' command in networking?
A. To trace the route to a host
B. To test connectivity to a host
C. To resolve domain names
D. To display network configuration

Correct Answer: Option B


Explanation:
Ping uses ICMP echo requests to test reachability of a host and measure round-trip time, a basic network diagnostic tool.

This question belongs to: Computer Internet and Web Technologies
Question #113
Which of the following is a content delivery network (CDN) service?
A. AWS S3
B. Google Drive
C. CloudFlare
D. Dropbox

Correct Answer: Option C


Explanation:
CloudFlare is a CDN and reverse proxy service that distributes content from geographically distributed servers to improve speed and security.

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

Correct Answer: Option A


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
Question #115
Which of the following is a modern alternative to XML for data interchange, often used in web APIs?
A. CSV
B. HTML
C. YAML
D. JSON

Correct Answer: Option D


Explanation:
JSON (JavaScript Object Notation) is a lightweight data interchange format that is easy for humans to read and write and easy for machines to parse, and is widely used in web APIs.

This question belongs to: Computer Internet and Web Technologies
Question #116
What is the role of the 'alt' attribute in an HTML img tag?
A. To define image dimensions
B. To set the image source
C. To add a tooltip
D. To specify alternative text for accessibility and when image fails to load

Correct Answer: Option D


Explanation:
The alt attribute provides a text alternative for an image, improving accessibility and providing fallback content if the image cannot be displayed.

This question belongs to: Computer Internet and Web Technologies
Question #117
Which of the following is a characteristic of a WebSocket?
A. It uses a new port for each message
B. It provides full-duplex communication over a single TCP connection
C. It is a request-response protocol
D. It is based on HTTP/2

Correct Answer: Option B


Explanation:
WebSocket enables two-way interactive communication between a client and server over a single persistent connection, unlike HTTP which is half-duplex.

This question belongs to: Computer Internet and Web Technologies
Question #118
What is the purpose of the 'same-origin policy' in web browsers?
A. To enforce HTTPS usage
B. To block pop-ups
C. To ensure cookies are only sent to the same site
D. To prevent scripts from accessing data from different origins

Correct Answer: Option D


Explanation:
The same-origin policy restricts how documents or scripts loaded from one origin can interact with resources from another origin, protecting against attacks like CSRF and data theft.

This question belongs to: Computer Internet and Web Technologies
Question #119
Which of the following HTTP status codes indicates that the request has succeeded and a new resource has been created?
A. 201 Created
B. 202 Accepted
C. 204 No Content
D. 200 OK

Correct Answer: Option A


Explanation:
201 Created is the status code for successful POST requests that result in the creation of a new resource.

This question belongs to: Computer Internet and Web Technologies
Question #120
Which HTTP status code indicates a client error (bad request)?
A. 401
B. 403
C. 400
D. 404

Correct Answer: Option C


Explanation:
400 Bad Request indicates that the server cannot process the request due to malformed syntax or invalid parameters. 401 is Unauthorized, 403 Forbidden, 404 Not Found.

This question belongs to: Computer Internet and Web Technologies