exam questions

Exam 101-400 All Questions

View all questions & answers for the 101-400 exam

Exam 101-400 topic 3 question 15 discussion

Actual exam question from LPI's 101-400
Question #: 15
Topic #: 3
[All 101-400 Questions]

Which of the following characters can be combined with a separator string in order to read from the current input source until the separator string, which is on a separate line and without any trailing spaces, is reached?

  • A. <<
  • B. <|
  • C. !<
  • D. &<
Show Suggested Answer Hide Answer
Suggested Answer: A 🗳️
Community vote distribution
A (100%)

Comments

Chosen Answer:
This is a voting comment (?). It is better to Upvote an existing comment if you don't have anything to add.
DuboisNicolasDuclair
1 year, 4 months ago
Selected Answer: A
The character that can be combined with a separator string to read from the current input source until the separator string (on a separate line without trailing spaces) is reached is: A. `<<` The `<<` operator, known as a "here document," is used for this purpose in various shell scripting languages, including Bash. It allows you to specify a delimiter (the separator string) and then input text until that delimiter is encountered on a line by itself. For example: ```bash cat <<END This is some text. It continues until the END delimiter is reached on a line by itself. END ``` In this example, the input text continues until the "END" delimiter is encountered.
upvoted 1 times
...
Community vote distribution
A (35%)
C (25%)
B (20%)
Other
Most Voted
A voting comment increases the vote count for the chosen answer by one.

Upvoting a comment with a selected answer will also increase the vote count towards that answer by one. So if you see a comment that you already agree with, you can upvote it instead of posting a new comment.

SaveCancel
Loading ...
exam
Someone Bought Contributor Access for:
SC-400
Brisbane, 1 minute ago