CompTIA Operating Systems 4 — Questions and Answers
Question 1: Which Windows edition is the minimum required to join a computer to an Active Directory domain?
- Windows Home
- Windows Pro (Correct answer)
- Windows S Mode
- Windows Starter
Correct answer: Windows Pro
Windows Pro (and higher editions) support joining an Active Directory domain; Windows Home does not include this capability.
Question 2: A Linux administrator wants to view the last 50 lines of a log file in real time as new entries are written. Which command is most appropriate?
- cat /var/log/syslog
- tail -f -n 50 /var/log/syslog (Correct answer)
- head -n 50 /var/log/syslog
- less /var/log/syslog
Correct answer: tail -f -n 50 /var/log/syslog
The 'tail -f -n 50' command shows the last 50 lines and continues to display new lines as they are appended, making it ideal for live log monitoring.
Question 3: What is the function of the pagefile.sys file in Windows?
- Stores system restore points
- Acts as virtual memory by storing data swapped out of RAM (Correct answer)
- Holds temporary internet files
- Caches Windows Update downloads
Correct answer: Acts as virtual memory by storing data swapped out of RAM
Pagefile.sys is Windows' paging file that stores memory pages swapped out of physical RAM, effectively extending available memory to the system.
Question 4: Which macOS command-line tool is used to manage software packages installed via Homebrew?
- apt
- brew (Correct answer)
- yum
- pkg
Correct answer: brew
The 'brew' command is the Homebrew package manager's CLI tool used to install, update, and remove software packages on macOS.
Question 5: A technician receives a 'Stop Error' (Blue Screen of Death) on a Windows machine. Which file should be analyzed first to identify the cause?
- system.ini
- Minidump (.dmp) file (Correct answer)
- pagefile.sys
- boot.ini
Correct answer: Minidump (.dmp) file
Minidump files (located in C:\Windows\Minidump) capture memory state at the time of a crash and are analyzed with tools like WinDbg to identify the cause.
Question 6: In Windows, which built-in feature encrypts an entire drive volume to protect data at rest?
- EFS (Encrypting File System)
- BitLocker (Correct answer)
- Windows Defender
- Credential Guard
Correct answer: BitLocker
BitLocker provides full-volume encryption for Windows drives, protecting data at rest even if the physical drive is removed from the machine.
Question 7: Which Linux command displays all currently running processes with details such as PID, CPU, and memory usage?
- ls -la
- ps aux (Correct answer)
- netstat -an
- top -b -n1
Correct answer: ps aux
The 'ps aux' command lists all running processes for all users along with their PID, CPU%, memory%, and command details.
Which Windows edition is the minimum required to join a computer to an Active Directory domain?