Last Updated on April 2, 2018 by Admin
Introduction to Linux I Chapter 8 Exam Answer
-
Question ID 569
Which regular expression character matches any one character?
- .
- ?
- +
- *
-
Question ID 570
Which regular expression character matches zero or more of the previous character?
- ?
- +
- *
- .
-
Question ID 571
Which regular expression character matches one or more of the previous character?
- –
- $
- *
- +
-
Question ID 572
Which of the following regular expression characters is an extended regular expression character?
- +
- .
- $
- *
-
Question ID 573
What does “|” do in a regular expression?
- Redirects input to the command
- Redirects output from the command
- Separates repetition modifiers
- Separates alternative patterns that can be matches
-
Question ID 574
The regular expression a? is equivalent to:
- a{0,1}
- a{1}
- a{1,}
- a{0,}
-
Question ID 575
The regular expression a* is equivalent to:
- a{0,1}
- a{1,}
- a{0,}
- a{1}
-
Question ID 576
The regular expression a+ is equivalent to:
- a{1}
- a{1,}
- a{0,}
- a{0,1}
-
Question ID 577
To use extended regular expressions, you can use:
(choose two)
- grep -e
- fgrep
- egrep
- grep -E
-
Question ID 578
To use regular expression characters to match themselves, you cannot:
- Put the character in the square brackets
- Use the fgrep command
- Use the slash in front of the character
- Use the backslash in front of the character
-
Question ID 579
What is NOT a purpose of using parentheses around parts of a regular expression?
- They can be used to make alternation more efficient
- They can be used to refer back to what was matched
- They can be used to group characters for repetition
- They can be used to change the order that the pattern is evaluating
-
Question ID 581
Which option for grep will invert the pattern matching results?
- -i
- -v
- -r
- -o
-
Question ID 582
If you want to use grep without regard to the capitalization of text, you can use the option:
- -t
- -v
- -i
- -r