BlackFriday 2024! Hurry Up, Grab the Special Discount - Save 25% - Ends In 00:00:00 Coupon code: SAVE25
Welcome to Pass4Success

- Free Preparation Discussions

LPI Exam 101-500 Topic 1 Question 99 Discussion

Actual exam question for LPI's 101-500 exam
Question #: 99
Topic #: 1
[All 101-500 Questions]

Which of the following regular expressions represents a single upper-case letter?

Show Suggested Answer Hide Answer
Suggested Answer: B

Contribute your Thoughts:

Milly
1 months ago
C) !a-z? That's the opposite of what we want! We need to match uppercase, not exclude lowercase.
upvoted 0 times
...
Janine
1 months ago
A) :UPPER:? What is this, a special regex command from some obscure programming language? I'll stick with the good old-fashioned [A-Z].
upvoted 0 times
Geraldine
14 days ago
Yeah, [A-Z] is the standard way to represent a single upper-case letter in regex.
upvoted 0 times
...
Leontine
17 days ago
I agree, [A-Z] is more straightforward and widely recognized.
upvoted 0 times
...
Denise
23 days ago
I think :UPPER: is not a common regex command, I prefer using [A-Z] as well.
upvoted 0 times
...
...
Lashawnda
1 months ago
I'm not sure about this one. Can someone explain why option B) is the correct answer?
upvoted 0 times
...
Marnie
1 months ago
Hah, E) {AZ}? What is this, a secret code? I think the designers of this exam have been watching too many spy movies.
upvoted 0 times
Lavonna
5 days ago
B) [A-Z]
upvoted 0 times
...
Wilburn
8 days ago
A) :UPPER:
upvoted 0 times
...
...
Vallie
1 months ago
I agree with Kenneth. Regular expression [A-Z] matches any single upper-case letter.
upvoted 0 times
...
Mitsue
2 months ago
D) %C? Really? That's just nonsense. How does that even make sense as a regular expression?
upvoted 0 times
Rashad
14 days ago
E) {AZ} is not a valid regular expression for a single upper-case letter.
upvoted 0 times
...
Brigette
16 days ago
C) !a-z is not a valid regular expression for a single upper-case letter.
upvoted 0 times
...
Francoise
16 days ago
C) !a-z is not a valid regular expression for a single upper-case letter.
upvoted 0 times
...
Maia
17 days ago
B) [A-Z] also represents a single upper-case letter.
upvoted 0 times
...
German
29 days ago
A) :UPPER: is the correct regular expression for a single upper-case letter.
upvoted 0 times
...
Mee
1 months ago
B) [A-Z] also represents a single upper-case letter.
upvoted 0 times
...
Jovita
1 months ago
A) :UPPER: is the correct regular expression for a single upper-case letter.
upvoted 0 times
...
...
Kenneth
2 months ago
I think the answer is B) [A-Z]. It represents a range of upper-case letters.
upvoted 0 times
...
Lawana
2 months ago
B) [A-Z] is the correct answer. It's the only one that represents a single uppercase letter.
upvoted 0 times
Anisha
2 months ago
I agree, [A-Z] is the correct regular expression for a single upper-case letter.
upvoted 0 times
...
Sheridan
2 months ago
B) [A-Z] is the correct answer. It's the only one that represents a single uppercase letter.
upvoted 0 times
...
...

Save Cancel