Deal of The Day! Hurry Up, Grab the Special Discount - Save 25% - Ends In 00:00:00 Coupon code: SAVE25
Welcome to Pass4Success

- Free Preparation Discussions

LPI 102-500 Exam - Topic 3 Question 76 Discussion

Actual exam question for LPI's 102-500 exam
Question #: 76
Topic #: 3
[All 102-500 Questions]

What keyword is missing from this code sample of a shell script?

____ i in *.txt; do

echo $i

done

Show Suggested Answer Hide Answer
Suggested Answer: C, D, E

Contribute your Thoughts:

0/2000 characters
Ettie
4 months ago
"Until" makes no sense in this context.
upvoted 0 times
...
Anglea
5 months ago
Surprised it's not "loop"! That sounds right too.
upvoted 0 times
...
Kaitlyn
5 months ago
I thought it could be "while" at first.
upvoted 0 times
...
Cristy
5 months ago
Yeah, it has to be "for".
upvoted 0 times
...
Evelynn
5 months ago
Definitely missing "for" here.
upvoted 0 times
...
Justine
6 months ago
"Until" doesn't seem right, but I can't shake the feeling that there might be another keyword that fits here.
upvoted 0 times
...
German
6 months ago
I remember practicing a similar question, and I think "for" was definitely the right choice for looping through files.
upvoted 0 times
...
Lenna
6 months ago
I'm not entirely sure, but "while" seems like it could fit too, though it doesn't quite match the syntax I'm used to.
upvoted 0 times
...
Olen
6 months ago
I think the missing keyword is "for" since it looks like a loop that iterates over files.
upvoted 0 times
...
Elina
6 months ago
Wait, what? I'm a little confused by this question. Is the missing keyword "loop"? Or is it something else? I'll have to think about this a bit more.
upvoted 0 times
...
Lanie
6 months ago
Okay, let's see here. The code is iterating over a list of .txt files, so the missing keyword must be "for". I'm feeling good about this one.
upvoted 0 times
...
Hillary
6 months ago
Ah, I've seen this type of question before. The missing keyword is definitely "for". I'll select that option and move on to the next question.
upvoted 0 times
...
Kanisha
6 months ago
This looks like a pretty straightforward shell script question. I'm pretty confident I know the answer, but I'll double-check the syntax just to be sure.
upvoted 0 times
...
Arthur
6 months ago
Hmm, I'm a little unsure about this one. The missing keyword seems obvious, but I want to make sure I'm not overlooking something. Let me think this through carefully.
upvoted 0 times
...
Bernardo
6 months ago
Hmm, I'm not sure about this one. I'll need to double-check the package.json file and the server.js file to see if there are any specific instructions on how to start the server.
upvoted 0 times
...
Tora
6 months ago
I'm a bit confused by this question. I know there are public and private IP addresses, but I'm not sure how to distinguish them. I'll have to review my notes on IP addressing before answering this.
upvoted 0 times
...
Brande
6 months ago
Always watch out for keywords. 'Optimal drug use' suggests we want the most precise definition of when and how to use a medication. A looks most comprehensive.
upvoted 0 times
...
Hollis
11 months ago
The missing keyword is obviously 'for'. It's the equivalent of saying 'Hey, bash, please do this thing to each of these files for me.'
upvoted 0 times
Shanice
10 months ago
Definitely 'for'. It's a common keyword used for looping through files in shell scripts.
upvoted 0 times
...
Goldie
10 months ago
I think it should be 'for' as well. That's how you iterate through files in a shell script.
upvoted 0 times
...
Stephaine
10 months ago
Yes, you're right. 'for' is the missing keyword in the code sample.
upvoted 0 times
...
...
Jesusita
11 months ago
I'm voting for 'for'. Can't imagine anyone would use 'until' or 'while' to loop over a set of files. Unless they're a secret agent trying to hack the CIA or something.
upvoted 0 times
...
Stephania
11 months ago
Easy peasy, the answer is 'for'. Bash scripts and 'for' loops go together like peanut butter and jelly.
upvoted 0 times
Lanie
11 months ago
I agree, 'for' is the missing keyword in the code sample.
upvoted 0 times
...
Marti
11 months ago
Definitely 'for', that's how you iterate through files in a directory.
upvoted 0 times
...
Ariel
11 months ago
A) for
upvoted 0 times
...
...
Carlota
11 months ago
Hmm, I'd go with 'for'. Anything else just doesn't make sense in this context. Unless the exam writer is trying to trick us with some obscure bash syntax...
upvoted 0 times
...
Elise
12 months ago
The missing keyword is definitely 'for'. It's the classic way to iterate over a set of files in a shell script.
upvoted 0 times
Cyril
10 months ago
The 'for' keyword is essential for looping through files in this context.
upvoted 0 times
...
Johanna
10 months ago
It's important to use the right keyword for proper script execution.
upvoted 0 times
...
Tambra
10 months ago
Using 'for' is the correct way to iterate over files in a shell script.
upvoted 0 times
...
Catalina
11 months ago
I agree, 'for' is the missing keyword in the code sample.
upvoted 0 times
...
...
Georgene
1 year ago
I'm not sure, but I think the missing keyword is A) for as well. It makes sense to use it in this context.
upvoted 0 times
...
Cristy
1 year ago
I agree with Fannie, the missing keyword is A) for because it is used to start a loop in shell scripts.
upvoted 0 times
...
Fannie
1 year ago
I think the missing keyword is A) for.
upvoted 0 times
...

Save Cancel