nerdexam
LPI

117-010 · Question #22

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

The correct answer is B. abc. See the full explanation below for the reasoning.

Question

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

Options

  • Aanbncn
  • Babc
  • C$token$token$token
  • D{a}{b}{c}
  • Ea b c

How the community answered

(20 responses)
  • A
    10% (2)
  • B
    80% (16)
  • D
    5% (1)
  • E
    5% (1)

Community Discussion

No community discussion yet for this question.

Full 117-010 Practice