Basic Computing
Operating Systems
Which command shows the beginning lines of a text file by default?
A. tail
B. grep
C. pwd
D. head
Correct Answer: D
head displays the first part of a file.
Basic Computing
Operating Systems
Which command displays the contents of a text file directly in the terminal?
A. cat
B. chmod
C. ps
D. mkdir
Correct Answer: A
cat concatenates files and commonly displays text content.
Basic Computing
Operating Systems
A Linux file whose name begins with a dot is usually treated as:
A. A device file
B. Hidden
C. Executable by default
D. Read-only by default
Correct Answer: B
Dot-prefixed files are conventionally hidden from normal directory listings.
Basic Computing
Operating Systems
What does the tilde (~) commonly represent in a Unix/Linux shell?
A. The current process ID
B. A hidden file
C. The current user's home directory
D. The filesystem root
Correct Answer: C
The shell expands ~ to the user's home directory.
Basic Computing
Operating Systems
Which directory is the top of the Unix/Linux filesystem hierarchy?
A. C:\
B. ~ only
C. /home/user only
D. /
Correct Answer: D
The single forward slash represents the filesystem root on Unix-like systems.
Basic Computing
Operating Systems
Which key combination opens the Windows security screen containing options such as Lock, Sign out, and Task Manager?
A. Ctrl + Alt + Delete
B. Ctrl + C
C. Alt + Tab
D. Win + E
Correct Answer: A
Ctrl+Alt+Delete invokes the secure attention screen in Windows.
Basic Computing
Operating Systems
Which folder commonly contains core 64-bit Windows system binaries on a 64-bit Windows installation?
A. C:\Recycle
B. C:\Windows\System32
C. C:\Temp
D. C:\Users\Public\Documents only
Correct Answer: B
System32 contains many core Windows system files and executables; its name is historical.
Basic Computing
Operating Systems
What does the environment variable %USERPROFILE% normally refer to in Windows?
A. The boot partition table
B. The CPU cache
C. The current user's profile folder
D. The Windows kernel file
Correct Answer: C
%USERPROFILE% expands to the current user's profile directory.
Basic Computing
Operating Systems
Which Windows command can terminate a process by name or process ID?
A. tasklist
B. whoami
C. ver
D. taskkill
Correct Answer: D
taskkill ends selected processes using image names or PIDs.
Basic Computing
Operating Systems
Which command lists running processes in Windows Command Prompt?
A. tasklist
B. taskkill
C. tree
D. type
Correct Answer: A
tasklist displays currently running processes and related information.
Basic Computing
Operating Systems
Which Windows command-line utility is used for advanced disk and partition management?
A. echo
B. diskpart
C. calc
D. hostname
Correct Answer: B
DiskPart manages disks, partitions, and volumes from the command line.
Basic Computing
Operating Systems
Which Windows utility checks a disk/file system for logical errors?
A. tasklist
B. notepad
C. chkdsk
D. regedit
Correct Answer: C
chkdsk examines filesystem and disk structures and can repair selected errors.
Basic Computing
Operating Systems
Which Windows command checks protected system files and can repair corrupted copies?
A. dir /w
B. copy con
C. tree /f
D. sfc /scannow
Correct Answer: D
System File Checker verifies protected Windows system files and can repair them.
Basic Computing
Operating Systems
Which Windows command is commonly used to test basic network reachability to another host?
A. ping
B. mkdir
C. format
D. attrib
Correct Answer: A
ping sends ICMP echo requests to test reachability and measure response time.
Basic Computing
Operating Systems
Which Windows command displays IP configuration information?
A. chmod
B. ipconfig
C. grep
D. ls
Correct Answer: B
ipconfig displays network adapter configuration such as IP addresses and gateways.
Basic Computing
Operating Systems
Which command opens the System Configuration utility in Windows?
A. chkdsk
B. format
C. msconfig
D. ipconfig
Correct Answer: C
msconfig launches System Configuration for boot and service troubleshooting options.
Basic Computing
Operating Systems
Which command opens the Windows Registry Editor from Run?
A. notepad
B. calc
C. paint
D. regedit
Correct Answer: D
The regedit command starts Registry Editor.
Basic Computing
Operating Systems
Which Windows keyboard shortcut opens the Run dialog box?
A. Windows key + R
B. Windows key + E
C. Ctrl + R
D. Alt + R
Correct Answer: A
Win+R opens the Run dialog used to launch commands and programs.
Basic Computing
Operating Systems
Which Windows keyboard shortcut opens File Explorer?
A. Ctrl + E
B. Windows key + E
C. Windows key + R
D. Windows key + D only
Correct Answer: B
Win+E opens File Explorer.
Basic Computing
Operating Systems
Which keyboard shortcut opens Task Manager directly in modern Windows?
A. Alt + F4
B. Win + L only
C. Ctrl + Shift + Esc
D. Ctrl + P
Correct Answer: C
Ctrl + Shift + Esc opens Windows Task Manager directly.