LPIC 1 Basic Networking and Security Quiz

Reviewed by Editorial Team
The ProProfs editorial team is comprised of experienced subject matter experts. They've collectively created over 10,000 quizzes and lessons, serving over 100 million users. Our team includes in-house content moderators and subject matter experts, as well as a global network of rigorously trained contributors. All adhere to our comprehensive editorial guidelines, ensuring the delivery of high-quality content.
Learn about Our Editorial Process
| By Thames
T
Thames
Community Contributor
Quizzes Created: 11982 | Total Attempts: 187,298
| Questions: 20 | Updated: Aug 16, 2026
Please wait...
Question 1 / 21
🏆 Rank #-- ▾
0 %
0/100
Score 0/100

1. What does DNS stand for?

Explanation

DNS stands for Domain Name System. It translates human-readable domain names, such as example.com, into the numerical IP addresses that computers use to locate and communicate with servers.

Submit
Please wait...
About This Quiz
LPIC 1 Basic Networking and Security Quiz - Quiz

This quiz assesses foundational networking and security knowledge required for LPIC 1 certification. It covers TCP\/IP protocols, network configuration, firewall basics, user authentication, file permissions, and system security practices. Ideal for Linux administrators preparing for industry-recognized credentials.

2.

What first name or nickname would you like us to use?

You may optionally provide this to label your report, leaderboard, or certificate.

2. Which protocol operates at the Transport Layer and provides connectionless communication?

Explanation

UDP operates at the Transport Layer and sends data as independent datagrams without establishing a connection or performing a handshake. This makes communication lightweight and fast, though it does not guarantee delivery or ordering. TCP is connection-oriented, while ICMP and IGMP operate at the Network Layer.

Submit

3. What is the primary role of the sudo command in Linux security?

Explanation

The `sudo` command lets permitted users run specific commands with elevated privileges, typically as the root user. This supports administrative tasks while allowing access to be controlled and logged, rather than giving users unrestricted superuser access.

Submit

4. Which file contains the mapping of IP addresses to hostnames for local network resolution?

Explanation

The `/etc/hosts` file stores static mappings between IP addresses and hostnames on a system. Local name-resolution services can consult these entries to resolve names without querying a DNS server, which is useful for local devices, testing, or overriding a hostname’s usual DNS record. It is distinct from files that configure DNS servers or network interfaces.

Submit

5. The subnet mask 255.255.255.0 corresponds to which CIDR notation?

Explanation

A subnet mask of 255.255.255.0 has 24 consecutive 1-bits in its binary representation, followed by 8 zeros. CIDR notation records the number of network bits after the slash, so this mask is written as /24.

Submit

6. Which authentication method uses a key pair for secure login without passwords?

Explanation

Public key authentication uses a matched pair of cryptographic keys: a private key kept by the user and a public key stored by the server. During login, the user proves possession of the private key, and the server verifies it with the public key, allowing secure access without a password.

Submit

7. What is the primary purpose of a firewall in network security?

Explanation

A firewall monitors network traffic and applies security rules to allow or block connections. This helps prevent unauthorized access while permitting approved communication between networks or devices.

Submit

8. Which command displays all network connections and listening ports on a Linux system?

Explanation

`netstat -tuln` lists listening TCP and UDP sockets, showing addresses and port numbers in numeric form rather than resolving names. The `-t` and `-u` options select TCP and UDP, `-l` shows listening sockets, and `-n` keeps the output numeric. It does not list every established connection; that would require `-a`.

Submit

9. The /etc/shadow file stores______ in an encrypted format.

Explanation

On Linux systems, `/etc/shadow` stores password hashes for user accounts, rather than keeping passwords in plain text. Access to this file is restricted because the hashes could otherwise be targeted for offline password cracking. Hostnames, network routes, and firewall rules are managed in other system files.

Submit

10. Which protocol is used for secure file transfer as a replacement for FTP?

Explanation

Both SFTP and FTPS provide secure alternatives to traditional FTP by encrypting file transfers. SFTP operates over SSH, while FTPS adds TLS encryption to FTP. HTTPS also uses encryption, but it is primarily designed for secure web communication rather than file transfer via FTP.

Submit

11. Which layer of the OSI model is responsible for routing data packets between networks?

Explanation

The Network Layer handles communication between devices on different networks. It uses logical addresses, such as IP addresses, to identify destinations and determines suitable paths for packets. Routers operate at this layer, forwarding packets toward their destination across interconnected networks.

Submit

12. Which command is used to configure firewall rules on a Linux system using iptables?

Explanation

`iptables` configures firewall rules directly, while `firewall-cmd` and `ufw` provide higher-level interfaces for managing firewall settings on Linux. Depending on the distribution and firewall backend, these tools may manage rules implemented through netfilter, so all three can be used to configure firewall rules.

Submit

13. In Linux, what permission octal value represents read, write, and execute for the owner?

Explanation

In Linux permissions, read is 4, write is 2, and execute is 1. Adding them gives 4 + 2 + 1 = 7, so octal value 7 grants the owner all three permissions.

Submit

14. Which utility is used to test network connectivity by sending ICMP echo requests?

Explanation

The `ping` utility tests network connectivity by sending ICMP echo requests to a destination and waiting for replies. The responses indicate whether the destination is reachable and provide information such as round-trip time and packet loss.

Submit

15. What does CIDR notation 192.168.1.0/24 represent?

Explanation

The /24 prefix means the first 24 bits identify the network, leaving 8 bits for host addresses. Eight bits provide 256 total addresses, but the first is reserved as the network address and the last as the broadcast address. That leaves 254 usable host addresses.

Submit

16. Which file in Linux stores user account information including usernames and UIDs?

Explanation

The `/etc/passwd` file contains account records, including each user’s login name and numeric user ID (UID). It also commonly stores fields such as the user’s group ID, home directory, and default shell. Password hashes are generally kept separately in `/etc/shadow`.

Submit

17. What is the default SSH port number?

Explanation

SSH uses TCP port 22 by default for secure remote login and command-line access. Ports 20 and 21 are associated with FTP, while port 23 is used by Telnet.

Submit

18. In Linux file permissions, what does the sticky bit do when set on a directory?

Explanation

When the sticky bit is set on a shared directory, users can create files, but only a file’s owner, the directory’s owner, or the root user can delete or rename it. This helps prevent users from removing or changing one another’s files.

Submit

19. Which command displays the current network configuration and IP address on a Linux system?

Explanation

`ifconfig` and the modern `ip addr` command display network interfaces and their configuration, including assigned IP addresses. `netstat -a` lists network connections, `route -n` shows routing information, and `arp -a` displays the ARP table.

Submit

20. What does TCP stand for in networking?

Explanation

TCP stands for Transmission Control Protocol, a core networking protocol that enables devices to exchange data reliably. It organizes information into packets, checks for errors, and retransmits missing data when needed, helping ensure that information arrives in the correct order.

Submit
×
Saved
Thank you for your feedback!
View My Results
Cancel
  • All
    All (20)
  • Unanswered
    Unanswered ()
  • Answered
    Answered ()
What does DNS stand for?
Which protocol operates at the Transport Layer and provides...
What is the primary role of the sudo command in Linux security?
Which file contains the mapping of IP addresses to hostnames for local...
The subnet mask 255.255.255.0 corresponds to which CIDR notation?
Which authentication method uses a key pair for secure login without...
What is the primary purpose of a firewall in network security?
Which command displays all network connections and listening ports on...
The /etc/shadow file stores______ in an encrypted format.
Which protocol is used for secure file transfer as a replacement for...
Which layer of the OSI model is responsible for routing data packets...
Which command is used to configure firewall rules on a Linux system...
In Linux, what permission octal value represents read, write, and...
Which utility is used to test network connectivity by sending ICMP...
What does CIDR notation 192.168.1.0/24 represent?
Which file in Linux stores user account information including...
What is the default SSH port number?
In Linux file permissions, what does the sticky bit do when set on a...
Which command displays the current network configuration and IP...
What does TCP stand for in networking?
play-Mute sad happy unanswered_answer up-hover down-hover success oval cancel Check box square blue
Alert!