Final Prep Exam (Latest Update
2026/2027) Questions and Verified
Answers | 100% Correct | Grade A.
1. What is the primary purpose of scripting in system
administration?
A. To replace all operating systems
B. To increase hardware performance
C. To automate repetitive administrative tasks
D. To eliminate network traffic
Rationale: Scripting enables administrators to automate repetitive,
time-consuming tasks such as user management, software deployment,
backups, and log collection. Automation improves efficiency, reduces
human error, and ensures consistent execution of routine administrative
processes.
2. Which scripting language is the default automation language for
modern Windows administration?
A. Bash
B. Python
,C. PowerShell
D. Perl
Rationale: Microsoft PowerShell is the standard scripting and
automation language for Windows. It combines a command-line shell
with an object-oriented scripting language that integrates closely with
Windows management technologies.
3. Which symbol is commonly used to indicate a variable in
PowerShell?
A. #
B. %
C. $
D. @
Rationale: Variables in PowerShell begin with the dollar sign ($). For
example, $username stores information that can be referenced
throughout a script.
4. Which PowerShell cmdlet displays running processes?
A. Show-Process
B. Process-List
C. Get-Process
D. Find-Process
Rationale: Get-Process retrieves currently running processes as objects.
Because PowerShell works with objects instead of plain text,
,administrators can filter, sort, and manipulate process information
efficiently.
5. Which Linux shell is most commonly used for scripting?
A. Fish
B. Tcsh
C. Bash
D. Zsh
Rationale: Bash (Bourne Again Shell) is the default shell on many Linux
distributions and is widely used for scripting administrative tasks due to
its compatibility and extensive command support.
6. Which command displays the current working directory in Linux?
A. cd
B. ls
C. pwd
D. where
Rationale: The pwd (Print Working Directory) command displays the full
path of the current directory, helping users identify their location within
the file system.
7. What is the primary advantage of using functions in scripts?
A. They increase processor speed.
B. They eliminate syntax errors.
, C. They improve code reuse and organization.
D. They encrypt script files.
Rationale: Functions allow administrators to write reusable blocks of
code that perform specific tasks. This reduces duplication, improves
readability, and simplifies script maintenance.
8. Which PowerShell cmdlet retrieves information about local
services?
A. Show-Service
B. Get-Service
C. List-Service
D. Display-Service
Rationale: Get-Service returns information about Windows services,
including their current status, display name, and service name, allowing
administrators to monitor and manage services.
9. What is the purpose of conditional statements?
A. To compress files
B. To increase RAM
C. To execute code based on specific conditions
D. To back up data automatically
Rationale: Conditional statements such as if, elseif, and else enable
scripts to make decisions based on evaluated expressions, making
automation more dynamic and responsive.