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




McGraw-Hill/Irwin