wayground logo

Free Printable Worksheets

Font size

S
M
L
XL
Worksheets

UNIX Operating System Quiz

Total questions: 40

Worksheet time: 20mins

Name
Class
Date
1.

UNIX was developed in 1969 at Bell Labs by:

a)

Bill Gates and Steve Jobs

b)

Ken Thompson and Dennis Ritchie

c)

Linus Torvalds and Richard Stallman

d)

John Backus and Charles Babbage

2.

The core of the UNIX Operating System is the:

a)

Kernel

b)

Shell

c)

File System

d)

Command

3.

Which of the following is *not* a feature of UNIX?

a)

Multiuser

b)

Multitasking

c)

Single user only

d)

Portable

4.

The UNIX Kernel handles:

a)

Memory, Process and File management

b)

Only user input

c)

Only networking

d)

Only screen output

5.

System calls are used by:

a)

Kernel to access user programs

b)

User programs to access kernel services

c)

Hardware to call commands

d)

Files to store data

6.

UNIX is portable because:

a)

It is written in C language

b)

It is written in assembly

c)

It supports only Intel processors

d)

It cannot be moved

7.

The feature that allows multiple users to access a system at once is:

a)

Multiuser

b)

Multitasking

c)

Multiprocessing

d)

Networking

8.

UNIX allows a user to run multiple tasks at the same time — this is called:

a)

Multitasking

b)

Multithreading

c)

Time-sharing

d)

Parallelism

9.

Which feature of UNIX uses special characters like ‘*’ and ‘?’ to match patterns?

a)

Pattern Matching

b)

Scripting

c)

Regular Processing

d)

Multitasking

10.

The UNIX Toolkit includes:

a)

General-purpose and text-processing tools

b)

Only database tools

c)

Only graphics utilities

d)

Only compiler tools

11.

The UNIX shell is also a:

a)

Programming language

b)

Hardware driver

c)

Graphical tool

d)

Debugger

12.

The `man` command is used for:

a)

Displaying manual pages

b)

Modifying passwords

c)

Listing files

d)

Killing processes

13.

The command `man wc` shows information from which section of documentation?

a)

User Commands

b)

System Calls

c)

Configuration Files

d)

Libraries

14.

Which command shows the calendar of a month?

a)

cal

b)

date

c)

who

d)

man

15.

Which command displays the current date and time?

a)

date

b)

time

c)

cal

d)

clock

16.

`who` command is used to:

a)

Display logged-in users

b)

Show current date

c)

List files

d)

Display calendar

17.

The general command structure in UNIX is:

a)

verb [options] [arguments]

b)

command (arguments) options

c)

verb {options} (arguments)

d)

[arguments] verb [options]

18.

Which character is used to prefix options in UNIX commands?

a)

– (minus)

b)

+ (plus)

c)

= (equal)

d)

/ (slash)

19.

Commands implemented as part of the shell are called:

a)

Internal commands

b)

External commands

c)

System calls

d)

Kernel functions

20.

The command `echo "Hello"` will:

a)

Print Hello on the screen

b)

Display file contents

c)

Create a new file

d)

Rename a file

21.

In UNIX, everything is treated as a:

a)

File

b)

Folder

c)

Device

d)

Process

22.

Which of the following is not a UNIX file type?

a)

Ordinary file

b)

Directory file

c)

System file type

d)

Device file

23.

An ordinary file contains:

a)

Stream of characters (data)

b)

Directories

c)

Device links

d)

Shell commands

24.

The HOME variable contains:

a)

Path to the user’s home directory

b)

List of commands

c)

Current shell type

d)

Machine name

25.

The PATH variable is:

a)

Colon-separated list of directories searched for commands

b)

Name of the current path

c)

Variable storing user name

d)

Command to display files

26.

An absolute pathname always starts with:

a)

/ (slash)

b)

. (dot)

c)

.. (double dot)

d)

~ (tilde)

27.

Relative pathnames never start with:

a)

/ (slash)

b)

. (dot)

c)

~ (tilde)

d)

Directory name

28.

The single dot (.) represents:

a)

Current directory

b)

Parent directory

c)

Root directory

d)

Hidden file

29.

The double dots (..) represent:

a)

Parent directory

b)

Current directory

c)

Root directory

d)

Hidden directory

30.

Command to print the current directory:

a)

pwd

b)

ls

c)

cd

d)

path

31.

Command used to change the current directory:

a)

cd

b)

pwd

c)

ls

d)

home

32.

Command used to create a directory:

a)

mkdir

b)

rmdir

c)

mkfile

d)

dircreate

33.

Command used to remove an empty directory:

a)

rmdir

b)

rm -r

c)

deldir

d)

erase

34.

Command to display contents of a file:

a)

cat

b)

echo

c)

wc

d)

pwd

35.

Command used to rename a file:

a)

mv

b)

cp

c)

rm

d)

renamefile

36.

Command used to copy files:

a)

cp

b)

mv

c)

rm

d)

cat

37.

Command used to delete files:

a)

rm

b)

erase

c)

rmdir

d)

del

38.

Option used with `rm` for interactive deletion:

a)

-i

b)

-r

c)

-f

d)

-x

39.

Option used with `cp` for interactive copying:

a)

-i

b)

-r

c)

-v

d)

-f

40.

The `wc` command is used to:

a)

Count lines, words, and characters

b)

Display file contents

c)

Delete files

d)

Copy directories