61. Question: In package management,____ is a collection of patches, configuration files, and scripts used to adapt software source code to a specific distribution.
Option 1: Source package
Option 2: Binary package
Option 3: Source code
Option 4: Dependency
Correct answer: 1
Explanation: In package management, a “source package” is a collection of patches, configuration files, and scripts used to adapt software source code to a specific distribution. Source packages are used to build binary packages specific to a particular Linux distribution.
62. Question: In Linux,____ command is used to force a user to change their password at the next login.
Option 1: passwd
Option 2: chsh
Option 3: chfn
Option 4: usermod
Correct answer: 1
Explanation: In Linux, the “passwd” command is used to force a user to change their password at the next login. This is often used for security reasons, such as when a user’s password has expired.
63. Question: In Red Hat-based systems,____ tool is used to manage and configure software repositories.
Option 1: yum
Option 2: apt-get
Option 3: dnf
Option 4: zypper
Correct answer: 1
Explanation: In Red Hat-based systems, the “yum” tool (Yellowdog Updater, Modified) is used to manage and configure software repositories. It allows users to install, update, and remove packages from Red Hat-based distributions.
64. Question: You have just set up a new Linux server and need to install a web server. Which package management command would you use in a Debian-based system?
Option 1: apt-get
Option 2: yum
Option 3: dnf
Option 4: pacman
Correct answer: 1
Explanation: In Debian-based systems (such as Ubuntu), you would use the “apt-get” command to install packages. The “apt-get” command is designed for package management specifically for Debian-based distributions.
65. Question: A colleague asks you to temporarily disable a user’s access without deleting their account. Which Linux command can achieve this?
Option 1: passwd -l
Option 2: userdel
Option 3: chmod 000
Option 4: usermod -s /sbin/nologin
Correct answer: 1
Explanation: To temporarily disable a user’s access without deleting their account, you can use the “passwd -l” command. This command locks the user’s password, preventing them from logging in until the password is unlocked.