Welcome to ExamTopics
ExamTopics Logo
- Expert Verified, Online, Free.

Unlimited Access

Get Unlimited Contributor Access to the all ExamTopics Exams!
Take advantage of PDF Files for 1000+ Exams along with community discussions and pass IT Certification Exams Easily.

Exam LFCS topic 1 question 245 discussion

Actual exam question from Linux Foundation's LFCS
Question #: 245
Topic #: 1
[All LFCS Questions]

What is the output of the following command sequence?
for token in a b c; do
echo -n "$token ";
done

  • A. anbncn
  • B. a b c
  • C. "a " "b " "c "
  • D. token token token
  • E. abc
Show Suggested Answer Hide Answer
Suggested Answer: B 🗳️

Comments

Chosen Answer:
This is a voting comment (?) , you can switch to a simple comment.
Switch to a voting comment New
Greenmile84
3 months, 1 week ago
Selected Answer: B
Here the output for token in a b c; do echo -n "$token "; done There is a space between token and ", if no space, then the answer is abc.
upvoted 1 times
...
EliteAllen
3 months, 3 weeks ago
Selected Answer: B
The given answer is correct
upvoted 1 times
...
ilovelucy
3 years, 8 months ago
This is incorrect. Replace the first line with "for token in "a " "b " "c " yada yada B is the right answer. As shown the answer is abc
upvoted 1 times
...
Community vote distribution
A (35%)
C (25%)
B (20%)
Other
Most Voted
A voting comment increases the vote count for the chosen answer by one.

Upvoting a comment with a selected answer will also increase the vote count towards that answer by one. So if you see a comment that you already agree with, you can upvote it instead of posting a new comment.

SaveCancel
Loading ...