WorksheetsUNIX Operating System Quiz
Total questions: 40
Worksheet time: 20mins
UNIX was developed in 1969 at Bell Labs by:
Bill Gates and Steve Jobs
Ken Thompson and Dennis Ritchie
Linus Torvalds and Richard Stallman
John Backus and Charles Babbage
The core of the UNIX Operating System is the:
Kernel
Shell
File System
Command
Which of the following is *not* a feature of UNIX?
Multiuser
Multitasking
Single user only
Portable
The UNIX Kernel handles:
Memory, Process and File management
Only user input
Only networking
Only screen output
System calls are used by:
Kernel to access user programs
User programs to access kernel services
Hardware to call commands
Files to store data
UNIX is portable because:
It is written in C language
It is written in assembly
It supports only Intel processors
It cannot be moved
The feature that allows multiple users to access a system at once is:
Multiuser
Multitasking
Multiprocessing
Networking
UNIX allows a user to run multiple tasks at the same time — this is called:
Multitasking
Multithreading
Time-sharing
Parallelism
Which feature of UNIX uses special characters like ‘*’ and ‘?’ to match patterns?
Pattern Matching
Scripting
Regular Processing
Multitasking
The UNIX Toolkit includes:
General-purpose and text-processing tools
Only database tools
Only graphics utilities
Only compiler tools
The UNIX shell is also a:
Programming language
Hardware driver
Graphical tool
Debugger
The `man` command is used for:
Displaying manual pages
Modifying passwords
Listing files
Killing processes
The command `man wc` shows information from which section of documentation?
User Commands
System Calls
Configuration Files
Libraries
Which command shows the calendar of a month?
cal
date
who
man
Which command displays the current date and time?
date
time
cal
clock
`who` command is used to:
Display logged-in users
Show current date
List files
Display calendar
The general command structure in UNIX is:
verb [options] [arguments]
command (arguments) options
verb {options} (arguments)
[arguments] verb [options]
Which character is used to prefix options in UNIX commands?
– (minus)
+ (plus)
= (equal)
/ (slash)
Commands implemented as part of the shell are called:
Internal commands
External commands
System calls
Kernel functions
The command `echo "Hello"` will:
Print Hello on the screen
Display file contents
Create a new file
Rename a file
In UNIX, everything is treated as a:
File
Folder
Device
Process
Which of the following is not a UNIX file type?
Ordinary file
Directory file
System file type
Device file
An ordinary file contains:
Stream of characters (data)
Directories
Device links
Shell commands
The HOME variable contains:
Path to the user’s home directory
List of commands
Current shell type
Machine name
The PATH variable is:
Colon-separated list of directories searched for commands
Name of the current path
Variable storing user name
Command to display files
An absolute pathname always starts with:
/ (slash)
. (dot)
.. (double dot)
~ (tilde)
Relative pathnames never start with:
/ (slash)
. (dot)
~ (tilde)
Directory name
The single dot (.) represents:
Current directory
Parent directory
Root directory
Hidden file
The double dots (..) represent:
Parent directory
Current directory
Root directory
Hidden directory
Command to print the current directory:
pwd
ls
cd
path
Command used to change the current directory:
cd
pwd
ls
home
Command used to create a directory:
mkdir
rmdir
mkfile
dircreate
Command used to remove an empty directory:
rmdir
rm -r
deldir
erase
Command to display contents of a file:
cat
echo
wc
pwd
Command used to rename a file:
mv
cp
rm
renamefile
Command used to copy files:
cp
mv
rm
cat
Command used to delete files:
rm
erase
rmdir
del
Option used with `rm` for interactive deletion:
-i
-r
-f
-x
Option used with `cp` for interactive copying:
-i
-r
-v
-f
The `wc` command is used to:
Count lines, words, and characters
Display file contents
Delete files
Copy directories
