WGU D281 / LPI LINUX ESSENTIALS:
400-QUESTION PRACTICE TEST
BANK
COMPLETE REVIEW OF TARGETED
QUESTIONS & ANSWERS FOR THE
OBJECTIVE ASSESSMENT
Section 1: System Architecture & Kernel
1. Which component of the Linux operating system directly manages hardware
resources?
• A) Shell
• B) Kernel
• C) Init system
• D) User space
Answer: B) Kernel
Explanation: The kernel is the core of Linux that interacts directly with hardware,
managing memory, processes, and device drivers. It acts as the "software glue" between
hardware and software.
2. What is the first process started by the Linux kernel?
• A) init (PID 1)
• B) systemd (PID 1)
• C) Both A and B (init or systemd depending on distribution)
• D) bash
Answer: C) Both A and B (init or systemd depending on distribution)
,Explanation: PID 1 is the first user-space process started by the kernel. Traditional SysV
systems use init, while modern systems use systemd. Both serve as the parent of all
other processes.
3. Which command displays the current kernel version?
• A) uname -r
• B) uname -a
• C) cat /proc/version
• D) All of the above
Answer: D) All of the above
Explanation: uname -r shows the kernel release, uname -a shows all system
information, and /proc/version also displays kernel version information.
4. Which directory contains device files (e.g., /dev/sda, /dev/tty)?
• A) /dev
• B) /proc
• C) /sys
• D) /etc
Answer: A) /dev
Explanation: /dev contains device special files that represent hardware components. For
example, /dev/sda represents the first SATA hard drive.
5. Which directory is a virtual filesystem providing process and system
information in real time?
• A) /proc
• B) /run
• C) /dev/shm
• D) /usr
Answer: A) /proc
Explanation: /proc is a virtual filesystem (procfs) that contains runtime system
information, including CPU, memory, and process data. It is created in memory at
system boot.
6. Which command displays CPU information?
• A) cat /proc/cpuinfo
• B) lscpu
• C) nproc
, • D) All of the above
Answer: D) All of the above
Explanation: cat /proc/cpuinfo displays detailed CPU information from the proc
filesystem, lscpu formats it in a readable table, and nproc shows the number of
processing cores.
7. Which command displays memory information?
• A) free -h
• B) cat /proc/meminfo
• C) vmstat
• D) All of the above
Answer: D) All of the above
Explanation: free and vmstat display formatted memory information from
/proc/meminfo. All three commands provide memory usage data.
8. Which directory stores kernel modules?
• A) /lib/modules/$(uname -r)
• B) /usr/src/linux
• C) /boot/modules
• D) /etc/modules
Answer: A) /lib/modules/$(uname -r)
Explanation: Kernel modules are stored in /lib/modules/kernel-version/. The uname -r
command returns the current kernel version, allowing modules to be version-specific.
9. What is the default file system type used in modern Linux installations?
• A) ext3
• B) ext4
• C) FAT32
• D) NTFS
Answer: B) ext4
Explanation: ext4 is the default and most modern file system type used in Linux
installations, offering robustness and improved performance over ext3.
10. Which system call is used to create a new process in Linux?
• A) fork()
, • B) exec()
• C) clone()
• D) wait()
Answer: A) fork()
Explanation: The fork() system call creates a new process by duplicating the calling
process. The new process (child) is an exact copy of the parent process, except for the
PID.
Section 2: File Systems & Directory Management
11. What is the purpose of the /etc/fstab file in Linux?
• A) To configure network settings
• B) To store user passwords
• C) To automate filesystem mounting
• D) To schedule cron jobs
Answer: C) To automate filesystem mounting
Explanation: The /etc/fstab file defines how disk partitions, block devices, or remote
filesystems should be mounted into the filesystem.
12. Which directory contains system-wide configuration files in Linux?
• A) /bin
• B) /home
• C) /etc
• D) /usr
Answer: C) /etc
Explanation: The /etc directory in Linux contains system-wide configuration files and
scripts.
13. Which directory contains information, documentation, and example
configuration files for installed software packages?
• A) /usr/share/doc/
• B) /etc/defaults/
• C) /var/info/
• D) /doc/
400-QUESTION PRACTICE TEST
BANK
COMPLETE REVIEW OF TARGETED
QUESTIONS & ANSWERS FOR THE
OBJECTIVE ASSESSMENT
Section 1: System Architecture & Kernel
1. Which component of the Linux operating system directly manages hardware
resources?
• A) Shell
• B) Kernel
• C) Init system
• D) User space
Answer: B) Kernel
Explanation: The kernel is the core of Linux that interacts directly with hardware,
managing memory, processes, and device drivers. It acts as the "software glue" between
hardware and software.
2. What is the first process started by the Linux kernel?
• A) init (PID 1)
• B) systemd (PID 1)
• C) Both A and B (init or systemd depending on distribution)
• D) bash
Answer: C) Both A and B (init or systemd depending on distribution)
,Explanation: PID 1 is the first user-space process started by the kernel. Traditional SysV
systems use init, while modern systems use systemd. Both serve as the parent of all
other processes.
3. Which command displays the current kernel version?
• A) uname -r
• B) uname -a
• C) cat /proc/version
• D) All of the above
Answer: D) All of the above
Explanation: uname -r shows the kernel release, uname -a shows all system
information, and /proc/version also displays kernel version information.
4. Which directory contains device files (e.g., /dev/sda, /dev/tty)?
• A) /dev
• B) /proc
• C) /sys
• D) /etc
Answer: A) /dev
Explanation: /dev contains device special files that represent hardware components. For
example, /dev/sda represents the first SATA hard drive.
5. Which directory is a virtual filesystem providing process and system
information in real time?
• A) /proc
• B) /run
• C) /dev/shm
• D) /usr
Answer: A) /proc
Explanation: /proc is a virtual filesystem (procfs) that contains runtime system
information, including CPU, memory, and process data. It is created in memory at
system boot.
6. Which command displays CPU information?
• A) cat /proc/cpuinfo
• B) lscpu
• C) nproc
, • D) All of the above
Answer: D) All of the above
Explanation: cat /proc/cpuinfo displays detailed CPU information from the proc
filesystem, lscpu formats it in a readable table, and nproc shows the number of
processing cores.
7. Which command displays memory information?
• A) free -h
• B) cat /proc/meminfo
• C) vmstat
• D) All of the above
Answer: D) All of the above
Explanation: free and vmstat display formatted memory information from
/proc/meminfo. All three commands provide memory usage data.
8. Which directory stores kernel modules?
• A) /lib/modules/$(uname -r)
• B) /usr/src/linux
• C) /boot/modules
• D) /etc/modules
Answer: A) /lib/modules/$(uname -r)
Explanation: Kernel modules are stored in /lib/modules/kernel-version/. The uname -r
command returns the current kernel version, allowing modules to be version-specific.
9. What is the default file system type used in modern Linux installations?
• A) ext3
• B) ext4
• C) FAT32
• D) NTFS
Answer: B) ext4
Explanation: ext4 is the default and most modern file system type used in Linux
installations, offering robustness and improved performance over ext3.
10. Which system call is used to create a new process in Linux?
• A) fork()
, • B) exec()
• C) clone()
• D) wait()
Answer: A) fork()
Explanation: The fork() system call creates a new process by duplicating the calling
process. The new process (child) is an exact copy of the parent process, except for the
PID.
Section 2: File Systems & Directory Management
11. What is the purpose of the /etc/fstab file in Linux?
• A) To configure network settings
• B) To store user passwords
• C) To automate filesystem mounting
• D) To schedule cron jobs
Answer: C) To automate filesystem mounting
Explanation: The /etc/fstab file defines how disk partitions, block devices, or remote
filesystems should be mounted into the filesystem.
12. Which directory contains system-wide configuration files in Linux?
• A) /bin
• B) /home
• C) /etc
• D) /usr
Answer: C) /etc
Explanation: The /etc directory in Linux contains system-wide configuration files and
scripts.
13. Which directory contains information, documentation, and example
configuration files for installed software packages?
• A) /usr/share/doc/
• B) /etc/defaults/
• C) /var/info/
• D) /doc/