New Year Sale 2026! Hurry Up, Grab the Special Discount - Save 25% - Ends In 00:00:00 Coupon code: SAVE25
Welcome to Pass4Success

- Free Preparation Discussions

GAQM LCP-001 Exam - Topic 4 Question 76 Discussion

Actual exam question for GAQM's LCP-001 exam
Question #: 76
Topic #: 4
[All LCP-001 Questions]

Which of the following commands would display the lines containing capital letters form the file "turkey.txt"?

Show Suggested Answer Hide Answer
Suggested Answer: A

Contribute your Thoughts:

0/2000 characters
Charisse
3 months ago
E looks like a syntax error to me, not valid.
upvoted 0 times
...
Fidelia
3 months ago
Wait, can you really use grep like that? Seems off.
upvoted 0 times
...
Ellsworth
3 months ago
A is totally wrong, it won't show capital letters.
upvoted 0 times
...
Emmett
4 months ago
I think D is actually what you want.
upvoted 0 times
...
Leoma
4 months ago
Definitely B, that's the right command!
upvoted 0 times
...
Jolanda
4 months ago
I don't recall seeing anything like option E in our practice, it seems off to me, but I could be wrong.
upvoted 0 times
...
Noel
4 months ago
I feel like option D might be the right choice since it uses grep with a negative flag, but I'm not completely confident about that.
upvoted 0 times
...
Gerry
4 months ago
I'm not entirely sure, but I remember something about using wc for counting lines or words, so maybe A or C could be relevant?
upvoted 0 times
...
Ahmed
5 months ago
I think option B looks familiar since we practiced using grep to find specific patterns in files.
upvoted 0 times
...
Dante
5 months ago
I'm leaning towards option B as well. The question is asking for a command to display the lines containing capital letters, and grep with the [A-Z] pattern seems like the most straightforward way to do that. I'll go with B unless I can come up with a really good reason not to.
upvoted 0 times
...
Pamella
5 months ago
Okay, I think I've got this. Option B, "grep -n [A-Z] turkey.txt", should do the trick. The -n flag will show the line numbers, which could be helpful. I feel pretty confident about this one.
upvoted 0 times
...
Jose
5 months ago
Hmm, I'm a bit unsure about this one. I know grep can be used to search for patterns, but I'm not sure if the [A-Z] syntax is correct. Maybe I should double-check the grep documentation just to be sure.
upvoted 0 times
...
Rana
5 months ago
This looks like a straightforward grep question. I think option B is the way to go - it should display the lines containing capital letters from the file.
upvoted 0 times
...
Marsha
5 months ago
Wait, is it really that simple? I'm wondering if there's some kind of trick here. Maybe one of the other options is doing something more advanced that I'm missing. I'll have to think this through a bit more carefully.
upvoted 0 times
...
Laticia
5 months ago
Hmm, I think the employees themselves would be the best source here. They're the ones who can really speak to what motivates them and what rewards elements are most valuable.
upvoted 0 times
...
Curt
10 months ago
I think option D is trying to do the opposite of what the question is asking. Grep -v will display the lines that don't contain capital letters.
upvoted 0 times
...
Venita
10 months ago
Haha, option E is just silly. 'for [A-Z] in turkey.txt | count'? That's not even a valid command!
upvoted 0 times
Beatriz
8 months ago
Yeah, that's the command to display lines with capital letters.
upvoted 0 times
...
Ammie
9 months ago
I think the correct answer is B) grep -n [A-Z] turkey.txt
upvoted 0 times
...
Deandrea
9 months ago
I agree, option E doesn't make any sense.
upvoted 0 times
...
...
Nohemi
10 months ago
I'm not sure about option C. Piping the output of cat to wc and then specifying [A-Z] doesn't seem quite right.
upvoted 0 times
...
Rickie
10 months ago
I'm not sure, but I think option B makes sense because it specifies to search for capital letters in the file.
upvoted 0 times
...
Geraldine
10 months ago
I agree with Candida, grep command is used to search for patterns in files.
upvoted 0 times
...
Frank
11 months ago
Option B looks good to me. grep is the right command to search for patterns in a file, and the -n option will display the line numbers as well.
upvoted 0 times
Timothy
9 months ago
User 2: Yes, I agree. grep -n [A-Z] turkey.txt will display the lines with capital letters.
upvoted 0 times
...
Ozell
9 months ago
User 1: I think option B is the correct one.
upvoted 0 times
...
...
Candida
11 months ago
I think the answer is B) grep -n [A-Z] turkey.txt.
upvoted 0 times
...

Save Cancel