Docsity

DCOM 142 Linux Final Study 2026.pdf, Exams of Computer Applications

Toggle sidebar
bg1
DCOM 142 Linux Final Study 2026/2027 | Original Practice Questions, Answers and Detailed Rationales | Linux Essentials, Command-Line Administration, Filesystem Management, User and Group Administration, Permissions, Shell Scripting,Process Management, Networking, System Security and Troubleshooting | University-Level Exam Preparation GuideSection 1: Open Source and Linux Foundations (Questions 1–10)Question 1Which characteristic most directly distinguishes open source software from proprietary software?A. The source code is available for inspection, modification, and redistribution under a license.B. The software is always free of charge.C. The software can run only on Linux kernels.D. The software is developed exclusively by volunteers.Correct Answer: A
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

Partial preview of the text

Download DCOM 142 Linux Final Study 2026.pdf and more Exams Computer Applications in PDF only on Docsity!

DCOM 142 Linux Final Study 2026/2027 | Original

Practice Questions, Answers and Detailed

Rationales | Linux Essentials, Command-Line

Administration, Filesystem Management, User and

Group Administration, Permissions, Shell Scripting,

Process Management, Networking, System

Security and Troubleshooting | University-Level

Exam Preparation Guide

Section 1: Open Source and Linux Foundations (Questions 1–10)

Question 1

Which characteristic most directly distinguishes open source software from proprietary software?

A. The source code is available for inspection, modification, and redistribution under a license.

B. The software is always free of charge.

C. The software can run only on Linux kernels.

D. The software is developed exclusively by volunteers.

Correct Answer: A

Explanation: Open source licensing grants access to source code and permits modification and redistribution; zero cost is not required.

Question 2

A university wants to deploy a Linux distribution that provides long-term security updates for several years. Which distribution model best meets this requirement?

A. A rolling-release distribution updated continuously

B. A distribution with a published LTS release cycle

C. A minimal embedded distribution

D. A live-only distribution that never installs to disk

Correct Answer: B

Explanation: LTS releases are maintained with security and bug fixes for an extended support period, suitable for stable institutional deployment.

Question 3

What is the primary role of the Linux kernel?

A. Provide a graphical desktop environment

B. Manage hardware resources and provide core services to processes

C. Compile application source code automatically

D. Replace the need for a package manager

Correct Answer: C

Explanation: The kernel abstracts hardware, schedules processes, manages memory, and exposes system calls; desktops and package managers are separate components.

Question 4

C. Providing a full desktop for software development

D. Hosting hundreds of virtual machines

Correct Answer: C

Explanation: Embedded Linux is commonly used in resource-constrained devices such as routers and appliances, not large servers or desktops.

Question 7

A Linux distribution includes the kernel, libraries, utilities, package manager, and installer. Which component is responsible for resolving software dependencies during installation?

A. The bootloader

B. The kernel scheduler

C. The package manager

D. The init system

Correct Answer: D

Explanation: Package managers track metadata and dependencies; bootloaders start the kernel, and init manages services after boot.

Question 8

Which licensing model allows source code to be viewed but may restrict commercial redistribution?

A. A permissive open source license

B. A copyleft open source license

C. A proprietary or source-available license

D. A public domain dedication

Correct Answer: A

Explanation: Source-available and proprietary licenses can permit viewing while restricting redistribution or commercial use; open source licenses do not impose such restrictions.

Question 9

A data center selects a distribution known for enterprise support, SELinux, and RPM-based packaging. Which family does this describe?

A. Debian family

B. Arch family

C. Red Hat family

D. Slackware family

Correct Answer: C

Explanation: Red Hat–family distributions such as RHEL, CentOS Stream, and Fedora use RPM and often include SELinux.

Question 10

What is the most accurate description of a Linux distribution?

A. A single application bundled with the kernel

B. A kernel plus user-space software, package management, and installation tooling

C. A proprietary operating system that resembles Linux

D. A programming language used to write the kernel

Correct Answer: D

Explanation: A distribution integrates the kernel with utilities, libraries, package management, and installation or configuration tools.

Which file contains configured repository locations on many Debian-based systems?

A. /etc/passwd

B. /etc/fstab

C. /etc/apt/sources.list

D. /etc/hosts

Correct Answer: C

Explanation: APT reads repository definitions from /etc/apt/sources.list and files under /etc/apt/sources.list.d/.

Question 14

What is a primary advantage of using a package manager instead of manually compiling software from source?

A. It guarantees the software has no bugs.

B. It tracks dependencies and supports clean upgrades and removal.

C. It eliminates the need for administrative privileges.

D. It prevents all configuration changes.

Correct Answer: D

Explanation: Package managers maintain metadata, resolve dependencies, and record installed files, simplifying upgrades and removal.

Question 15

A user runs sudo dnf upgrade on a Fedora system. What is the purpose of this command?

A. Install a single package without dependencies

B. Update installed packages to newer available versions

C. Remove all third-party repositories

D. Rebuild the kernel from source

Correct Answer: B

Explanation: dnf upgrade refreshes and applies available updates for installed packages on Fedora and related systems.

Question 16

Which command lists installed packages on a Debian-based system?

A. rpm -qa

B. pacman -Q

C. dpkg -l

D. zypper se

Correct Answer: C

Explanation: dpkg -l lists installed Debian packages; rpm -qa is for RPM systems, and pacman -Q is for Arch.

Question 17

A package installation fails because another package depends on a library that is not available. What is the best first step?

A. Delete the package database.

B. Enable the required repository and refresh metadata.

C. Disable all repositories and retry.

D. Convert the system to a different distribution.

Correct Answer: A

A server administrator wants to install a downloaded .rpm file directly without using a repository. Which command is appropriate?

A. apt install ./package.rpm

B. dpkg -i package.rpm

C. rpm -ivh package.rpm

D. pacman -U package.rpm

Correct Answer: D

Explanation: rpm -ivh installs a local RPM package; dependency resolution may still require repository tools such as dnf.

Section 3: Command Line and Help Systems (Questions 21–30)

Question 21

Which command displays the manual page for the grep command?

A. man grep

B. grep --man

C. help grep

D. info grep --manual

Correct Answer: A

Explanation: man grep opens the manual page; --help gives a brief summary, and help is primarily for shell built-ins.

Question 22

A user needs a brief summary of options for a command without opening the full manual. Which approach is best?

A. man -k command

B. command --help

C. whatis command

D. locate command

Correct Answer: B

Explanation: Most GNU utilities support --help, which prints a concise usage summary and common options.

Question 23

Which command searches manual page descriptions for a keyword?

A. man -f keyword

B. grep keyword /var/log/syslog

C. apropos keyword

D. find keyword

Correct Answer: C

Explanation: apropos searches manual page names and descriptions, helping users locate commands related to a topic.

Question 24

What does the type shell built-in report?

A. The file type of a given file

B. How the shell will interpret a command name

C. The hardware type of the CPU

D. The package repository type

Question 27

Which section of the manual typically documents system administration commands?

A. Section 1

B. Section 5

C. Section 8

D. Section 3

Correct Answer: D

Explanation: Manual section 8 contains system administration and privileged commands; section 1 is user commands.

Question 28

A user wants to know the path of the executable that will run when typing ls. Which command is most direct?

A. which ls

B. man ls

C. ls --path

D. find ls

Correct Answer: A

Explanation: which searches the current PATH and prints the executable that would run for a command name.

Question 29

Which quoting method prevents the shell from interpreting a variable and preserves literal text?

A. Double quotes

B. Single quotes

C. Backticks

D. Parentheses

Correct Answer: B

Explanation: Single quotes preserve every character literally; double quotes still allow variable and command substitution.

Question 30

A filename contains a space. Which command correctly displays its contents?

A. cat my file.txt

B. cat "my file.txt"

C. cat my\ file.txt

D. Both B and C are correct.

Correct Answer: C

Explanation: Quoting or escaping the space prevents the shell from treating it as an argument separator; multiple valid methods exist.

Section 4: Filesystem Hierarchy and Navigation (Questions 31–40)

Question 31

Which directory is intended for system configuration files?

A. /etc

B. /var

C. /home

D. /tmp

Question 34

Which command shows the current working directory?

A. pwd

B. cd

C. ls

D. dir

Correct Answer: D

Explanation: pwd prints the absolute path of the current working directory; ls lists directory contents.

Question 35

Which directory typically contains device files?

A. /dev

B. /proc

C. /sys

D. /bin

Correct Answer: A

Explanation: /dev contains device nodes; /proc and /sys expose kernel and hardware information as virtual filesystems.

Question 36

A user runs ls -a in a home directory. What additional entries appear compared with ls?

A. Only directories

B. Hidden files beginning with a dot

C. Only executable files

D. Only files owned by root

Correct Answer: B

Explanation: -a includes hidden entries such as .bashrc and .profile, which are normally omitted.

Question 37

Which directory is conventionally used for temporary files that may be cleared at reboot?

A. /opt

B. /srv

C. /tmp

D. /usr/local

Correct Answer: C

Explanation: /tmp is intended for temporary data and may be cleaned automatically or at boot.

Question 38

What does cd ~ accomplish?

A. Changes to the root directory

B. Changes to the previous directory

C. Changes to the home directory of the current user

D. Changes to the home directory of root

Section 5: File Management (Questions 41–50)

Question 41

Which command creates an empty file or updates a file’s timestamp?

A. touch

B. mkdir

C. create

D. file

Correct Answer: C

Explanation: touch creates an empty file if it does not exist and updates access and modification times if it does.

Question 42

A user needs to create nested directories in one command. Which option is required with mkdir?

A. -v

B. -p

C. -r

D. -m

Correct Answer: D

Explanation: mkdir -p creates parent directories as needed and does not fail if the target already exists.

Question 43

Which command copies a directory and all of its contents recursively?

A. cp -r source destination

B. cp source destination

C. mv -r source destination

D. copy -R source destination

Correct Answer: A

Explanation: cp -r recursively copies directories; plain cp copies only files unless recursion is requested.

Question 44

What is the effect of mv report.txt archive/report.txt when archive exists?

A. Copies the file and leaves the original

B. Renames or moves the file into the archive directory

C. Deletes the archive directory

D. Creates a symbolic link

Correct Answer: B

Explanation: mv moves or renames; if the destination is an existing directory and a filename is provided, the file is moved into it.

Question 45

Which command removes an empty directory?

A. rm -r directory

B. rmdir directory

C. del directory

D. unlink directory