WorksheetsUNIX Operating System Quiz
Total questions: 74
Worksheet time: 37mins
What is the core component of the UNIX operating system?
Process
Shell
Kernel
File System
Which programming language is primarily used to write the UNIX kernel?
Java
C
Assembly
Python
The role of the shell in UNIX is to (a) .
What type of file is considered the dominant file type in UNIX?
Image
Text
Audio
Binary
What is a process in UNIX?
A type of file
A command interpreter
An array of bytes
An executed program
What function is used to access files and devices in UNIX?
open()
close()
write()
read()
Which feature of UNIX allows multiple users to share hardware concurrently?
Multitasking
Multiuser
Portability
Networking
What does the term 'multitasking' refer to in UNIX?
Sharing resources among users
Running multiple programs simultaneously
Executing commands
Managing files
What protocol is used for networking in UNIX?
TCP/IP
FTP
SMTP
HTTP
What does the command 'pwd' do in UNIX?
Prints the working directory
Changes the directory
Lists files
Displays user information
Which command is used to create a new directory in UNIX?
mkdir
rmdir
cd
ls
What does the 'ls' command do?
Displays current user
Changes directory
Lists files
Creates a file
What is the purpose of the 'chmod' command?
Change file content
Change file permissions
Change file type
Change file ownership
Which shell is known as the 'Bourne Again Shell'?
Bourne shell
C shell
Korn shell
Bash
What is the primary function of system calls in UNIX?
Access hardware
Manage files
Control processes
Execute commands
What does the command 'who' display?
Current users
Current processes
Current files
Current date
What is a deadlock in operating systems?
A process that is running
A process that has finished execution
A process waiting indefinitely
A process that is paused
Which of the following is a scheduling algorithm?
chmod
ls
grep
FCFS
What does the 'grep' command do?
Changes file permissions
Displays current directory
Lists files
Searches for strings in files
What is the purpose of the 'date' command in UNIX?
Displays the current date
Changes the system date
Displays the time
Sets the time zone
What is the main advantage of the Round Robin scheduling algorithm?
Low waiting time
High throughput
Simple implementation
Starvation-free
What is the function of the process scheduler in UNIX?
Controls file access
Handles user commands
Manages memory
Selects processes for execution
What does the 'rm' command do?
Creates new files
Renames files
Removes files and directories
Displays file content
What is the purpose of the 'cal' command?
Displays user information
Lists files
Changes the date
Displays the calendar
What is the role of the kernel in UNIX?
Command execution
User interface
File management
Resource management
What does the 'echo' command do?
Displays text
Changes directory
Lists files
Creates a new file
What is the main function of the 'wc' command?
Changes file permissions
Lists files
Counts lines, words, or characters
Displays file content
What is the purpose of the 'touch' command?
Display file content
Delete a file
Update file timestamp
Create a new file
What does the 'cat' command do?
Displays current directory
Lists files
Changes file permissions
Concatenates files
What is the main purpose of the Banker's algorithm?
Deadlock avoidance
Process scheduling
File management
Memory management
What is the main characteristic of the Shortest Remaining Time First (SRTF) scheduling algorithm?
Non-preemptive scheduling
Round-robin scheduling
First-come, first-served
Preemptive scheduling
What does the 'mkdir' command do?
Creates a new directory
Lists directories
Removes a directory
Changes directory
What is the main purpose of the FIFO page replacement algorithm?
Control processes
Manage memory
Minimize page faults
Maximize throughput
What is the main advantage of using the LRU page replacement algorithm?
Simplifies memory management
Minimizes page faults
Increases process speed
Maximizes memory usage
What is the role of the 'vi' command in UNIX?
Shell
Command interpreter
File manager
Text editor
What does the 'clear' command do?
Clears the terminal screen
Displays user information
Changes directory
Lists files
What is the purpose of the 'sort' command?
Sorts lines of text files
Changes file permissions
Displays file content
Lists files
What is the main function of the 'ps' command?
Displays current processes
Changes file permissions
Lists files
Displays user information
What does the 'kill' command do?
Lists processes
Terminates a process
Starts a process
Pauses a process
What is the main purpose of the 'chmod' command?
Change file ownership
Change file permissions
Change file type
Change file content
What is the main characteristic of the Priority Scheduling algorithm?
All processes are treated equally
Processes are executed based on burst time
Processes are executed in order of arrival
Processes are executed based on priority
What is the main purpose of the 'find' command?
Search for files
List files
Change directory
Display user information
What is the main function of the 'tar' command?
Encrypt files
Transfer files
Compress files
Archive files
What does the 'scp' command do?
Securely copies files between hosts
Changes file permissions
Lists files
Displays user information
What is the main purpose of the 'ping' command?
Test network connectivity
List network connections
Change network settings
Display network information
What is the main function of the 'ifconfig' command?
Configure network interfaces
Display file content
Change directory
List files
What is the main purpose of the 'netstat' command?
Change network settings
Display network connections
Display user information
List files
What is the main characteristic of the Multilevel Queue Scheduling algorithm?
Processes are divided into different queues based on priority
Processes are executed based on burst time
All processes are treated equally
Processes are executed based on arrival time
What is the main purpose of the 'df' command?
Display disk space usage
Display user information
Change file permissions
List files
What is the main function of the 'du' command?
Display user information
List files
Change file permissions
Display disk usage of files and directories
What is the main purpose of the 'history' command?
Display user information
List files
Change directory
Display command history
What is the main function of the 'alias' command?
List files
Display user information
Change file permissions
Create shortcuts for commands
What is the main purpose of the 'man' command?
Display manual pages for commands
Change file permissions
List files
Display user information
What is the main characteristic of the Shortest Job First (SJF) scheduling algorithm?
All processes are treated equally
Processes are executed based on priority
Processes are executed based on arrival time
Processes with the shortest burst time are executed first
What is the main purpose of the 'echo' command?
Display text to the terminal
Change file permissions
List files
Display user information
What is the main function of the 'tail' command?
Display the last part of a file
Change file permissions
List files
Display user information
What is the main purpose of the 'head' command?
Change file permissions
Display user information
Display the first part of a file
List files
What is the main function of the 'cut' command?
Change file permissions
List files
Display user information
Remove sections from each line of files
What is the main purpose of the 'paste' command?
List files
Display user information
Change file permissions
Merge lines of files
What is the main function of the 'sort' command?
Display user information
List files
Change file permissions
Sort lines of text files
What is the main purpose of the 'uniq' command?
Change file permissions
Report or omit repeated lines
List files
Display user information
What is the main function of the 'grep' command?
List files
Display user information
Search for patterns in files
Change file permissions
What is the main purpose of the 'awk' command?
Display user information
List files
Change file permissions
Pattern scanning and processing language
What is the main function of the 'sed' command?
Stream editor for filtering and transforming text
Change file permissions
List files
Display user information
What is the main purpose of the 'find' command?
Change file permissions
List files
Search for files in a directory hierarchy
Display user information
What is the main function of the 'xargs' command?
Build and execute command lines from standard input
Change file permissions
List files
Display user information
What is the main purpose of the 'chmod' command?
Change file permissions
Change file content
Change file ownership
Change file type
What is the main function of the 'chown' command?
Change file ownership
Change file content
Change file permissions
Change file type
What is the main purpose of the 'ln' command?
Create links between files
Change file permissions
Display user information
List files
What is the main function of the 'tar' command?
Transfer files
Archive files
Compress files
Encrypt files
What is the main purpose of the 'gzip' command?
Compress files
Change file permissions
List files
Display user information
What is the main function of the 'gunzip' command?
Change file permissions
List files
Display user information
Decompress files
What is the main purpose of the 'zip' command?
Display user information
List files
Change file permissions
Compress files into a zip archive
What is the main function of the 'unzip' command?
List files
Change file permissions
Extract files from a zip archive
Display user information
