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)- A13% (8)
- B7% (4)
- C2% (1)
- D75% (46)
- E3% (2)
Community Discussion
No community discussion yet for this question.