Linux Foundation Certified System Administrator (LFCS) — Question 8
What does the symbol within regular expressions represent?
Answer options
- A. Match the preceding qualifier one or more times.
- B. Match the preceding qualifier zero or more times.
- C. Match the preceding qualifier zero or one times.
- D. Match a literal character.
Correct answer: C
Explanation
The correct answer is C, which signifies that the preceding qualifier may appear either once or not at all. Option A indicates one or more times, which is incorrect, while option B signifies zero or more times, and option D refers to matching a specific character literally, neither of which describe the intended meaning.