LPI 010-160 Practice Test 33
Question 320
A student compares Android phones with GNU/Linux desktop distributions. After a correction to the Android Linux kernel relationship workflow, which observation MOST directly confirms success?
- The selected system's package-management commands and repositories correspond to its SUSE variant.
- The selected release has an explicit extended maintenance window rather than only a short interim lifecycle.
- The architecture identifies a Linux kernel underneath Android system services.
- Documents open for editing in the relevant office applications.
Explanation
Correct Answer
C:The architecture identifies a Linux kernel underneath Android system services. This is the direct observable outcome of Android Linux kernel relationship. Kernel lineage does not require Android to use a conventional GNU desktop userspace.
Incorrect Answers
A:The selected system's package-management commands and repositories correspond to its SUSE variant. Although that can be useful for SUSE and openSUSE distributions, it does not establish the needed Android Linux kernel relationship result. The task requires that the architecture identifies a Linux kernel underneath Android system services.
B:The selected release has an explicit extended maintenance window rather than only a short interim lifecycle. Although that can be useful for Ubuntu long-term support releases, it does not establish the needed Android Linux kernel relationship result. The task requires that the architecture identifies a Linux kernel underneath Android system services.
D:Documents open for editing in the relevant office applications. Although that can be useful for LibreOffice document suite, it does not establish the needed Android Linux kernel relationship result. The task requires that the architecture identifies a Linux kernel underneath Android system services.
Question 321
A beginner needs a simple test of ICMP reachability to a known host. After a correction to the ping reachability testing workflow, which observation MOST directly confirms success?
- The device list distinguishes the whole block device from numbered partitions.
- The local host resolves the specified name to the configured IP.
- Echo replies and round-trip timing appear if supported by the network.
- The output lists addresses assigned to the specified network interface.
Explanation
Correct Answer
C:Echo replies and round-trip timing appear if supported by the network. This is the direct observable outcome of ping reachability testing. ping tests ICMP reachability; lack of replies alone does not prove every network service is down.
Incorrect Answers
A:The device list distinguishes the whole block device from numbered partitions. Although that can be useful for Linux block devices and partitions, it does not establish the needed ping reachability testing result. The task requires that echo replies and round-trip timing appear if supported by the network.
B:The local host resolves the specified name to the configured IP. Although that can be useful for /etc/hosts local name entries, it does not establish the needed ping reachability testing result. The task requires that echo replies and round-trip timing appear if supported by the network.
D:The output lists addresses assigned to the specified network interface. Although that can be useful for ip addr show interface addresses, it does not establish the needed ping reachability testing result. The task requires that echo replies and round-trip timing appear if supported by the network.
Question 322
A workstation user wants to read and send email using a desktop open-source application. After a correction to the Thunderbird email client workflow, which observation MOST directly confirms success?
- The client synchronizes incoming mail and sends mail through configured servers.
- An HTTP request returns the configured page from the server.
- The guest boots separately while the host operating system remains intact.
- Installed packages and dependency versions are tracked by the repository tools.
Explanation
Correct Answer
A:The client synchronizes incoming mail and sends mail through configured servers. This is the direct observable outcome of Thunderbird email client. Thunderbird is an email client whereas a mail server handles delivery and mailbox hosting.
Incorrect Answers
B:An HTTP request returns the configured page from the server. Although that can be useful for Web servers Apache and NGINX, it does not establish the needed Thunderbird email client result. The task requires that the client synchronizes incoming mail and sends mail through configured servers.
C:The guest boots separately while the host operating system remains intact. Although that can be useful for Local virtualization and guest operating systems, it does not establish the needed Thunderbird email client result. The task requires that the client synchronizes incoming mail and sends mail through configured servers.
D:Installed packages and dependency versions are tracked by the repository tools. Although that can be useful for Native distribution package repositories, it does not establish the needed Thunderbird email client result. The task requires that the client synchronizes incoming mail and sends mail through configured servers.
Question 323
A valid user is missing access to files owned by the shared project group. After a correction to the Supplementary group membership workflow, which observation MOST directly confirms success?
- Deletion is allowed or denied according to directory-level rights and protection.
- `id username` reflects both prior supplementary groups and the new project group.
- Newly created homes include the intended template files when supported by useradd configuration.
- The group appears in the group database with an available GID.
Explanation
Correct Answer
B:`id username` reflects both prior supplementary groups and the new project group. This is the direct observable outcome of Supplementary group membership. The `-a` append behavior prevents replacing the entire supplementary group list when using usermod -G.
Incorrect Answers
A:Deletion is allowed or denied according to directory-level rights and protection. Although that can be useful for Directory write and delete rights, it does not establish the needed Supplementary group membership result. The task requires that `id username` reflects both prior supplementary groups and the new project group.
C:Newly created homes include the intended template files when supported by useradd configuration. Although that can be useful for /etc/skel new home templates, it does not establish the needed Supplementary group membership result. The task requires that `id username` reflects both prior supplementary groups and the new project group.
D:The group appears in the group database with an available GID. Although that can be useful for groupadd new group, it does not establish the needed Supplementary group membership result. The task requires that `id username` reflects both prior supplementary groups and the new project group.
Question 324
A directory named `old-empty` has no children and needs deletion. After a correction to the rmdir versus nonempty directories workflow, which observation MOST directly confirms success?
- Each directory component exists after execution without separate manual creation.
- The empty directory is removed while nonempty directories are rejected.
- The printed output reflects the variable's stored value.
- The file exists or its timestamp changes without adding text contents.
Explanation
Correct Answer
B:The empty directory is removed while nonempty directories are rejected. This is the direct observable outcome of rmdir versus nonempty directories. `rmdir` ordinarily removes empty directories, offering a narrower operation than recursive removal.
Incorrect Answers
A:Each directory component exists after execution without separate manual creation. Although that can be useful for mkdir -p nested directories, it does not establish the needed rmdir versus nonempty directories result. The task requires that the empty directory is removed while nonempty directories are rejected.
C:The printed output reflects the variable's stored value. Although that can be useful for echo and shell variables, it does not establish the needed rmdir versus nonempty directories result. The task requires that the empty directory is removed while nonempty directories are rejected.
D:The file exists or its timestamp changes without adding text contents. Although that can be useful for touch empty files and timestamps, it does not establish the needed rmdir versus nonempty directories result. The task requires that the empty directory is removed while nonempty directories are rejected.
Question 325
A script is readable but not marked executable, and a user wants to run it explicitly. After a correction to the Script invocation via bash workflow, which observation MOST directly confirms success?
- The script uses the value supplied as its first command-line argument.
- The variable contains the command's stdout value.
- The resulting archive extracts with `tar -xzf` and contains the original hierarchy.
- The Bash process executes the script contents.
Explanation
Correct Answer
D:The Bash process executes the script contents. This is the direct observable outcome of Script invocation via bash. Explicit interpreter invocation does not require the script file's executable bit, only readable content.
Incorrect Answers
A:The script uses the value supplied as its first command-line argument. Although that can be useful for Positional command-line arguments, it does not establish the needed Script invocation via bash result. The task requires that the Bash process executes the script contents.
B:The variable contains the command's stdout value. Although that can be useful for Command substitution in scripts, it does not establish the needed Script invocation via bash result. The task requires that the Bash process executes the script contents.
C:The resulting archive extracts with `tar -xzf` and contains the original hierarchy. Although that can be useful for tar gzip combined compression, it does not establish the needed Script invocation via bash result. The task requires that the Bash process executes the script contents.
Question 326
A student sets `course=linux` in Bash and wants to print its value. After a correction to the echo and shell variables workflow, which observation MOST directly confirms success?
- Usage text and options print to the terminal.
- A numbered command list from the current shell history is displayed.
- The printed output reflects the variable's stored value.
- The result identifies a builtin, alias, keyword or executable as applicable.
Explanation
Correct Answer
C:The printed output reflects the variable's stored value. This is the direct observable outcome of echo and shell variables. Unquoted variable names in an echo command are literal text, while `$name` expands a shell parameter.
Incorrect Answers
A:Usage text and options print to the terminal. Although that can be useful for Command --help output, it does not establish the needed echo and shell variables result. The task requires that the printed output reflects the variable's stored value.
B:A numbered command list from the current shell history is displayed. Although that can be useful for Shell history recall, it does not establish the needed echo and shell variables result. The task requires that the printed output reflects the variable's stored value.
D:The result identifies a builtin, alias, keyword or executable as applicable. Although that can be useful for type and builtin identification, it does not establish the needed echo and shell variables result. The task requires that the printed output reflects the variable's stored value.
Question 327
A desktop user prefers point-and-click editing but must occasionally enter Linux commands. After a correction to the Graphical desktop versus command line workflow, which observation MOST directly confirms success?
- The intended earlier command appears in the interactive shell history.
- The expected web pages render in a browser with visible URL and connection information.
- The guest shows installed updates and administrative changes after maintenance.
- Commands execute in a shell session while graphical tools run through the desktop.
Explanation
Correct Answer
D:Commands execute in a shell session while graphical tools run through the desktop. This is the direct observable outcome of Graphical desktop versus command line. A terminal exposes a command-line interface, which can coexist with a graphical desktop.
Incorrect Answers
A:The intended earlier command appears in the interactive shell history. Although that can be useful for Terminal access and shell history, it does not establish the needed Graphical desktop versus command line result. The task requires that commands execute in a shell session while graphical tools run through the desktop.
B:Although that can be useful for Firefox web browsing, it does not establish the needed Graphical desktop versus command line result.
C:The guest shows installed updates and administrative changes after maintenance. Although that can be useful for Cloud virtual machine responsibilities, it does not establish the needed Graphical desktop versus command line result. The task requires that commands execute in a shell session while graphical tools run through the desktop.
Question 328
An administrator uses vi to edit a script on a minimal Linux system. After a correction to the vi insert mode and write quit workflow, which observation MOST directly confirms success?
- Lines with the term in different letter cases are selected.
- The edited file persists on disk after vi exits.
- Each matched filename is processed as its own argument.
- The caller can distinguish success and failure through the process exit status.
Explanation
Correct Answer
B:The edited file persists on disk after vi exits. This is the direct observable outcome of vi insert mode and write quit. vi separates command mode and insert mode, so editing and saving require mode-aware commands.
Incorrect Answers
A:Lines with the term in different letter cases are selected. Although that can be useful for grep -i ignore case, it does not establish the needed vi insert mode and write quit result. The task requires that the edited file persists on disk after vi exits.
C:Each matched filename is processed as its own argument. Although that can be useful for Loop over matching filenames, it does not establish the needed vi insert mode and write quit result. The task requires that the edited file persists on disk after vi exits.
D:The caller can distinguish success and failure through the process exit status. Although that can be useful for Exit code on script completion, it does not establish the needed vi insert mode and write quit result. The task requires that the edited file persists on disk after vi exits.
Question 329
An application stores short-lived scratch files and needs a conventional temporary area. After a correction to the /tmp and /var/tmp retention workflow, which observation MOST directly confirms success?
- The output distinguishes current users from previously recorded login sessions.
- Temporary data behaves according to the host's configured cleanup policy.
- Users can create their own files but cannot freely remove other users' entries under the sticky-bit rule.
- The link resolves to the target when the path is valid.
Explanation
Correct Answer
B:Temporary data behaves according to the host's configured cleanup policy. This is the direct observable outcome of /tmp and /var/tmp retention. Both are temporary-file locations, with cleanup lifetime dependent on system policy.
Incorrect Answers
A:The output distinguishes current users from previously recorded login sessions. Although that can be useful for who w and last login activity, it does not establish the needed /tmp and /var/tmp retention result. The task requires that temporary data behaves according to the host's configured cleanup policy.
C:Although that can be useful for Sticky bit shared directories, it does not establish the needed /tmp and /var/tmp retention result.
D:The link resolves to the target when the path is valid. Although that can be useful for Symbolic links with ln -s, it does not establish the needed /tmp and /var/tmp retention result. The task requires that temporary data behaves according to the host's configured cleanup policy.
Question 330
A script must create `reports/2026/nov` under the home directory when parent folders are absent. After a correction to the mkdir -p nested directories workflow, which observation MOST directly confirms success?
- The printed output reflects the variable's stored value.
- The destination includes the nested files while the original remains.
- Both the original and destination paths are present with copied data.
- Each directory component exists after execution without separate manual creation.
Explanation
Correct Answer
D:Each directory component exists after execution without separate manual creation. This is the direct observable outcome of mkdir -p nested directories. `mkdir -p` creates intermediate directories as needed.
Incorrect Answers
A:The printed output reflects the variable's stored value. Although that can be useful for echo and shell variables, it does not establish the needed mkdir -p nested directories result. The task requires that each directory component exists after execution without separate manual creation.
B:The destination includes the nested files while the original remains. Although that can be useful for cp -r directory trees, it does not establish the needed mkdir -p nested directories result. The task requires that each directory component exists after execution without separate manual creation.
C:Both the original and destination paths are present with copied data. Although that can be useful for cp regular file, it does not establish the needed mkdir -p nested directories result. The task requires that each directory component exists after execution without separate manual creation.