Free Linux+ Practice Questions
The below questions replicate the type, level, and complexity of the questions you should expect at the LPIC exam. This sample exam gives you a feeling of the reality of the exam and gives you a sense of the questions asked on the actual LPIC-101 and LPIC-102 exams.
CompTIA Linux+ Practice Test Question 1
Systemd and Upstart are event-based init systems. What are the two advantages of this method of initialization? (Choose two)
a) Improved account security
b) It allows on-the-fly detection of changes
c) It follows a linear boot process
d) It is Windows compatible
e) The boot sequence is faster
Explanation:
Traditionally Linux systems have used a system initialization process from the UNIX SysV standard. However, as of late several Linux distributions have adopted the Systemd system initialization process. Systemd is completely compatible with the UNIX SysV standard but also implements new features for managing all system devices, including Linux kernel modules, daemons, and network sockets.
EXAM OBJECTIVE
Linux+ Exam Objective: Topic 101: System Architecture, Sub-Objective: 101.2 Boot the system
Correct Answer: “It allows on-the-fly detection of changes” and “The boot sequence is faster”
CompTIA Linux+ Practice Test Question 2
To Systemd, each operating system component is called a unit. Daemons are called _________ units and runlevels are called target units.
Explanation:
To Systemd, daemons are called service units because they provide a system service. Configuration file whose name ends in .service encodes information about a process controlled and supervised by systemd. An example would be: systemd.service — Service unit configuration.
EXAM OBJECTIVE
Linux+ Exam Objective: Topic 101: System Architecture, Sub-Objective: 101.3 Change runlevels and shutdown or reboot system
Correct Answer: Service
CompTIA Linux+ Practice Test Question 3
Systemd is completely compatible with the UNIX SysV.
a) True
b) False
Explanation:
Traditionally Linux systems have used a system initialization process from the UNIX SysV standard. However, as of late several Linux distributions have adopted the Systemd system initialization process. Systemd is completely compatible with the UNIX SysV standard but also implements new features for managing all system devices, including Linux kernel modules, daemons, and network sockets.
EXAM OBJECTIVE
Linux+ Exam Objective: Topic 101: System Architecture, Sub-Objective: 101.3 Change runlevels and shutdown or reboot system
Correct Answer: True
CompTIA Linux+ Practice Test Question 4
Which init system is covered by a copyright license agreement that contributors must sign in order to have their contributions included upstream?
a) Systemd
b) SysVinit
c) Init
d) Upstart
Explanation:
This is a bone of contention as it is not considered to be in the spirit in which the Linux community wants to work. Upstart is covered by a copyright license agreement that contributors must sign if they want their contributions included upstream. Many Debian developers are unwilling to sign such an agreement, in part because of the asymmetry of the agreement in question. They also object to core packages being covered by such terms that they will not contribute under. Upstart was introduced in 2006 with the release of Ubuntu 6.1. At the time Upstart replaced, on some systems, SysVinit which in its turn was considered an upgrade of init.
EXAM OBJECTIVE
Linux+ Exam Objective: Topic 101: System Architecture, Sub-Objective: 101.2 Boot the system
Correct Answer: Upstart
CompTIA Linux+ Practice Test Question 5
Messages enter rsyslog with the help of input modules. Then, they are passed to ruleset, where rules are conditionally applied. When a rule matches, the message is transferred to a(n) ______ , which then does something to the message.
a) action
b) log
c) script
d) facility
Explanation:
Messages enter rsyslog with the help of input modules. Then, they are passed to ruleset, where rules are conditionally applied. When a rule matches, the message is transferred to an action, which then does something to the message, i.e. write it to a file, a database or forward it to a remote host.
EXAM OBJECTIVE
Linux+ Exam Objective: Topic 101: System Architecture, Sub-Objective: 108.2 System logging
Correct Answer: action