nerdexam
CompTIA

LX0-101 · Question #282

Which of the following is the output when the below shell script executes? cat <<foobar Hello foobar foobar

The correct answer is D. Hello foobar. See the full explanation below for the reasoning.

Question

Which of the following is the output when the below shell script executes? cat <<foobar Hello foobar foobar

Options

  • AThe contents of the file foobar.
  • BHello
  • CNo output but a file named foobar is created.
  • DHello foobar
  • EHello foobar foobar

How the community answered

(61 responses)
  • A
    13% (8)
  • B
    7% (4)
  • C
    2% (1)
  • D
    75% (46)
  • E
    3% (2)

Community Discussion

No community discussion yet for this question.

Full LX0-101 Practice