wayground logo

Free Printable Worksheets

Font size

S
M
L
XL
Worksheets

Process Management Quiz

Total questions: 40

Worksheet time: 20mins

Name
Class
Date
1.

A process is said to be born when:

a)

The user logs in

b)

The program starts execution

c)

The file is created

d)

The kernel assigns memory

2.

Which table does the kernel use to store process attributes?

a)

File table

b)

Process table

c)

Permission table

d)

Kernel table

3.

PID stands for:

a)

Process Internal Directory

b)

Process Information Data

c)

Process Identification Number

d)

Parent Identification Number

4.

The command used to display currently running processes:

a)

ls

b)

ps

c)

kill

d)

bg

5.

PPID represents:

a)

Parent Process ID

b)

Parallel Process ID

c)

Previous Process ID

d)

Page Process ID

6.

A newly created process is called:

a)

Parent process

b)

Child process

c)

Shell process

d)

Fork process

7.

Which system call creates a child process?

a)

wait()

b)

kill()

c)

fork()

d)

exec()

8.

Which system call is used by the child to execute a new program?

a)

exit()

b)

exec()

c)

fork()

d)

ps()

9.

When a child finishes execution, it is terminated by:

a)

wait()

b)

fork()

c)

exit()

d)

kill()

10.

Which command provides detailed list of attributes of processes?

a)

ps -u

b)

ps -f

c)

ps -a

d)

ps

11.

In `ps` output, the `TTY` column represents:

a)

CPU time

b)

Terminal associated with the process

c)

Process priority

d)

Parent process

12.

To display processes of a specific user, use:

a)

ps -a

b)

ps -u

c)

ps -f

d)

ps -e

13.

System processes can be viewed using:

a)

ps -a

b)

ps -u

c)

ps -f

d)

ps -e

14.

Signals are:

a)

Hardware interrupts

b)

Software interrupts

c)

Kernel logs

d)

Permissions

15.

Default action of SIGINT when pressing Ctrl+C is:

a)

Ignore the signal

b)

Continue process

c)

Terminate process

d)

Suspend process

16.

Command used to terminate a background process:

a)

exit

b)

kill

c)

fg

d)

bg

17.

The default signal used by kill command is:

a)

SIGKILL (9)

b)

SIGSTOP (17)

c)

SIGTERM (15)

d)

SIGINT (2)

18.

$! stores:

a)

PID of current shell

b)

Exit status of last command

c)

PID of last background job

d)

Number of jobs

19.

The command to bring a job to foreground is:

a)

bg

b)

fg

c)

ps

d)

jobs

20.

To list all current jobs, use:

a)

jobs

b)

fg

c)

ps

d)

showjobs

21.

Hard links cannot be created for:

a)

Files

b)

Directories

c)

Text files

d)

Bash scripts

22.

Which command creates a hard link?

a)

ln -s

b)

link

c)

ln

d)

cp

23.

Soft links store:

a)

File content

b)

Inode number

c)

Pathname of original file

d)

File permissions only

24.

To create a symbolic link, use:

a)

ln

b)

ln -s

c)

link

d)

symlink

25.

Default permission for a regular file before applying umask is:

a)

777

b)

666

c)

755

d)

644

26.

Command to check current umask value:

a)

mask

b)

showmask

c)

umask

d)

chmod

27.

`head` command by default displays:

a)

Last 10 lines

b)

First 10 lines

c)

First 5 lines

d)

Last 5 lines

28.

Command to display last 3 lines of a file:

a)

head -3 file

b)

tail -n 3 file

c)

tail +3 file

d)

head +3 file

29.

`cut -c 5-7 file` extracts:

a)

Lines 5 to 7

b)

Bytes 5 to 7

c)

Columns 5 to 7

d)

Words 5 to 7

30.

Default field delimiter for cut command:

a)

Comma

b)

Colon

c)

Space

d)

Tab

31.

Command used to merge files line by line:

a)

join

b)

cat

c)

paste

d)

merge

32.

Sort command arranges data by default in:

a)

Numeric order

b)

ASCII collating sequence

c)

Reverse order

d)

Random order

33.

To sort on a specific field:

a)

sort -n

b)

sort -r

c)

sort -k

d)

sort -o

34.

To sort in reverse order:

a)

sort -k

b)

sort -r

c)

sort -n

d)

sort -t

35.

To remove duplicate lines:

a)

sort -d

b)

sort -u

c)

sort -m

d)

sort -r

36.

To merge already sorted files:

a)

sort -u

b)

sort -m

c)

sort -o

d)

sort -c

37.

grep stands for:

a)

Get Regular Expression Pattern

b)

Global Regular Expression Print

c)

General Replace Expression Print

d)

Global Replace Pattern

38.

To ignore case while searching with grep:

a)

grep -c

b)

grep -r

c)

grep -i

d)

grep -l

39.

To display lines NOT matching a pattern:

a)

grep -n

b)

grep -v

c)

grep -i

d)

grep -l

40.

Pipeline (`|`) is used to:

a)

Redirect output to file

b)

Merge commands

c)

Use output of one command as input to another

d)

Execute multiple processes independently