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 102-400 topic 1 question 1 discussion

Actual exam question from LPI's 102-400
Question #: 1
Topic #: 1
[All 102-400 Questions]

What output will the following command sequence produce?
echo '1 2 3 4 5 6' | while read a b c; do
echo result: $c $b $a;
done

  • A. result: 3 4 5 6 2 1
  • B. result: 1 2 3 4 5 6
  • C. result: 6 5 4
  • D. result: 6 5 4 3 2 1
  • E. result: 3 2 1
Show Suggested Answer Hide Answer
Suggested Answer: A 🗳️

Comments

Chosen Answer:
This is a voting comment (?) , you can switch to a simple comment.
Switch to a voting comment New
drliu1202
1 year, 9 months ago
Selected Answer: A
The last variable does ignore spaces.
upvoted 1 times
...
jegga
2 years, 4 months ago
B is correct
upvoted 1 times
jegga
2 years, 4 months ago
sorry !!! Correct Answer: A Explanation: a = 1, b =2, and c = 3,4,5,6. Hence, the result of $c $b $a = 345621
upvoted 3 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 ...