Exam LFCS All QuestionsBrowse all questions from this exam
Question 60

What does the symbol within regular expressions represent?

    Correct Answer: C

    In regular expressions, the ? symbol is used to indicate that the preceding element or group should be matched zero or one times. This makes the preceding element or group optional, meaning it can occur either once or not at all.

Discussion
Borbz

Correct question is "What does the ? symbol within regular expressions represent?"

StribOption: C

C. Match the preceding qualifier zero or one time. In regular expressions, the "?" symbol is used as a quantifier to indicate that the preceding element or group should be matched zero or one times. It makes the preceding element or group optional, meaning it can occur either once or not at all. Here are a few examples to illustrate the usage of the "?" symbol: Match "colour" or "color": colou?r This pattern matches both "colour" and "color." The "?" makes the "u" optional, allowing for both spellings.

rjo

What symbol?

Borbz

the symbol is ? the answer is correct. C.