CIW Web Foundations Associate 5 — Questions and Answers
Question 1: Which network device connects multiple networks and forwards data packets between them based on IP addresses?
- Hub
- Switch
- Router (Correct answer)
- Bridge
Correct answer: Router
A router forwards data packets between different networks by examining IP addresses to determine the best path.
Question 2: In HTML, which attribute specifies the URL of the page a hyperlink goes to?
- url
- src
- href (Correct answer)
- link
Correct answer: href
The href (Hypertext Reference) attribute in the <a> tag specifies the destination URL of the hyperlink.
Question 3: What does 'responsive web design' mean?
- A website that loads in under one second on all devices
- A design approach where layouts adapt to different screen sizes and devices (Correct answer)
- A website that responds to voice commands
- A design technique using only server-side rendering
Correct answer: A design approach where layouts adapt to different screen sizes and devices
Responsive web design uses flexible grids, images, and CSS media queries to create layouts that adapt to any screen size.
Question 4: Which of the following is a valid IPv4 address format?
- 192.168.1
- 192:168:1:1
- 192.168.1.1 (Correct answer)
- 192-168-1-1
Correct answer: 192.168.1.1
A valid IPv4 address consists of four decimal numbers (0–255) separated by periods, such as 192.168.1.1.
Question 5: What is the purpose of the CSS 'float' property?
- Animates an element to slide up the page
- Positions an element to the left or right, allowing content to wrap around it (Correct answer)
- Makes an element transparent and overlay other content
- Fixes an element's position relative to the viewport
Correct answer: Positions an element to the left or right, allowing content to wrap around it
The float property positions an element to one side of its container, allowing surrounding content to flow around it.
Question 6: Which type of network covers a large geographic area such as a country or continent?
- LAN (Local Area Network)
- PAN (Personal Area Network)
- WAN (Wide Area Network) (Correct answer)
- MAN (Metropolitan Area Network)
Correct answer: WAN (Wide Area Network)
A WAN (Wide Area Network) spans large geographical areas and is used to connect multiple LANs across cities, countries, or continents.
Question 7: In HTML5, which element is used to define a section of navigation links?
- <menu>
- <nav> (Correct answer)
- <links>
- <sidebar>
Correct answer: <nav>
The HTML5 <nav> element is a semantic element that defines a set of navigation links within a webpage.
Which network device connects multiple networks and forwards data packets between them based on IP addresses?