Student Center
|
Instructor Center
|
information Center
|
Home
Glossary
Sample Configuration Scripts
Internet Resources
Choose a Chapter
Chapter 1
Chapter 2
Chapter 3
Chapter 4
Chapter 5
Chapter 6
Chapter 7
Chapter 8
Chapter 9
Chapter 10
Chapter 11
Chapter 12
Chapter 13
Chapter 14
Chapter 15
Chapter 16
Chapter 17
Chapter 18
Chapter 19
Multiple Choice Quiz
True or False
Feedback
Help Center
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
2003 McGraw-Hill Higher Education
Any use is subject to the
Terms of Use
and
Privacy Policy
.
McGraw-Hill Higher Education
is one of the many fine businesses of
The McGraw-Hill Companies
.