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 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




McGraw-Hill/Irwin