Quiz - Module 9: Processes & Linux
Test your knowledge on processes, threads, and Linux!
Question 1
What is a process?
- A) A file
- B) A running program
- C) A folder
- D) A protocol
See the answer
Answer: B) A running program
A process is an instance of a program with its memory space.
Question 2
What is a thread?
- A) A process
- B) A lightweight execution unit within a process
- C) A file
- D) A protocol
See the answer
Answer: B) A lightweight execution unit within a process
Threads share the memory of the parent process.
Question 3
What is a PID?
- A) A virus
- B) Process ID - unique identifier of a process
- C) A file
- D) A protocol
See the answer
Answer: B) Process ID - unique identifier of a process
Each process has a unique PID.
Question 4
Which Windows tool displays processes in detail?
- A) Notepad
- B) Process Explorer (Sysinternals)
- C) Paint
- D) Calculator
See the answer
Answer: B) Process Explorer (Sysinternals)
Process Explorer offers advanced details on processes.
Question 5
What is the parent process?
- A) The first process
- B) The process that created another process (child)
- C) The heaviest process
- D) The system process
See the answer
Answer: B) The process that created another process
The parent creates child processes.
Question 6
Which Linux command lists processes?
- A) dir
- B) ps or top
- C) list
- D) proc
See the answer
Answer: B) ps or top
ps aux lists processes, top displays them in real-time.
Question 7
Which Linux command stops a process?
- A) stop
- B) kill
- C) end
- D) close
See the answer
Answer: B) kill
kill PID or kill -9 PID stops a process.
Question 8
What is Linux?
- A) A browser
- B) An open-source operating system kernel
- C) A virus
- D) A protocol
See the answer
Answer: B) An open-source operating system kernel
Linux is the kernel used by Ubuntu, Debian, etc.
Question 9
Which Linux command displays the current directory?
- A) dir
- B) pwd
- C) cd
- D) where
See the answer
Answer: B) pwd
pwd (print working directory) displays the current path.
Question 10
Which Linux command lists files?
- A) dir
- B) ls
- C) list
- D) show
See the answer
Answer: B) ls
ls lists files and folders.
Question 11
What does sudo mean?
- A) A virus
- B) Super User DO - execute as root
- C) A file
- D) A protocol
See the answer
Answer: B) Super User DO - execute as root
sudo allows executing commands with administrative rights.
Question 12
Who is the root user in Linux?
- A) A normal user
- B) The system administrator with all rights
- C) A guest user
- D) A disabled user
See the answer
Answer: B) The system administrator with all rights
root has full access to the system.
Question 13
Which command changes file permissions?
- A) perm
- B) chmod
- C) chown
- D) change
See the answer
Answer: B) chmod
chmod 755 file changes permissions.
Question 14
What does chmod 755 mean?
- A) Delete the file
- B) rwxr-xr-x (owner: all rights, others: read/execute)
- C) Hidden file
- D) System file
See the answer
Answer: B) rwxr-xr-x
7=rwx (owner), 5=r-x (group), 5=r-x (others).
Question 15
Which command changes the owner of a file?
- A) chmod
- B) chown
- C) chgrp
- D) owner
See the answer
Answer: B) chown
chown user:group file changes the owner.
Question 16
Where are configuration files stored in Linux?
- A) C:\Windows
- B) /etc
- C) /home
- D) /bin
See the answer
Answer: B) /etc
The /etc directory contains system configuration files.
Question 17
Which command installs packages on Debian/Ubuntu?
- A) install
- B) apt install or apt-get install
- C) yum install
- D) pkg install
See the answer
Answer: B) apt install or apt-get install
APT is the package manager for Debian/Ubuntu.
Question 18
What is WSL?
- A) A virus
- B) Windows Subsystem for Linux
- C) A browser
- D) A protocol
See the answer
Answer: B) Windows Subsystem for Linux
WSL allows running Linux directly on Windows.
Question 19
Which command displays the content of a file in Linux?
- A) show
- B) cat
- C) read
- D) print
See the answer
Answer: B) cat
cat file.txt displays the content of the file.
Question 20
Which command searches for text in a file?
- A) find
- B) grep
- C) search
- D) look
See the answer
Answer: B) grep
grep "text" file searches for text.
Question 21
Which command finds files?
- A) grep
- B) find
- C) search
- D) look
See the answer
Answer: B) find
find /path -name "file" searches for files.
Question 22
What is a shell?
- A) A file
- B) The command interpreter (bash, zsh, etc.)
- C) A virus
- D) A protocol
See the answer
Answer: B) The command interpreter
The shell interprets user commands.
Question 23
What is bash?
- A) A virus
- B) Bourne Again SHell - the default shell for many Linux systems
- C) A file
- D) A protocol
See the answer
Answer: B) Bourne Again SHell
Bash is the most common shell on Linux.
Question 24
How to make a script executable in Linux?
- A) exec script.sh
- B) chmod +x script.sh
- C) run script.sh
- D) enable script.sh
See the answer
Answer: B) chmod +x script.sh
chmod +x adds execution permission.
Question 25
What is the /etc/passwd file?
- A) Plain text passwords
- B) The list of system users
- C) A virus
- D) A temporary file
See the answer
Answer: B) The list of system users
/etc/passwd contains account info (not passwords).
Question 26
Where are hashed passwords stored in Linux?
- A) /etc/passwd
- B) /etc/shadow
- C) /etc/password
- D) /etc/users
See the answer
Answer: B) /etc/shadow
/etc/shadow contains password hashes (accessible by root).
Question 27
Which command displays network connections in Linux?
- A) ipconfig
- B) netstat or ss
- C) ifconfig
- D) network
See the answer
Answer: B) netstat or ss
netstat -tulpn or ss -tulpn display connections.
Question 28
Which command displays IP configuration in Linux?
- A) ipconfig
- B) ip addr or ifconfig
- C) netstat
- D) route
See the answer
Answer: B) ip addr or ifconfig
ip addr (modern) or ifconfig (old) display IPs.
Question 29
What is cron?
- A) A virus
- B) The task scheduler in Linux
- C) A file
- D) A protocol
See the answer
Answer: B) The task scheduler in Linux
Cron automatically executes tasks according to a schedule.
Question 30
How to edit cron tasks?
- A) edit cron
- B) crontab -e
- C) nano cron
- D) vim /etc/cron
See the answer
Answer: B) crontab -e
crontab -e opens the scheduled tasks editor.
Score
| Score | Level |
|---|---|
| 27-30 | Excellent! |
| 22-26 | Very good! |
| 17-21 | Good |
| 12-16 | Fair |
| 0-11 | Needs review |
Quiz for Module 9 - Processes & Linux - 30 questions