nerdexam
CompTIA

LX0-101 · Question #132

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

The correct answer is A. result: 3 4 5 6 2 1. See the full explanation below for the reasoning.

Question

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

Options

  • Aresult: 3 4 5 6 2 1
  • Bresult: 1 2 3 4 5 6
  • Cresult: 6 5 4
  • Dresult: 6 5 4 3 2 1
  • Eresult: 3 2 1

How the community answered

(40 responses)
  • A
    75% (30)
  • B
    15% (6)
  • C
    3% (1)
  • D
    5% (2)
  • E
    3% (1)

Community Discussion

No community discussion yet for this question.

Full LX0-101 Practice