wayground logo

Free Printable Worksheets

Font size

S
M
L
XL
Worksheets

UNIX Operating System Quiz

Total questions: 74

Worksheet time: 37mins

Name
Class
Date
1.

What is the core component of the UNIX operating system?

a)

Process

b)

Shell

c)

Kernel

d)

File System

2.

Which programming language is primarily used to write the UNIX kernel?

a)

Java

b)

C

c)

Assembly

d)

Python

3.

The role of the shell in UNIX is to (a)   .

4.

What type of file is considered the dominant file type in UNIX?

a)

Image

b)

Text

c)

Audio

d)

Binary

5.

What is a process in UNIX?

a)

A type of file

b)

A command interpreter

c)

An array of bytes

d)

An executed program

6.

What function is used to access files and devices in UNIX?

a)

open()

b)

close()

c)

write()

d)

read()

7.

Which feature of UNIX allows multiple users to share hardware concurrently?

a)

Multitasking

b)

Multiuser

c)

Portability

d)

Networking

8.

What does the term 'multitasking' refer to in UNIX?

a)

Sharing resources among users

b)

Running multiple programs simultaneously

c)

Executing commands

d)

Managing files

9.

What protocol is used for networking in UNIX?

a)

TCP/IP

b)

FTP

c)

SMTP

d)

HTTP

10.

What does the command 'pwd' do in UNIX?

a)

Prints the working directory

b)

Changes the directory

c)

Lists files

d)

Displays user information

11.

Which command is used to create a new directory in UNIX?

a)

mkdir

b)

rmdir

c)

cd

d)

ls

12.

What does the 'ls' command do?

a)

Displays current user

b)

Changes directory

c)

Lists files

d)

Creates a file

13.

What is the purpose of the 'chmod' command?

a)

Change file content

b)

Change file permissions

c)

Change file type

d)

Change file ownership

14.

Which shell is known as the 'Bourne Again Shell'?

a)

Bourne shell

b)

C shell

c)

Korn shell

d)

Bash

15.

What is the primary function of system calls in UNIX?

a)

Access hardware

b)

Manage files

c)

Control processes

d)

Execute commands

16.

What does the command 'who' display?

a)

Current users

b)

Current processes

c)

Current files

d)

Current date

17.

What is a deadlock in operating systems?

a)

A process that is running

b)

A process that has finished execution

c)

A process waiting indefinitely

d)

A process that is paused

18.

Which of the following is a scheduling algorithm?

a)

chmod

b)

ls

c)

grep

d)

FCFS

19.

What does the 'grep' command do?

a)

Changes file permissions

b)

Displays current directory

c)

Lists files

d)

Searches for strings in files

20.

What is the purpose of the 'date' command in UNIX?

a)

Displays the current date

b)

Changes the system date

c)

Displays the time

d)

Sets the time zone

21.

What is the main advantage of the Round Robin scheduling algorithm?

a)

Low waiting time

b)

High throughput

c)

Simple implementation

d)

Starvation-free

22.

What is the function of the process scheduler in UNIX?

a)

Controls file access

b)

Handles user commands

c)

Manages memory

d)

Selects processes for execution

23.

What does the 'rm' command do?

a)

Creates new files

b)

Renames files

c)

Removes files and directories

d)

Displays file content

24.

What is the purpose of the 'cal' command?

a)

Displays user information

b)

Lists files

c)

Changes the date

d)

Displays the calendar

25.

What is the role of the kernel in UNIX?

a)

Command execution

b)

User interface

c)

File management

d)

Resource management

26.

What does the 'echo' command do?

a)

Displays text

b)

Changes directory

c)

Lists files

d)

Creates a new file

27.

What is the main function of the 'wc' command?

a)

Changes file permissions

b)

Lists files

c)

Counts lines, words, or characters

d)

Displays file content

28.

What is the purpose of the 'touch' command?

a)

Display file content

b)

Delete a file

c)

Update file timestamp

d)

Create a new file

29.

What does the 'cat' command do?

a)

Displays current directory

b)

Lists files

c)

Changes file permissions

d)

Concatenates files

30.

What is the main purpose of the Banker's algorithm?

a)

Deadlock avoidance

b)

Process scheduling

c)

File management

d)

Memory management

31.

What is the main characteristic of the Shortest Remaining Time First (SRTF) scheduling algorithm?

a)

Non-preemptive scheduling

b)

Round-robin scheduling

c)

First-come, first-served

d)

Preemptive scheduling

32.

What does the 'mkdir' command do?

a)

Creates a new directory

b)

Lists directories

c)

Removes a directory

d)

Changes directory

33.

What is the main purpose of the FIFO page replacement algorithm?

a)

Control processes

b)

Manage memory

c)

Minimize page faults

d)

Maximize throughput

34.

What is the main advantage of using the LRU page replacement algorithm?

a)

Simplifies memory management

b)

Minimizes page faults

c)

Increases process speed

d)

Maximizes memory usage

35.

What is the role of the 'vi' command in UNIX?

a)

Shell

b)

Command interpreter

c)

File manager

d)

Text editor

36.

What does the 'clear' command do?

a)

Clears the terminal screen

b)

Displays user information

c)

Changes directory

d)

Lists files

37.

What is the purpose of the 'sort' command?

a)

Sorts lines of text files

b)

Changes file permissions

c)

Displays file content

d)

Lists files

38.

What is the main function of the 'ps' command?

a)

Displays current processes

b)

Changes file permissions

c)

Lists files

d)

Displays user information

39.

What does the 'kill' command do?

a)

Lists processes

b)

Terminates a process

c)

Starts a process

d)

Pauses a process

40.

What is the main purpose of the 'chmod' command?

a)

Change file ownership

b)

Change file permissions

c)

Change file type

d)

Change file content

41.

What is the main characteristic of the Priority Scheduling algorithm?

a)

All processes are treated equally

b)

Processes are executed based on burst time

c)

Processes are executed in order of arrival

d)

Processes are executed based on priority

42.

What is the main purpose of the 'find' command?

a)

Search for files

b)

List files

c)

Change directory

d)

Display user information

43.

What is the main function of the 'tar' command?

a)

Encrypt files

b)

Transfer files

c)

Compress files

d)

Archive files

44.

What does the 'scp' command do?

a)

Securely copies files between hosts

b)

Changes file permissions

c)

Lists files

d)

Displays user information

45.

What is the main purpose of the 'ping' command?

a)

Test network connectivity

b)

List network connections

c)

Change network settings

d)

Display network information

46.

What is the main function of the 'ifconfig' command?

a)

Configure network interfaces

b)

Display file content

c)

Change directory

d)

List files

47.

What is the main purpose of the 'netstat' command?

a)

Change network settings

b)

Display network connections

c)

Display user information

d)

List files

48.

What is the main characteristic of the Multilevel Queue Scheduling algorithm?

a)

Processes are divided into different queues based on priority

b)

Processes are executed based on burst time

c)

All processes are treated equally

d)

Processes are executed based on arrival time

49.

What is the main purpose of the 'df' command?

a)

Display disk space usage

b)

Display user information

c)

Change file permissions

d)

List files

50.

What is the main function of the 'du' command?

a)

Display user information

b)

List files

c)

Change file permissions

d)

Display disk usage of files and directories

51.

What is the main purpose of the 'history' command?

a)

Display user information

b)

List files

c)

Change directory

d)

Display command history

52.

What is the main function of the 'alias' command?

a)

List files

b)

Display user information

c)

Change file permissions

d)

Create shortcuts for commands

53.

What is the main purpose of the 'man' command?

a)

Display manual pages for commands

b)

Change file permissions

c)

List files

d)

Display user information

54.

What is the main characteristic of the Shortest Job First (SJF) scheduling algorithm?

a)

All processes are treated equally

b)

Processes are executed based on priority

c)

Processes are executed based on arrival time

d)

Processes with the shortest burst time are executed first

55.

What is the main purpose of the 'echo' command?

a)

Display text to the terminal

b)

Change file permissions

c)

List files

d)

Display user information

56.

What is the main function of the 'tail' command?

a)

Display the last part of a file

b)

Change file permissions

c)

List files

d)

Display user information

57.

What is the main purpose of the 'head' command?

a)

Change file permissions

b)

Display user information

c)

Display the first part of a file

d)

List files

58.

What is the main function of the 'cut' command?

a)

Change file permissions

b)

List files

c)

Display user information

d)

Remove sections from each line of files

59.

What is the main purpose of the 'paste' command?

a)

List files

b)

Display user information

c)

Change file permissions

d)

Merge lines of files

60.

What is the main function of the 'sort' command?

a)

Display user information

b)

List files

c)

Change file permissions

d)

Sort lines of text files

61.

What is the main purpose of the 'uniq' command?

a)

Change file permissions

b)

Report or omit repeated lines

c)

List files

d)

Display user information

62.

What is the main function of the 'grep' command?

a)

List files

b)

Display user information

c)

Search for patterns in files

d)

Change file permissions

63.

What is the main purpose of the 'awk' command?

a)

Display user information

b)

List files

c)

Change file permissions

d)

Pattern scanning and processing language

64.

What is the main function of the 'sed' command?

a)

Stream editor for filtering and transforming text

b)

Change file permissions

c)

List files

d)

Display user information

65.

What is the main purpose of the 'find' command?

a)

Change file permissions

b)

List files

c)

Search for files in a directory hierarchy

d)

Display user information

66.

What is the main function of the 'xargs' command?

a)

Build and execute command lines from standard input

b)

Change file permissions

c)

List files

d)

Display user information

67.

What is the main purpose of the 'chmod' command?

a)

Change file permissions

b)

Change file content

c)

Change file ownership

d)

Change file type

68.

What is the main function of the 'chown' command?

a)

Change file ownership

b)

Change file content

c)

Change file permissions

d)

Change file type

69.

What is the main purpose of the 'ln' command?

a)

Create links between files

b)

Change file permissions

c)

Display user information

d)

List files

70.

What is the main function of the 'tar' command?

a)

Transfer files

b)

Archive files

c)

Compress files

d)

Encrypt files

71.

What is the main purpose of the 'gzip' command?

a)

Compress files

b)

Change file permissions

c)

List files

d)

Display user information

72.

What is the main function of the 'gunzip' command?

a)

Change file permissions

b)

List files

c)

Display user information

d)

Decompress files

73.

What is the main purpose of the 'zip' command?

a)

Display user information

b)

List files

c)

Change file permissions

d)

Compress files into a zip archive

74.

What is the main function of the 'unzip' command?

a)

List files

b)

Change file permissions

c)

Extract files from a zip archive

d)

Display user information