Docsity

Cambridge Certified Linux Associate Exam, Exams of Technology

Toggle sidebar
bg1
Cambridge Certified Linux Associate Practice Exam
Question 1: What is one primary benefit of Linux being open source?
Answer Options:
A) It requires expensive licenses.
B) Its source code is publicly available for review and modification.
C) It can only be used on high-end hardware.
D) It limits user customization.
Correct Answer: B
Explanation: Linux’s open-source nature means that anyone can inspect, modify, and enhance its source
code, which promotes transparency and customization.
Question 2: Which license is most commonly associated with Linux distributions?
Answer Options:
A) MIT License
B) Apache License
C) GNU General Public License (GPL)
D) Proprietary License
Correct Answer: C
Explanation: The GNU General Public License (GPL) is widely used by Linux distributions, ensuring the
freedom to run, study, share, and modify the software.
Question 3: In Linux history, which operating system served as a major influence on its development?
Answer Options:
A) MS-DOS
B) Unix
C) Windows
D) OS/2
Correct Answer: B
Explanation: Unix served as a major influence on Linux, providing foundational concepts and design
principles that Linux adopted.
Question 4: Which of the following is a key benefit of Linux in terms of security?
Answer Options:
A) It has a closed development process.
B) Its community quickly identifies and patches vulnerabilities.
C) It only runs on secure hardware.
D) It requires no updates.
Correct Answer: B
Explanation: The collaborative nature of Linux development allows the community to rapidly identify,
report, and patch security vulnerabilities.
Question 5: How does the Linux kernel primarily interact with hardware?
Answer Options:
A) By using high-level programming languages only.
B) Through direct hardware manipulation via system calls and drivers.
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

Partial preview of the text

Download Cambridge Certified Linux Associate Exam and more Exams Technology in PDF only on Docsity!

Cambridge Certified Linux Associate Practice Exam

Question 1: What is one primary benefit of Linux being open source? Answer Options: A) It requires expensive licenses. B) Its source code is publicly available for review and modification. C) It can only be used on high-end hardware. D) It limits user customization. Correct Answer: B Explanation: Linux’s open-source nature means that anyone can inspect, modify, and enhance its source code, which promotes transparency and customization. Question 2: Which license is most commonly associated with Linux distributions? Answer Options: A) MIT License B) Apache License C) GNU General Public License (GPL) D) Proprietary License Correct Answer: C Explanation: The GNU General Public License (GPL) is widely used by Linux distributions, ensuring the freedom to run, study, share, and modify the software. Question 3: In Linux history, which operating system served as a major influence on its development? Answer Options: A) MS-DOS B) Unix C) Windows D) OS/ Correct Answer: B Explanation: Unix served as a major influence on Linux, providing foundational concepts and design principles that Linux adopted. Question 4: Which of the following is a key benefit of Linux in terms of security? Answer Options: A) It has a closed development process. B) Its community quickly identifies and patches vulnerabilities. C) It only runs on secure hardware. D) It requires no updates. Correct Answer: B Explanation: The collaborative nature of Linux development allows the community to rapidly identify, report, and patch security vulnerabilities. Question 5: How does the Linux kernel primarily interact with hardware? Answer Options: A) By using high-level programming languages only. B) Through direct hardware manipulation via system calls and drivers.

C) Through an external proprietary interface. D) By running on a virtual machine. Correct Answer: B Explanation: The Linux kernel manages hardware through low-level system calls and device drivers that allow direct communication with hardware components. Question 6: Which Linux distribution is known for its strong community support and ease of use? Answer Options: A) Red Hat Enterprise Linux (RHEL) B) CentOS C) Ubuntu D) Fedora Correct Answer: C Explanation: Ubuntu is well known for its user-friendly interface, strong community support, and extensive documentation. Question 7: What distinguishes Linux from proprietary operating systems like Windows? Answer Options: A) Linux is closed source and costly. B) Linux offers full source code access and customization freedom. C) Linux cannot run on desktops. D) Linux has no community support. Correct Answer: B Explanation: Unlike proprietary systems, Linux’s open-source model provides full access to its source code, enabling extensive customization and collaborative improvements. Question 8: Which aspect of Linux contributes most to its robust security? Answer Options: A) Its closed source nature. B) Frequent community-driven security updates. C) Its inability to run third-party applications. D) The use of complex proprietary algorithms. Correct Answer: B Explanation: Linux benefits from frequent security updates provided by its active community, which promptly addresses vulnerabilities. Question 9: What is a major reason many businesses choose Linux for their servers? Answer Options: A) Its high licensing costs ensure premium support. B) Its stability, security, and low cost make it ideal for servers. C) It only supports outdated hardware. D) It has limited scalability options. Correct Answer: B Explanation: Linux is popular for servers due to its stability, robust security features, and cost- effectiveness, as it is usually free to use.

Correct Answer: B Explanation: USB drives are a convenient installation medium due to their portability, speed, and ease of use compared to traditional media. Question 15: What is the primary purpose of disk partitioning during a Linux installation? Answer Options: A) To permanently lock system files. B) To organize data and improve system performance. C) To prevent user modifications. D) To install multiple operating systems simultaneously. Correct Answer: B Explanation: Disk partitioning organizes the storage space, separates system and user data, and can improve overall system performance and management. Question 16: In Linux installations, what is the typical file system used for root partitions? Answer Options: A) NTFS B) FAT C) ext D) HFS+ Correct Answer: C Explanation: ext4 is the most common file system used for Linux root partitions due to its reliability and performance. Question 17: What is the role of package managers such as apt or yum in Linux installations? Answer Options: A) They are used only for disk management. B) They simplify software installation, updates, and dependency management. C) They are exclusively for network configuration. D) They serve as user authentication tools. Correct Answer: B Explanation: Package managers like apt and yum streamline the process of installing, updating, and managing software along with its dependencies. Question 18: What is one common post-installation task in Linux? Answer Options: A) Overclocking the CPU. B) Configuring network settings and user accounts. C) Installing a separate bootloader. D) Removing the Linux kernel. Correct Answer: B Explanation: After installing Linux, setting up user accounts, configuring network settings, and applying updates are typical post-installation tasks. Question 19: Which tool is used to resize disk partitions in Linux? Answer Options: A) ls

B) fdisk C) gparted D) ps Correct Answer: C Explanation: GParted is a graphical partition editor used to resize, create, and delete disk partitions safely. Question 20: What is the primary purpose of configuring software repositories during Linux installation? Answer Options: A) To restrict software choices. B) To ensure access to a wide range of software packages and updates. C) To block internet access. D) To convert file systems automatically. Correct Answer: B Explanation: Software repositories provide a centralized location for downloading and installing software packages, ensuring system stability and up-to-date software. Question 21: What is the Linux command used to change directories in the command line interface? Answer Options: A) ls B) cd C) mkdir D) pwd Correct Answer: B Explanation: The "cd" command is used to change the current working directory in the Linux command line. Question 22: Which command displays the current working directory in Linux? Answer Options: A) ls B) cd C) pwd D) mkdir Correct Answer: C Explanation: The "pwd" command (print working directory) displays the current directory path in Linux. Question 23: How do you list the contents of a directory in Linux? Answer Options: A) mkdir B) ls C) cd D) rm Correct Answer: B Explanation: The "ls" command is used to list the files and directories within the current directory.

Correct Answer: B Explanation: The "chown" command changes the owner of a file or directory in Linux. Question 29: What is the function of the "cat" command in Linux? Answer Options: A) To list files. B) To concatenate and display file content. C) To delete files. D) To create directories. Correct Answer: B Explanation: The "cat" command is used to display, combine, and create files by outputting their content to the terminal. Question 30: Which command allows you to view the first few lines of a file in Linux? Answer Options: A) tail B) head C) less D) grep Correct Answer: B Explanation: The "head" command displays the first ten lines (by default) of a file, useful for previewing its contents. Question 31: What does the "grep" command do in Linux? Answer Options: A) Copies files. B) Searches for text patterns within files. C) Displays disk usage. D) Creates new users. Correct Answer: B Explanation: "grep" searches files for lines that match a given regular expression or pattern, making it a powerful text search tool. Question 32: Which command is used to search for files by name in Linux? Answer Options: A) find B) ls C) cd D) grep Correct Answer: A Explanation: The "find" command searches for files and directories in a directory hierarchy based on various criteria, such as name or modification date. Question 33: What is the purpose of using pipelines (|) in Linux? Answer Options: A) To perform arithmetic operations. B) To chain commands by using the output of one command as input for another.

C) To start background processes. D) To disconnect network sessions. Correct Answer: B Explanation: Pipelines allow the output of one command to be used as input for another, enabling complex command chaining and data processing. Question 34: Which command redirection operator sends the output of a command to a file? Answer Options: A) < B) > C) | D) & Correct Answer: B Explanation: The ">" operator redirects the standard output of a command to a specified file, overwriting its content. Question 35: How does the "less" command improve file viewing in Linux compared to "cat"? Answer Options: A) It prints file content in reverse. B) It allows scrolling and navigation through large files. C) It deletes file content. D) It converts text files to binary. Correct Answer: B Explanation: The "less" command lets users scroll through and search within large files, making it more convenient than "cat" for long outputs. Question 36: What are environment variables in Linux? Answer Options: A) Hard-coded system settings. B) Dynamic values that affect the behavior of processes. C) Files stored in the root directory. D) Permanently fixed parameters that cannot be changed. Correct Answer: B Explanation: Environment variables are dynamic values that influence the behavior of processes and can be set by users or the system. Question 37: Which environment variable typically contains the list of directories to search for executable files? Answer Options: A) HOME B) USER C) PATH D) SHELL Correct Answer: C Explanation: The PATH variable lists directories that the shell searches for executable files, making it essential for running commands.

Correct Answer: B Explanation: "killall" terminates all processes with a specified name, making it useful for stopping multiple instances of an application. Question 43: How can you run a process in the background in Linux? Answer Options: A) Using the "fg" command. B) Appending an ampersand (&) at the end of the command. C) Using the "kill" command. D) Running the command inside a script. Correct Answer: B Explanation: Adding an ampersand (&) at the end of a command runs it as a background process, allowing continued use of the terminal. Question 44: Which command provides a real-time view of system resource usage? Answer Options: A) free B) df C) top D) mv Correct Answer: C Explanation: The "top" command offers a real-time display of system processes and resource usage, such as CPU and memory statistics. Question 45: What does the "free" command display in Linux? Answer Options: A) Network bandwidth usage. B) Disk space usage. C) Memory usage statistics. D) Process IDs. Correct Answer: C Explanation: The "free" command shows the amount of used and available memory in the system, including RAM and swap space. Question 46: Which command displays disk space usage for mounted filesystems? Answer Options: A) du B) df C) lsblk D) fdisk Correct Answer: B Explanation: The "df" command reports the disk space usage of mounted filesystems, making it useful for monitoring available storage. Question 47: What is the main function of the "awk" command in Linux? Answer Options: A) To manipulate text and data based on patterns.

B) To move files between directories. C) To compile source code. D) To change file permissions. Correct Answer: A Explanation: "awk" is a versatile programming language used for pattern scanning and processing, especially in text files. Question 48: Which command is particularly useful for performing search-and-replace operations on text files? Answer Options: A) sed B) grep C) sort D) uniq Correct Answer: A Explanation: The "sed" command is a stream editor that can perform search and replace operations on text within files. Question 49: How does the "cut" command assist in text processing? Answer Options: A) It sorts lines alphabetically. B) It extracts sections from each line of input. C) It combines multiple files. D) It deletes temporary files. Correct Answer: B Explanation: The "cut" command extracts specific columns or fields from lines of input, which is useful in data processing tasks. Question 50: What is the primary purpose of the "sort" command in Linux? Answer Options: A) To modify file permissions. B) To order lines of text in a specified sequence. C) To display file contents. D) To create directories. Correct Answer: B Explanation: The "sort" command arranges lines of text in alphabetical or numerical order, facilitating data organization. Question 51: Which command is used to remove duplicate lines from sorted text? Answer Options: A) uniq B) sort C) grep D) cut Correct Answer: A Explanation: The "uniq" command filters out repeated lines in a sorted file, leaving only unique entries.

Correct Answer: B Explanation: The /etc directory contains configuration files for the system and installed applications, making it critical for system management. Question 57: Which Linux command is used to view system boot messages? Answer Options: A) dmesg B) ps C) top D) grep Correct Answer: A Explanation: The "dmesg" command displays kernel and boot messages, helping diagnose hardware and driver issues during startup. Question 58: What role does GRUB play in the Linux boot process? Answer Options: A) It manages user permissions. B) It acts as the bootloader, allowing selection of different operating systems or kernel configurations. C) It handles software updates. D) It configures network settings. Correct Answer: B Explanation: GRUB is the bootloader that loads the Linux kernel and allows users to choose between multiple operating systems or kernel versions. Question 59: Which command is used to shut down a Linux system? Answer Options: A) shutdown B) start C) ls D) cp Correct Answer: A Explanation: The "shutdown" command safely powers off or reboots the Linux system by closing processes and unmounting file systems. Question 60: How can you reboot a Linux system from the command line? Answer Options: A) Using the "reboot" command. B) Using the "mkdir" command. C) Using the "ls" command. D) Using the "cat" command. Correct Answer: A Explanation: The "reboot" command is used to restart the system from the command line, ensuring that all processes are properly terminated before rebooting. Question 61: What is the purpose of systemd in modern Linux distributions? Answer Options: A) To manage disk partitions.

B) To handle system services and the boot process. C) To compile source code. D) To create new files. Correct Answer: B Explanation: Systemd is a system and service manager for Linux, responsible for initializing system services and managing the boot process. Question 62: Which command can be used to start or stop services in systemd? Answer Options: A) service B) systemctl C) ls D) cd Correct Answer: B Explanation: "systemctl" is the command used to control and manage system services on systems that use systemd. Question 63: In Linux, what does the "sudoers" file configure? Answer Options: A) Network interfaces. B) User privileges for executing commands as root. C) File system structure. D) Disk partitions. Correct Answer: B Explanation: The sudoers file defines which users are permitted to run commands with superuser privileges, enhancing security and control. Question 64: Which file stores user account information in Linux? Answer Options: A) /etc/shadow B) /etc/group C) /etc/passwd D) /etc/sudoers Correct Answer: C Explanation: The /etc/passwd file contains essential information about user accounts, including usernames and associated details. Question 65: What is the primary purpose of the "useradd" command? Answer Options: A) To delete user accounts. B) To create new user accounts. C) To modify file permissions. D) To manage disk quotas. Correct Answer: B Explanation: The "useradd" command is used to create new user accounts on a Linux system, initializing user details and home directories.

Correct Answer: A Explanation: "chgrp" specifically changes the group ownership of a file or directory, while "chown" changes the user (and optionally the group) ownership. Question 71: Which command is used to display all currently running background and foreground jobs? Answer Options: A) jobs B) ps C) top D) kill Correct Answer: A Explanation: The "jobs" command lists all active background and suspended jobs in the current shell session, providing process status information. Question 72: What is the purpose of the "nice" command in Linux? Answer Options: A) To display file contents. B) To adjust the scheduling priority of a process. C) To create symbolic links. D) To change file ownership. Correct Answer: B Explanation: The "nice" command is used to modify the priority of a process, influencing how much CPU time it receives compared to other processes. Question 73: How does the "renice" command function in Linux? Answer Options: A) It terminates processes immediately. B) It changes the priority of an already running process. C) It lists all user processes. D) It modifies file permissions. Correct Answer: B Explanation: "renice" adjusts the scheduling priority of running processes, enabling system administrators to manage CPU allocation dynamically. Question 74: Which command shows detailed system resource statistics including CPU, memory, and I/O? Answer Options: A) ls B) vmstat C) cp D) grep Correct Answer: B Explanation: The "vmstat" command displays information about system processes, memory, paging, block I/O, traps, and CPU activity, providing a comprehensive overview of system performance.

Question 75: What is the function of the "iostat" command? Answer Options: A) It displays CPU usage only. B) It monitors disk I/O statistics and system load. C) It lists user accounts. D) It modifies file systems. Correct Answer: B Explanation: The "iostat" command reports on CPU and disk I/O statistics, helping administrators understand system performance and potential bottlenecks. Question 76: Which command is used to display the contents of system logs stored in /var/log? Answer Options: A) dmesg B) cat C) journalctl D) ls Correct Answer: C Explanation: "journalctl" is used with systemd-based systems to query and display logs collected by the journal service, which often includes entries from /var/log. Question 77: What does the "netstat" command display? Answer Options: A) Disk usage statistics. B) Network connections, routing tables, and interface statistics. C) Memory usage details. D) File permissions. Correct Answer: B Explanation: The "netstat" command provides information on network connections, routing tables, and network interface statistics, aiding in network troubleshooting. Question 78: Which command is an alternative to "netstat" for displaying socket statistics in Linux? Answer Options: A) ps B) ss C) df D) top Correct Answer: B Explanation: The "ss" command is used to display detailed information about socket statistics, often serving as a modern alternative to netstat. Question 79: What is the purpose of the "ping" command in Linux? Answer Options: A) To check file permissions. B) To test network connectivity to a host. C) To display process details. D) To monitor disk usage.

B) apt list --installed C) yum list installed D) dpkg - l Correct Answer: D Explanation: The "dpkg - l" command lists all installed packages on Debian-based systems, providing package names, versions, and statuses. Question 85: What distinguishes package managers in Debian-based systems from Red Hat-based systems? Answer Options: A) Debian-based use rpm, while Red Hat-based use apt. B) Debian-based use apt and dpkg, while Red Hat-based use yum/dnf and rpm. C) They use identical commands. D) Package managers are not used in Linux. Correct Answer: B Explanation: Debian-based systems use apt and dpkg for package management, whereas Red Hat-based systems use yum or dnf with rpm as the underlying package format. Question 86: Which command is used to manually install an RPM package in Linux? Answer Options: A) dpkg - i B) rpm - ivh C) apt install D) yum update Correct Answer: B Explanation: The "rpm - ivh" command installs an RPM package and provides progress information, making it suitable for manual installations. Question 87: What is the purpose of a software repository in Linux distributions? Answer Options: A) To store temporary files. B) To provide a central location for downloading and updating software. C) To manage user accounts. D) To create bootable images. Correct Answer: B Explanation: Software repositories host collections of packages, allowing users to easily install, update, and manage software from a trusted source. Question 88: How does the "apt" command simplify package management on Ubuntu? Answer Options: A) It requires manual dependency resolution. B) It automates software installation, updates, and dependency handling. C) It only updates the kernel. D) It only lists available packages. Correct Answer: B

Explanation: The "apt" command streamlines package management by automating the installation, updating, and resolution of package dependencies on Ubuntu systems. Question 89: What is the role of the "tar" command in disk management tasks? Answer Options: A) To change file permissions. B) To archive and compress files for backup or transfer. C) To manage user accounts. D) To mount disk partitions. Correct Answer: B Explanation: "tar" is used to create archives of files, often compressed with additional tools like gzip, which is essential for backups and transfers. Question 90: Which command is used to check and repair file system consistency? Answer Options: A) fsck B) fdisk C) mkfs D) chmod Correct Answer: A Explanation: The "fsck" command (file system consistency check) scans and repairs inconsistencies in file systems, helping to prevent data corruption. Question 91: What does the /etc/fstab file configure in a Linux system? Answer Options: A) Network settings. B) Automatic mounting of file systems. C) User authentication. D) Process scheduling. Correct Answer: B Explanation: The /etc/fstab file defines how disk partitions, network shares, and other file systems are automatically mounted during system boot. Question 92: What is Logical Volume Management (LVM) used for in Linux? Answer Options: A) To manage user privileges. B) To dynamically manage disk storage by abstracting physical volumes into logical volumes. C) To monitor network traffic. D) To update system packages. Correct Answer: B Explanation: LVM allows administrators to manage disk space flexibly by creating, resizing, and moving logical volumes over physical storage devices. Question 93: Which command is used to create a new logical volume in LVM? Answer Options: A) lvcreate B) vgcreate