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)- A12% (2)
- B6% (1)
- C6% (1)
- D76% (13)
Community Discussion
No community discussion yet for this question.