CIW Web Foundations Associate 2 — Questions and Answers
Question 1: Which HTTP status code indicates that a resource has been permanently moved to a new URL?
- 200 OK
- 301 Moved Permanently (Correct answer)
- 404 Not Found
- 500 Internal Server Error
Correct answer: 301 Moved Permanently
HTTP 301 tells clients and search engines that the resource has permanently relocated to a new URL.
Question 2: In HTML, which attribute is used to specify an alternative text description for an image?
- title
- src
- alt (Correct answer)
- caption
Correct answer: alt
The alt attribute provides alternative text for images, aiding accessibility and displaying when images fail to load.
Question 3: Which CSS property controls the space between the element's border and its content?
- margin
- padding (Correct answer)
- spacing
- border-gap
Correct answer: padding
Padding is the space inside the element between its content and its border.
Question 4: What does the acronym 'FTP' stand for in the context of internet file transfers?
- File Transfer Protocol (Correct answer)
- Fast Transfer Process
- Forwarded Transfer Package
- File Transport Program
Correct answer: File Transfer Protocol
FTP (File Transfer Protocol) is a standard network protocol used to transfer files between a client and server.
Question 5: Which HTML element is used to create an unordered (bulleted) list?
- <ol>
- <dl>
- <ul> (Correct answer)
- <li>
Correct answer: <ul>
The <ul> element defines an unordered list where items are typically displayed with bullet points.
Question 6: In a client-server model, which component initiates the request for resources?
- Server
- Router
- Client (Correct answer)
- DNS resolver
Correct answer: Client
The client initiates requests to the server, which then responds with the requested resources or data.
Question 7: Which tag is used in HTML to define the largest heading?
- <h6>
- <heading>
- <h1> (Correct answer)
- <title>
Correct answer: <h1>
<h1> defines the most important (largest) heading, with <h6> being the smallest.
Which HTTP status code indicates that a resource has been permanently moved to a new URL?