exam questions

Exam 102-400 All Questions

View all questions & answers for the 102-400 exam

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 (?). It is better to Upvote an existing comment if you don't have anything to add.
Switch to a voting comment New
drliu1202
2 years, 7 months ago
Selected Answer: A
The last variable does ignore spaces.
upvoted 1 times
...
jegga
3 years, 3 months ago
B is correct
upvoted 1 times
jegga
3 years, 3 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 4 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 ...
exam
Someone Bought Contributor Access for:
SY0-701
London, 1 minute ago