nerdexam
LPI

117-010 · Question #20

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

The correct answer is B. a b c. See the full explanation below for the reasoning.

Question

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

Options

  • Aanbncn
  • Ba b c
  • C"a " "b " "c "
  • Dtoken token token
  • Eabc

How the community answered

(39 responses)
  • A
    3% (1)
  • B
    72% (28)
  • C
    15% (6)
  • D
    8% (3)
  • E
    3% (1)

Community Discussion

No community discussion yet for this question.

Full 117-010 Practice