Wayground logo

Free Printable Worksheets

Font size

S
M
L
XL
Worksheets

Test Review for Senior IT Units 2-3

Total questions: 13

Worksheet time: 7mins

Name
Class
Date
1.

What does sleep do

a)

hibernates the computer so everyone's processes stop

b)

halts the process for a specific amount of time

c)

consumes a ton of cpu resources

2.

Ctrl - C is equivalent to

a)

SIGINT

b)

SIGKILL

c)

SIGSTP

d)

SIGSTOP

e)

can never be captures

3.

CTL-Z is equivalent to

a)

SIGTSTP

b)

SIGKILL

c)

SIGINT

d)

SIGHUP

e)

SIGSTOP

4.

To capture a signal in BASH you can

a)

throw and catch exceptions

b)

use the trap command

c)

use an if / else based on the command line parameter

d)

use $ signal SIGINT echo "I got interrupted"

e)

ps, grep, and awk

5.
a)

The process id is 17

b)

The parent process is 17

c)

This is the 17th login for this user

d)

This user is using the terminal identified as 17

6.

kill -9 1746

a)

is a SIGKILL

b)

Can be trapped using trap

c)

Can be trapped using catch and throw

d)

can be trapped using system.exception

7.

Which one will list all the processes running?

a)

ps -aef

b)

ps -f

c)

ps a

d)

ps f

8.

SSHD

a)

is a daemon

b)

allows for anonymous login

c)

always requires two factor authentication

d)

Allows for trapping a SIGHUP

9.

You close the putty window you are using to log into a server by clicking the x in the window

a)

you caused a SIGHUP

b)

you caused a SIGKILL

c)

you caused a SIGINT

d)

you caused a SIGEXIT

e)

you caused a SIGTERM

10.

Which one of the following processes gets the highest priority ?

a)

$ bash xPrime.sh &

b)

$ nice --10 xPrime.sh

c)

$ nice -19 xPrime.sh

d)

$ nice -n -5 xPrime.sh

11.

Which of the following commands definitely will kill the process runMe with a PID of 1824

a)

$ pkill $(pidof runMe)

b)

$ kill -9 $(pgrep runMe)

c)

$kill -9 ./runMe

d)

kill -15 runMe

12.

A fork

a)

creates a new parent process

b)

will get a pid of 0 assigned to it initially when called from a compiled program

c)

does not contain memory from the parent process

d)

waits until the parent is completed before starting

13.

stdout

a)

is output data to the terminal that is not an error

b)

is output from a keyboard to the terminal

c)

is where error messages get sent to

d)

is the standard template library for creating files