# OS-4 Quiz: Windows Command Line Take this after studying `notes/OS-4-windows-command-line.md`. Reply with answers like: `1B 2A 3D 4C 5B 6A 7D` ## Questions 1. Which command shows detailed Windows network adapter information, including DNS and DHCP details? A. `ping` B. `hostname` C. `winver` D. `ipconfig /all` 2. A user can ping `8.8.8.8` but cannot browse to `example.com`. Which command should the technician use to test DNS resolution? A. `chkdsk /f` B. `gpupdate /force` C. `nslookup example.com` D. `format` 3. Which command shows active connections, listening ports, and process IDs? A. `sfc /scannow` B. `netstat -ano` C. `dir` D. `whoami` 4. Which command scans protected Windows system files and repairs them when possible? A. `tracert` B. `net use` C. `pathping` D. `sfc /scannow` 5. Which command forces Group Policy to refresh on a Windows system? A. `gpupdate /force` B. `gpresult /r` C. `winver` D. `hostname` 6. Which command-line tool can manage partitions and is dangerous if misused? A. `whoami` B. `nslookup` C. `diskpart` D. `help dir` 7. Which command displays syntax help for many Windows commands? A. `..` B. `/?` C. `127.0.0.1` D. `C:` 8. Which command checks and repairs disk errors on a drive? A. `sfc /scannow` B. `netstat -ano` C. `chkdsk /f` D. `gpresult /r` 9. A technician wants to see the path network packets take to a remote host. Which command is best? A. `hostname` B. `whoami` C. `tracert` D. `net use` 10. Which command maps a network drive to a drive letter? A. `diskpart` B. `net use Z: \\server\share` C. `gpupdate` D. `sfc` 11. A PC needs an immediate shutdown. Which command achieves this? A. `shutdown /r /t 0` B. `shutdown /s /t 0` C. `gpupdate /force` D. `sfc /scannow` 12. Which command repairs the Windows boot record when a system cannot start? A. `chkdsk /r` B. `diskpart` C. `bootrec /fixmbr` D. `netstat -ano` 13. What does `DISM /Online /Cleanup-Image /RestoreHealth` do? A. Formats the system drive B. Repairs the Windows component store using Windows Update C. Forces a Group Policy refresh D. Stops all running services 14. Which command terminates a running process by its process ID? A. `net stop` B. `gpresult /r` C. `taskkill /PID /F` D. `sfc /scannow` 15. Which command releases the current DHCP lease on a Windows machine? A. `ipconfig /renew` B. `ipconfig /flushdns` C. `ipconfig /release` D. `ipconfig /all` ## Answer Key For Instructor 1. D 2. C 3. B 4. D 5. A 6. C 7. B 8. C 9. C 10. B 11. B 12. C 13. B 14. C 15. C