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 II - Variables and Flow Control
True or False
Click on the correct response for each question below.
1
A variable is a name given to a piece of information.
A)
TRUE
B)
FALSE
2
A scalar variable is one of the most common types of variables.
A)
TRUE
B)
FALSE
3
Array variables do not exist in any version of Bash.
A)
TRUE
B)
FALSE
4
All variables when referenced for use in a shell program begin with a $ (dollar sign).
A)
TRUE
B)
FALSE
5
$1 is a special variable that returns the exit status of the previous command.
A)
TRUE
B)
FALSE
6
Nested constructs are constructs inside other constructs.
A)
TRUE
B)
FALSE
7
The "case" construct is more efficient than a chain of "elif" statements when there is a list of alternative values.
A)
TRUE
B)
FALSE
8
In "bash", the "case" construct ends with an "end" statement.
A)
TRUE
B)
FALSE
9
In "bash", the "until" loop uses a "do" statement.
A)
TRUE
B)
FALSE
10
In "bash", when doing mathematical comparisons for equality in a conditional construct use the "=" (equal sign).
A)
TRUE
B)
FALSE
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
.