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

- Free Preparation Discussions

Linux Foundation Exam LFCS Topic 5 Question 69 Discussion

Actual exam question for Linux Foundation's LFCS exam
Question #: 69
Topic #: 5
[All LFCS Questions]

What is the output of the following command?

for token in a b c; do

echo -n ${token};

done

Show Suggested Answer Hide Answer
Suggested Answer: B

Contribute your Thoughts:

Ona
5 months ago
I believe the correct answer is option B as well, because the command simply echoes a, b, c without any additional characters.
upvoted 0 times
...
Harrison
5 months ago
I agree with Jarod, the command will print abc.
upvoted 0 times
...
Jarod
6 months ago
I think the output is option B) abc.
upvoted 0 times
...
Magnolia
6 months ago
I believe the correct answer is B) abc as well. The ${token} syntax is substituting the values a, b, c.
upvoted 0 times
...
Rashad
6 months ago
I agree with Rozella, it should be abc because the loop is iterating over a, b, c and echoing each token.
upvoted 0 times
...
Rozella
6 months ago
I think the output is B) abc.
upvoted 0 times
...

Save Cancel