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 III - Regular Expressions
Multiple Choice
Click on the correct response for each question below.
1
The asterisk is a metacharacter which in the command "ls *.txt" means
A)
Any single character
B)
Any combination of one or more characters
C)
Any combination of zero or more characters
D)
None of the above
2
A metacharacter is any character that
A)
Is taken literally
B)
Represents any string of characters that fit its definition
C)
Is an "asterisk" or "question mark"
D)
All of the above
3
Which of the following Unix utilities are not commonly used to process regular expressions?
A)
Grep
B)
Sed
C)
Cut
D)
Awk
4
Which programming language has a powerful regular expression engine?
A)
C++
B)
Perl
C)
Pearl
D)
C
5
Which meta-noncharacter is used to indicate the end of the line?
A)
^
B)
?
C)
>
D)
$
6
Which meta-noncharacter is used to indicate the beginning of the line?
A)
^
B)
?
C)
<
D)
$
7
A)
\MC
B)
ch of the following is not an attribute of "sed"
C)
Non-interactive
D)
The name stands for "stream editor" C. Works well with "grep" D. By default saves to a file
8
The character separating fields is called a
A)
Separator
B)
Delimiter
C)
Blank
D)
Semicolon
9
"Awk" is a program that is primarily concerned with formatting output. It is designed to work best with pieces of data called
A)
Records
B)
Characters
C)
Fields
D)
Strings
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
.