McGraw-Hill OnlineMcGraw-Hill Higher EducationLearning Center
Student Center | Instructor Center | information Center | Home
Glossary
Sample Configuration Scripts
Internet Resources
Multiple Choice Quiz
True or False
Feedback
Help Center


Book cover
Introduction to UNIX
Kate Wrightson
Joe Merlino

Shell Programming IV - Signals and Status

Multiple Choice

Click on the correct response for each question below.



1

The command "cd" (change directory) will return an exit status.
A)1 for success
B)1 for failure
C)0 for failure
D)none of the above
2

What special variable has the exit status?
A)$?
B)$#
C)!$
D)$*
3

Another name for exit status is
A)Exit code
B)Return code
C)Return value
D)Quit value
4

Passing information between programs is called.
A)Program intertalk
B)Program communication
C)Interprocess communication
D)Task communication
5

A more complete means of communication between programs is called.
A)Flags
B)Chat
C)Email
D)Signals
6

Which of the following is necessary in order to send a signal?
A)There must be a way to send a signal.
B)There must be a way to identify a signal.
C)A signal trap must be available.
D)All of the above
7

A signal trap is a set of instructions
A)In the initiating process
B)In between the communicating processes
C)In the receiving process
D)None of the above
8

Which special variable contains the PID of its own process?
A)$job
B)$$
C)$
D)$ps
9

Each signal name begins with the letters
A)SIG
B)SIGNAL
C)SIGNAME
D)None of the above
10

Which signal is used to kill a running process?
A)Signal 2
B)Signal 9
C)Signal 15
D)Signal 1




McGraw-Hill/Irwin