Basic Linux Practice Multiple Choice Questions – 18

86. Question: What is the main purpose of the netstat command?

Option 1: Display network statistics and connections

Option 2: List all installed packages

Option 3: Check system resource usage

Option 4: Create new network interfaces

Correct Answer: 1

Explanation: The main purpose of the netstat command is to display network statistics and connections. It provides important information about network interfaces, routing tables, and active network connections. It is a crucial tool for network troubleshooting and monitoring.

87. Question: Which command in Linux can be used to monitor network interface statistics in real-time?

Option 1: ifconfig

Option 2: netstat

Option 3: iptraf

Option 4: nmap

Correct Answer: 3

Explanation: The correct command for monitoring network interface statistics in real-time in Linux is iptraf. It provides detailed information about network traffic, including traffic per interface, protocols, and ports. ifconfig and netstat are used for network configuration and monitoring, but they do not provide real-time statistics. nmap is a network scanning tool.

88. Question: Which daemon in Linux is responsible for logging system messages?

Option 1: syslogd

Option 2: klogd

Option 3: systemd

Option 4: auditd

Correct Answer: 1

Explanation: In Linux, the syslogd daemon is responsible for logging system messages. It collects and manages log messages generated by various system components and services. klogd is used for kernel log messages, systemd is an initialization system, and auditd is responsible for auditing.

89. Question: In the context of networking, what does the acronym “NAT” stand for?

Option 1: Network Address Translation

Option 2: Network Access Token

Option 3: Network Analysis Tool

Option 4: Network Authentication Protocol

Correct Answer: 1

Explanation: In the context of networking, “NAT” stands for Network Address Translation. NAT is a technique used to modify the network address information in the headers of packets while they are in transit. It is commonly used to allow multiple devices on a local network to share a single public IP address to access the internet.

90. Question: Which daemon in Linux is responsible for assigning IP addresses to devices on the local network?

Option 1: DHCP

Option 2: DNS

Option 3: SSH

Option 4: HTTP

Correct Answer: 1

Explanation: In Linux, the DHCP (Dynamic Host Configuration Protocol) daemon is responsible for assigning IP addresses to devices on the local network. It automates the configuration process for device network settings, ensuring they receive the necessary IP address, subnet mask, gateway, and other parameters.

Leave a Comment