WGU D281 LINUX FOUNDATIONS: 300
PRACTICE EXAM QUESTIONS WITH
ANSWERS AND DETAILED RATIONALES
GRADED A+ | GUARANTEED PASS
SECTION 1: LINUX SYSTEM ARCHITECTURE & KERNEL
Question 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
Rationale: 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 .
Question 2
Which of the following is a function of the Linux kernel? (Choose all that apply)
A) Allocating memory for use by programs
B) Allocating CPU time for use by programs
C) Controlling access to hard disks
D) Enabling programs to use the network
Answer: A, B, C, D
Rationale: The kernel manages the memory, CPU, and devices for programs running
on a computer system, so all options are correct .
Question 3
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)
Rationale: 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 .
Question 4
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
Rationale: uname -r shows the kernel release, uname -a shows all system information,
and /proc/version also displays kernel version information. All three commands
provide the kernel version .
Question 5
Which directory contains device files (e.g., /dev/sda, /dev/tty)?
A) /dev
B) /proc
C) /sys
D) /etc
Answer: A) /dev
Rationale: /dev contains device special files that represent hardware components.
For example, /dev/sda represents the first SATA hard drive. These files provide the
interface for programs to communicate with hardware .
Question 6
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
Rationale: /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 .
Question 7
Which command displays CPU information?
A) cat /proc/cpuinfo
B) lscpu
C) nproc
D) All of the above
Answer: D) All of the above
Rationale: 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 .
Question 8
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
Rationale: free and vmstat display formatted memory information
from /proc/meminfo. All three commands provide memory usage data in different
formats .
Question 9
Which system call is used to create a new process in Linux?
A) fork()
B) exec()
C) clone()
D) wait()
Answer: A) fork()
Rationale: 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 .
Question 10
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)
Rationale: Kernel modules are stored in /lib/modules/kernel-version/. The uname -
r command returns the current kernel version, allowing modules to be version-
specific .
SECTION 2: FILE SYSTEMS & COMMAND-LINE
NAVIGATION
Question 11
What is the default file system type used in Linux installations?
A) ext3
B) ext4
C) FAT32
D) NTFS
Answer: B) ext4
Rationale: ext4 is the default and most modern file system type used in Linux
installations, offering robustness and improved performance over its predecessor,
ext3 .
Question 12
Which command displays the current working directory's absolute path?
A) ls
B) cd
C) pwd
D) dir
Answer: C) pwd
Rationale: The pwd (print working directory) command outputs the full, absolute path
of the current directory .
Question 13
Your current present working directory is /home/jason/documents/. You just
PRACTICE EXAM QUESTIONS WITH
ANSWERS AND DETAILED RATIONALES
GRADED A+ | GUARANTEED PASS
SECTION 1: LINUX SYSTEM ARCHITECTURE & KERNEL
Question 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
Rationale: 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 .
Question 2
Which of the following is a function of the Linux kernel? (Choose all that apply)
A) Allocating memory for use by programs
B) Allocating CPU time for use by programs
C) Controlling access to hard disks
D) Enabling programs to use the network
Answer: A, B, C, D
Rationale: The kernel manages the memory, CPU, and devices for programs running
on a computer system, so all options are correct .
Question 3
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)
Rationale: 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 .
Question 4
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
Rationale: uname -r shows the kernel release, uname -a shows all system information,
and /proc/version also displays kernel version information. All three commands
provide the kernel version .
Question 5
Which directory contains device files (e.g., /dev/sda, /dev/tty)?
A) /dev
B) /proc
C) /sys
D) /etc
Answer: A) /dev
Rationale: /dev contains device special files that represent hardware components.
For example, /dev/sda represents the first SATA hard drive. These files provide the
interface for programs to communicate with hardware .
Question 6
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
Rationale: /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 .
Question 7
Which command displays CPU information?
A) cat /proc/cpuinfo
B) lscpu
C) nproc
D) All of the above
Answer: D) All of the above
Rationale: 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 .
Question 8
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
Rationale: free and vmstat display formatted memory information
from /proc/meminfo. All three commands provide memory usage data in different
formats .
Question 9
Which system call is used to create a new process in Linux?
A) fork()
B) exec()
C) clone()
D) wait()
Answer: A) fork()
Rationale: 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 .
Question 10
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)
Rationale: Kernel modules are stored in /lib/modules/kernel-version/. The uname -
r command returns the current kernel version, allowing modules to be version-
specific .
SECTION 2: FILE SYSTEMS & COMMAND-LINE
NAVIGATION
Question 11
What is the default file system type used in Linux installations?
A) ext3
B) ext4
C) FAT32
D) NTFS
Answer: B) ext4
Rationale: ext4 is the default and most modern file system type used in Linux
installations, offering robustness and improved performance over its predecessor,
ext3 .
Question 12
Which command displays the current working directory's absolute path?
A) ls
B) cd
C) pwd
D) dir
Answer: C) pwd
Rationale: The pwd (print working directory) command outputs the full, absolute path
of the current directory .
Question 13
Your current present working directory is /home/jason/documents/. You just