Docsity

WGU D281 Linux Foundations 2026.pdf, Exams of Computer Science

Toggle sidebar
bg1
WGU D281 Linux Foundations Exam –
Practice Questions with Answers &
Rationales
This comprehensive practice set is designed for students
preparing for the WGU D281 Linux Foundations Objective
Assessment. The questions are aligned with the exam
domains: Linux System Architecture, Installation & Package
Management, GNU & Unix Commands, Devices, Filesystems
& FHS, Shells and Scripting, User Interfaces & Desktops, and
Administrative Tasks . Each question includes a detailed
rationale explaining the correct answer.
SECTION I: LINUX SYSTEM ARCHITECTURE (Questions
1-35)
Q1. Which component of the Linux operating system
directly manages hardware resources?
A) Shell
B) Kernel
C) Init system
D) User space
Correct Answer: B
pf3
pf4
pf5
pf8
pf9
pfa
pfd
pfe
pff
pf12
pf13
pf14
pf15
pf16
pf17
pf18
pf19
pf1a
pf1b
pf1c
pf1d
pf1e
pf1f
pf20
pf21
pf22
pf23
pf24
pf25
pf26
pf27
pf28
pf29
pf2a
pf2b
pf2c
pf2d
pf2e
pf2f
pf30
pf31
pf32
pf33
pf34
pf35
pf36
pf37
pf38
pf39
pf3a
pf3b
pf3c
pf3d
pf3e
pf3f
pf40
pf41
pf42
pf43
pf44
pf45
pf46
pf47
pf48
pf49
pf4a
pf4b
pf4c
pf4d
pf4e
pf4f
pf50
pf51
pf52

Partial preview of the text

Download WGU D281 Linux Foundations 2026.pdf and more Exams Computer Science in PDF only on Docsity!

WGU D281 Linux Foundations Exam –

Practice Questions with Answers &

Rationales

This comprehensive practice set is designed for students preparing for the WGU D281 Linux Foundations Objective Assessment. The questions are aligned with the exam domains: Linux System Architecture, Installation & Package Management, GNU & Unix Commands, Devices, Filesystems & FHS, Shells and Scripting, User Interfaces & Desktops, and Administrative Tasks. Each question includes a detailed rationale explaining the correct answer. SECTION I: LINUX SYSTEM ARCHITECTURE (Questions 1 - 35) Q1. Which component of the Linux operating system directly manages hardware resources? A) Shell B) Kernel C) Init system D) User space Correct Answer: B

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. Q2. 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 Correct Answer: A, B, C, D Rationale: The kernel manages the memory, CPU, and devices for programs running on a computer system. All of these are core kernel functions. Q3. 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

Q5. Which directory contains device files (e.g., /dev/sda, /dev/tty)? A) /dev B) /proc C) /sys D) /etc Correct Answer: A Rationale: /dev contains device special files that represent hardware components. For example, /dev/sda represents the first SATA hard drive. Q6. Which directory is a virtual filesystem providing process and system information in real time? A) /proc B) /run C) /dev/shm D) /usr Correct Answer: A 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.

Q7. Which command displays CPU information? A) cat /proc/cpuinfo B) lscpu C) nproc D) All of the above Correct Answer: D 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. Q8. Which command displays memory information? A) free - h B) cat /proc/meminfo C) vmstat D) All of the above Correct Answer: D

Correct Answer: A 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. Q11. Which command loads a kernel module? A) modprobe module_name B) insmod /path/to/module.ko C) modprobe - r (remove) D) All of the above Correct Answer: D Rationale: modprobe handles dependencies and is the preferred method; insmod loads a single module without resolving dependencies. modprobe - r removes modules. Q12. Which command lists currently loaded kernel modules? A) lsmod B) cat /proc/modules

C) modinfo module D) Both A and B Correct Answer: D Rationale: lsmod formats /proc/modules into a readable table. Both commands display loaded kernel modules. Q13. Which signal cannot be caught or ignored by a process? A) SIGKILL (9) and SIGSTOP (19) B) SIGTERM (15) C) SIGHUP D) SIGINT Correct Answer: A Rationale: SIGKILL and SIGSTOP cannot be caught, blocked, or ignored by processes. SIGTERM can be caught and is the default signal sent by kill_._ Q14. Which command sends a SIGTERM to a process?

Q16. Which of the following is an example of an embedded Linux OS? A) Android B) Red Hat Linux C) Fedora D) Linux Mint Correct Answer: A Rationale: Android is built on the Linux kernel and is designed for mobile and embedded devices. Red Hat, Fedora, and Linux Mint are desktop/server distributions. Q17. Which command displays the current runlevel/target? A) systemctl get-default B) runlevel (legacy) C) who - r D) All of the above Correct Answer: D Rationale: systemctl get-default shows default target (e.g., graphical.target, multi-user.target). runlevel and who

  • r are legacy ways to view runlevel information.

Q18. What is the purpose of the GNU project in a Linux system? A) The Linux kernel itself B) Open-source tools and utilities that are equivalents to UNIX commands C) A proprietary office suite D) Hardware drivers for the system Correct Answer: B Rationale: The GNU project provides free and open-source software that mimics traditional UNIX commands. These core tools, combined with the Linux kernel, create a fully functional operating system. Q19. Which file defines persistent mount points? A) /etc/fstab B) /etc/mtab C) /proc/mounts D) /etc/mounts Correct Answer: A

C) /usr/local/systemd/ D) /run/systemd/system/ Correct Answer: B Rationale: Package-provided systemd unit files are in /lib/systemd/system/ (Debian/Ubuntu) or /usr/lib/systemd/system/ (RHEL). Custom units go in /etc/systemd/system/ and override package-provided ones. SECTION II: LINUX INSTALLATION & PACKAGE MANAGEMENT (Questions 22-35) Q22. Which of the following Linux distributions is derived from Red Hat Enterprise Linux source code? A) Ubuntu Linux LTS B) Raspbian C) CentOS D) openSUSE Correct Answer: C Rationale: CentOS is derived from RHEL source code, making it very similar in administration and usage to RHEL.

Q23. What is a Linux distribution? A) The Linux file system as seen from the root account B) A bundling of the Linux kernel, system utilities, and other software C) The set of rules governing distribution of Linux kernel source code D) An operating system based on Linux but incompatible with the regular Linux kernel Correct Answer: B Rationale: A Linux distribution is a complete operating system package that includes the Linux kernel, system utilities, libraries, and application software. Q24. Which package manager is used on Debian-based distributions? A) apt B) yum C) dnf D) zypper Correct Answer: A

C) apt-cache search D) dnf find Correct Answer: C Rationale: apt-cache search allows you to query the package database. apt-get is for installing/updating, but apt-cache is specifically for searching. Q27. A new server needs to be installed to host services for several years and should receive important security updates. Which distributions meet these requirements? (Choose two.) A) Ubuntu Linux LTS B) Fedora Linux C) Debian GNU/Linux Unstable D) Ubuntu Linux non-LTS E) Red Hat Enterprise Linux Correct Answer: A and E Rationale: LTS (Long-Term Support) releases and RHEL provide extended support cycles and security updates, making them suitable for long-term server deployments.

Q28. Which command installs an RPM package on a Red Hat system? A) rpm - ivh B) dpkg - i C) apt-get install D) dnf - i Correct Answer: A Rationale: rpm - ivh installs a local RPM package file. dnf install installs from repositories. The - i flag is for install, - v for verbose, - h for hash progress. Q29. What does the command apt-get update do? A) Updates the package index (list of available packages) B) Upgrades installed packages C) Installs a new package D) Removes a package Correct Answer: A Rationale: apt-get update refreshes the package index from repositories. apt-get upgrade upgrades installed packages. apt-get install installs new packages.

Rationale: ext4 is the default and most modern filesystem type used in Linux installations, offering robustness and improved performance over its predecessor, ext. Q32. What is a package manager's primary function? A) To provide a graphical desktop environment B) To manage the system's hardware and CPU C) To add, remove, and update software after the initial installation D) To compile the Linux kernel Correct Answer: C Rationale: A package manager handles the installation, removal, and updating of applications and libraries. SECTION III: GNU & UNIX COMMANDS (Questions 33- 75) Q33. Which command displays disk usage of mounted filesystems in human-readable format? A) df - h B) du - sh

C) lsblk D) fdisk - l Correct Answer: A Rationale: df (disk free) shows filesystem usage; - h for human-readable format. du shows directory usage. Q34. Which command checks disk usage of the current directory recursively? A) df - h B) du - sh C) lsblk D) fdisk - l Correct Answer: B Rationale: du (disk usage) with - sh shows the total size of the current directory. - s for summary, - h for human- readable. Q35. Which command displays disk partition tables?