Basic Linux Practice Multiple Choice Questions – 19

91. Question: In Linux, a service that is set to automatically restart after a failure is called “_____”.

Option 1: Resilient

Option 2: Auto-restart

Option 3: Persistent

Option 4: Robust

Correct Answer: 2

Explanation: In Linux, a service that is set to automatically restart after a failure is called “auto-restart”. This feature ensures that critical services can recover from failures and continue running, thereby enhancing the system’s reliability and availability.

92. Question: Which system and service manager is primarily controlled by the systemctl command?

Option 1: Systemd

Option 2: Init

Option 3: Upstart

Option 4: SysV

Correct Answer: 1

Explanation: The systemctl command is primarily used to control the “systemd” system and service manager. Systemd is the initialization system responsible for managing system processes and services in most modern Linux distributions, making it an essential tool for system administrators.

93. Question: Which command in Linux can be used to manipulate or display the IP routing table?

Option 1: route

Option 2: ifconfig

Option 3: iptables

Option 4: ip

Correct Answer: 4

Explanation: In Linux, the ip command can be used to manipulate or display the IP routing table. It is a powerful and versatile tool for configuring network interfaces, routing, tunnels, etc. Compared to the older route and ifconfig commands, ip is considered a modern and more comprehensive alternative.

94. Question: In Linux, services that start at boot and run in the background are typically referred to as _____.

Option 1: Service

Option 2: Daemon

Option 3: Application

Option 4: Process

Correct Answer: 2

Explanation: In Linux, services that start at boot and run in the background are typically referred to as daemons. Daemons are long-running background processes that perform various tasks, such as handling network requests, managing hardware devices, etc.

95. Question: Which command in Linux provides a method to configure network interfaces, set routing information, etc., and is considered a modern replacement for ifconfig?

Option 1: network

Option 2: ipconfig

Option 3: ifup

Option 4: ip

Correct Answer: 4

Explanation: The ip command provides a method to configure network interfaces, set routing information, etc. It is considered a modern replacement for ifconfig, which is gradually being phased out in many Linux distributions. The ip command offers a broader and more flexible set of network configuration options.

Leave a Comment