Quiz: Networking Fundamentals
Test your understanding of Linux networking concepts and commands.
1. What does the ping command do?
- Downloads files from the internet
- Tests connectivity to a host by sending ICMP packets
- Creates a network connection
- Configures IP addresses
Show Answer
The correct answer is B. ping sends ICMP echo request packets to a host and waits for replies, measuring response time and packet loss. It's the first tool to use when troubleshooting network connectivity.
Concept Tested: Ping Command
See: Chapter 15 - Ping
2. What information does ip addr (or ip a) show?
- Only the public IP address
- Network interface configurations including IP addresses
- DNS server addresses
- Internet speed
Show Answer
The correct answer is B. ip addr displays all network interfaces and their configurations, including IP addresses (IPv4 and IPv6), MAC addresses, and interface states (up/down).
Concept Tested: IP Command
3. What is the difference between a public and private IP address?
- There's no difference
- Public IPs are routable on the internet; private IPs are for local networks
- Private IPs are faster
- Public IPs are more secure
Show Answer
The correct answer is B. Public IP addresses are unique and routable on the internet. Private IPs (like 192.168.x.x, 10.x.x.x) are used within local networks and are not directly accessible from the internet.
Concept Tested: IP Addresses
4. What does curl do?
- Curls the screen display
- Transfers data from or to a server using URLs
- Compresses files
- Creates user roles
Show Answer
The correct answer is B. curl (Client URL) is a command-line tool for transferring data using various protocols (HTTP, HTTPS, FTP, etc.). It's commonly used for downloading files, testing APIs, and web scraping.
Concept Tested: Curl Command
See: Chapter 15 - Curl
5. What does wget do differently than curl?
- They're identical
- wget is designed for downloading files, with resume and recursive support
- curl is only for downloads
- wget is faster
Show Answer
The correct answer is B. While both can download files, wget is specifically designed for downloading with features like automatic resume, recursive downloads, and background operation. curl is more versatile for various HTTP operations and scripting.
Concept Tested: Wget Command
See: Chapter 15 - Wget
6. What is DNS?
- Direct Network Service
- Domain Name System - translates domain names to IP addresses
- Data Network Security
- Distributed Node Service
Show Answer
The correct answer is B. DNS (Domain Name System) translates human-readable domain names (like google.com) into IP addresses (like 142.250.80.46) that computers use to identify each other on the network.
Concept Tested: DNS
See: Chapter 15 - DNS
7. What does traceroute (or tracepath) show?
- The contents of a file
- The path packets take to reach a destination
- User login history
- Available routes in a GPS
Show Answer
The correct answer is B. traceroute displays the network path (hops) that packets take to reach a destination, showing each router along the way and the time to reach it. Useful for diagnosing where network problems occur.
Concept Tested: Traceroute
8. What does netstat -tuln show?
- Network statistics over time
- Listening TCP and UDP ports with numeric addresses
- Network card specifications
- Internet speed test results
Show Answer
The correct answer is B. netstat -tuln shows listening ports: -t (TCP), -u (UDP), -l (listening), -n (numeric, don't resolve names). This reveals what services are running and accepting connections.
Concept Tested: Netstat Command
See: Chapter 15 - Netstat
9. What file typically contains DNS server configuration?
- /etc/hosts
- /etc/resolv.conf
- /etc/network
- /etc/dns
Show Answer
The correct answer is B. /etc/resolv.conf contains the DNS nameserver addresses your system uses for name resolution. /etc/hosts is used for local hostname mappings, not DNS configuration.
Concept Tested: Network Configuration
10. What is localhost and what IP does it represent?
- Your router, 192.168.1.1
- Your own computer, 127.0.0.1
- Google's servers, 8.8.8.8
- The network gateway, 0.0.0.0
Show Answer
The correct answer is B. localhost is a hostname that refers to your own computer, mapped to the loopback address 127.0.0.1. Connections to localhost never leave your machine, useful for testing local services.
Concept Tested: Localhost