What does the ? symbol within regular expressions represent?
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
30 comments · newest first
LE
Lennie
10 months ago
Nope, definitely C! It's a common mistake though.
SH
Shayne
10 months ago
Wait, I thought it was B? Zero or more times?
BR
Britt
11 months ago
Really? I always thought it was for matching one or more times!
AR
Arminda
11 months ago
Totally agree, C is the right answer!
KI
Kimbery
11 months ago
It's C! Zero or one times.
CH
Chaya
11 months ago
I’m pretty sure ? is not for one or more times, but I can’t recall if it’s zero or one. I should have reviewed more before the exam!
DA
Daryl
12 months ago
I feel like I might confuse ? with * sometimes, but I think it’s about matching zero or one occurrences.
SA
Santos
12 months ago
I remember practicing a question about quantifiers, and I think ? is related to matching zero or one times.
WY
Wynell
1 year ago
I think the ? symbol matches the preceding character zero or one times, but I'm not completely sure.
AR
Ariel
1 year ago
I'm not totally confident, but I think the ? symbol matches the preceding qualifier one or more times. That sounds right, so I'll go with option A.
MO
Mose
1 year ago
Ah, I remember learning this in class. The ? symbol means the preceding qualifier can match zero or more times. So the correct answer is B.
LA
Laurel
1 year ago
Hmm, I'm a bit confused on this one. I know the ? symbol is used for quantifiers, but I can't remember if it's for zero or one, or one or more. I'll have to think this through carefully.
MA
Macy
1 year ago
I'm pretty sure the ? symbol represents matching the preceding qualifier zero or one times, so I'll go with option C.
HE
Herminia
1 year ago
Wait, is the ? symbol a wildcard that matches anything? I'm just kidding, I know it's for matching the preceding qualifier zero or one times. Easy peasy!
VI
Virgina
1 year ago
D) Match a literal ?character.
LA
Lamonica
1 year ago
C) Match the preceding qualifier zero or one times.
JO
Jovita
1 year ago
B) Match the preceding qualifier zero or more times.
MA
Marg
1 year ago
A) Match the preceding qualifier one or more times.
LE
Lea
1 year ago
Option C is the way to go here. The ? symbol is a greedy quantifier, and that's exactly what the question is asking for.
OL
Oliva
1 year ago
Yes, that's correct. It's important to understand the different quantifiers in regular expressions.
RO
Roxanne
1 year ago
I agree, the ? symbol is a greedy quantifier so it matches zero or one times.
JO
Johnna
1 year ago
I think the answer is C) Match the preceding qualifier zero or one times.
BR
Brittni
2 years ago
I'm pretty sure it means matching the preceding qualifier one or more times.
LA
Lauryn
2 years ago
I believe it actually represents matching the preceding qualifier zero or more times.
CH
Christiane
2 years ago
Haha, I remember when I thought the ? symbol meant 'match a literal question mark.' Boy, was I in for a surprise on the exam!
LA
Lauran
1 year ago
C) Match the preceding qualifier zero or one times.
AL
Alease
1 year ago
B) Match the preceding qualifier zero or more times.
AR
Arlen
1 year ago
A) Match the preceding qualifier one or more times.
HA
Hannah
2 years ago
The ? symbol definitely represents matching the preceding qualifier zero or one times. That's just basic regex knowledge!
SA
Sabina
2 years ago
I think the ? symbol represents matching the preceding qualifier zero or one times.