MS Azure D281 ITEC 3004 Linux Foundations
Objective Assessment Review (Qns & Ans)
2025
Multiple Choice Questions (MCQ)
Which command is used to list all running processes in Linux?
A) ls
B) ps
C) top
D) jobs
ANS: B) ps
Rationale: The ps command displays information about the
currently running processes.
©2025
,What does the 'chmod' command do in Linux?
A) Changes file ownership
B) Changes file permissions
C) Moves files
D) Creates a new directory
ANS: B) Changes file permissions
Rationale: The chmod command is used to change the
permissions of a file or directory.
Which file contains user account information in Linux?
A) /etc/passwd
B) /etc/shadow
C) /etc/group
D) /etc/sudoers
ANS: A) /etc/passwd
Rationale: The /etc/passwd file holds user account details,
including usernames.
Which command is used to terminate a process by its PID?
A) kill
B) terminate
©2025
,C) stop
D) end
ANS: A) kill
Rationale: The kill command is used to send a signal to a process,
typically to stop it by specifying its PID.
What is the default shell for most Linux distributions?
A) Zsh
B) Bash
C) Ksh
D) Fish
ANS: B) Bash
Rationale: Bash (Bourne Again SHell) is the most common
default shell for many Linux distributions.
Fill-in-the-Blank Questions
The file system hierarchy in Linux starts from the ________
directory.
ANS: root
Rationale: The root directory, denoted by /, is the top-level
directory in a Linux file system.
©2025
, In a Linux system, the command to change a directory is
________.
ANS: cd
Rationale: The cd (change directory) command is used to navigate
between different directories in Linux.
The Linux kernel is primarily written in the ________
programming language.
ANS: C
Rationale: The Linux kernel is mainly developed in the C
programming language for its efficiency and low-level
capabilities.
To display the contents of a file in Linux, you can use the
________ command.
ANS: cat
Rationale: The cat (concatenate) command is used to display the
contents of a file.
The ________ command can be used to search for text patterns
within files.
ANS: grep
Rationale: The grep command is utilized to search for specific
text patterns in files.
©2025
Objective Assessment Review (Qns & Ans)
2025
Multiple Choice Questions (MCQ)
Which command is used to list all running processes in Linux?
A) ls
B) ps
C) top
D) jobs
ANS: B) ps
Rationale: The ps command displays information about the
currently running processes.
©2025
,What does the 'chmod' command do in Linux?
A) Changes file ownership
B) Changes file permissions
C) Moves files
D) Creates a new directory
ANS: B) Changes file permissions
Rationale: The chmod command is used to change the
permissions of a file or directory.
Which file contains user account information in Linux?
A) /etc/passwd
B) /etc/shadow
C) /etc/group
D) /etc/sudoers
ANS: A) /etc/passwd
Rationale: The /etc/passwd file holds user account details,
including usernames.
Which command is used to terminate a process by its PID?
A) kill
B) terminate
©2025
,C) stop
D) end
ANS: A) kill
Rationale: The kill command is used to send a signal to a process,
typically to stop it by specifying its PID.
What is the default shell for most Linux distributions?
A) Zsh
B) Bash
C) Ksh
D) Fish
ANS: B) Bash
Rationale: Bash (Bourne Again SHell) is the most common
default shell for many Linux distributions.
Fill-in-the-Blank Questions
The file system hierarchy in Linux starts from the ________
directory.
ANS: root
Rationale: The root directory, denoted by /, is the top-level
directory in a Linux file system.
©2025
, In a Linux system, the command to change a directory is
________.
ANS: cd
Rationale: The cd (change directory) command is used to navigate
between different directories in Linux.
The Linux kernel is primarily written in the ________
programming language.
ANS: C
Rationale: The Linux kernel is mainly developed in the C
programming language for its efficiency and low-level
capabilities.
To display the contents of a file in Linux, you can use the
________ command.
ANS: cat
Rationale: The cat (concatenate) command is used to display the
contents of a file.
The ________ command can be used to search for text patterns
within files.
ANS: grep
Rationale: The grep command is utilized to search for specific
text patterns in files.
©2025