What does the + symbol mean in the following grep regular expression:
grep '^d[aei]\+d$' /usr/share/dict/words
Suggested Answer: C
Get Premium 101-500 Questions
as Interactive Web-Based Practice Test or PDF
Real Exam Format
Detailed Explanations
Instant Access
Get Your Practice Test
35 comments · newest first
CO
Cordelia
10 months ago
D seems unlikely, + is a quantifier, right?
AM
Ammie
11 months ago
I agree with A, but I can see why people might get confused.
KI
Kizzy
11 months ago
Wait, is it really A? I thought + meant zero or more.
CA
Carin
11 months ago
I thought it was B at first, but A makes more sense.
TO
Tonette
11 months ago
It's definitely A, one or more times!
KR
Kristofer
12 months ago
I’m leaning towards A, but I keep second-guessing myself about whether it could mean zero or more instead.
LY
Lynda
12 months ago
I feel like the + could also be confused with * which means zero or more, but I think in this case it’s one or more.
TR
Trinidad
12 months ago
I remember practicing a similar question where + was used, and it definitely indicated one or more occurrences.
BE
Bethanie
1 year ago
I think the + symbol means to match the preceding character set one or more times, but I'm not completely sure.
NI
Nieves
1 year ago
I'm not totally sure about the + symbol here. Is it matching the preceding character set zero or more times, or just one or more times? I'll have to think this through carefully before selecting an answer.
AM
Amber
1 year ago
The + symbol usually means "one or more" of the preceding character or character set. So in this case, it would match "d" followed by one or more of the letters "a", "e", or "i", and then another "d". I'm pretty confident that option A is the right answer.
CH
Chantell
1 year ago
I think the + symbol in this grep regular expression means that the preceding character set [aei] should match one or more times. So option A seems like the correct answer.
AR
Arminda
1 year ago
Hmm, I'm a bit confused about the meaning of the + symbol in this context. I'll need to review my notes on regular expressions to be sure I understand it correctly.
CE
Celeste
1 year ago
Okay, I think I've got a handle on this. The key is understanding how the Definition of Done should work when multiple Scrum Teams are involved. I'll go with the answer that best reflects that.
DE
Deonna
1 year ago
Okay, I think I've got this. The Scrum Master's job is to facilitate the Scrum process and ensure the team is following the Scrum practices. In this case, the Scrum Master should ensure the product owner is informed about the status of the requirements, either through the information radiator or a sprint planning meeting.
TH
Thea
1 year ago
Wait, is the + symbol actually a secret morse code message? I should have brought my tin-foil hat to this exam!
KI
King
1 year ago
Phew, good to know. Thanks for clarifying!
GE
Geoffrey
1 year ago
B) Match the preceding character set ([aei]) zero or more times.
DO
Dorcas
1 year ago
No, it's not a secret message, just a regular expression symbol.
ED
Edelmira
1 year ago
A) Match the preceding character set ([aei]) one or more times.
CA
Carlee
1 year ago
Selecting option D would be a bit of a 'plus' sized mistake. The + symbol here is a quantifier, not a literal character to be matched.
PA
Paola
1 year ago
Option C is tempting, but the + symbol is not for zero or one matches. That would be the ? symbol. The + is clearly for one or more matches.
DO
Dottie
1 year ago
Exactly, option A is the correct interpretation of the + symbol in this regular expression.
RU
Rusty
1 year ago
Yes, the + symbol in this context means one or more matches.
EV
Eve
1 year ago
A) Match the preceding character set ([aei]) one or more times.
LA
Latanya
1 year ago
I was about to choose option B, but then I realized that zero or more matches wouldn't make sense for this expression. The + symbol is definitely for one or more matches.
FA
Fabiola
1 year ago
Yes, the + symbol indicates one or more matches in this context.
HE
Hector
1 year ago
I agree, option A makes sense for this expression.
KA
Katy
1 year ago
A) Match the preceding character set ([aei]) one or more times.
JE
Jennifer
2 years ago
The + symbol in the given grep regular expression means that the preceding character set [aei] should be matched one or more times. This is the correct answer, option A.
CA
Candida
1 year ago
That makes sense, thanks for clarifying.
CA
Candida
1 year ago
A) Match the preceding character set ([aei]) one or more times.
GL
Glory
2 years ago
I agree, A makes sense based on the regular expression provided.
BR
Brinda
2 years ago
I think it's A too, because the + symbol means one or more times.
JE
Jeffrey
2 years ago
A) Match the preceding character set ([aei]) one or more times.