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

Linux Foundation Exam LFCS Topic 1 Question 95 Discussion

Actual exam question for Linux Foundation's LFCS exam
Question #: 95
Topic #: 1
[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:

Aaron
39 minutes ago
I'm not sure, but I think the output might be option E) a b c because the command will echo each token with a space in between.
upvoted 0 times
...
Alberta
3 days ago
E) a b c is my guess. It's simple and straightforward, just like the command. Although, maybe the exam writers are trying to trick us. Who knows?
upvoted 0 times
...
Karl
5 days ago
I agree with Linn, the output should be abc because the command will echo each token without any spaces.
upvoted 0 times
...
Linn
6 days ago
I think the output is option B) abc.
upvoted 0 times
...
Martina
11 days ago
D) {a},{b},{c}, looks like it could be the output, but I'm not convinced. This exam is really testing our shell knowledge, isn't it?
upvoted 0 times
Ming
3 hours ago
A) anbncn
upvoted 0 times
...
...
Tomas
16 days ago
Easy peasy, the answer is B) abc. I learned this back in my shell scripting days. Hey, at least it's not a coding question, right?
upvoted 0 times
...
Rosio
19 days ago
Hmm, I'm not sure about this one. I'm going to go with C) $token$token$token. Seems like it might be a trick question.
upvoted 0 times
...
Novella
22 days ago
The correct answer is B) abc. The command simply prints out each token in the for loop, which results in the output abc.
upvoted 0 times
Arthur
2 hours ago
Correct!
upvoted 0 times
...
Fletcher
8 days ago
B) abc
upvoted 0 times
...
...

Save Cancel
az-700  pass4success  az-104  200-301  200-201  cissp  350-401  350-201  350-501  350-601  350-801  350-901  az-720  az-305  pl-300  

Warning: Cannot modify header information - headers already sent by (output started at /pass.php:70) in /pass.php on line 77