nerdexam
LPI

101-400 · Question #339

What is the output when the following shell script executes? Cat <<foobar Hello foobar foobar

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

Question

What is the output when the following 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

How the community answered

(17 responses)
  • A
    12% (2)
  • B
    6% (1)
  • C
    6% (1)
  • D
    76% (13)

Community Discussion

No community discussion yet for this question.

Full 101-400 Practice