exam questions

Exam 101-400 All Questions

View all questions & answers for the 101-400 exam

Exam 101-400 topic 3 question 14 discussion

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

What is the output of the following command?
echo "Hello World" | tr -d aieou

  • A. Hello World
  • B. eoo
  • C. Hll Wrld
  • D. eoo Hll Wrld
Show Suggested Answer Hide Answer
Suggested Answer: C 🗳️

Comments

Chosen Answer:
This is a voting comment (?). It is better to Upvote an existing comment if you don't have anything to add.
Switch to a voting comment New
DuboisNicolasDuclair
1 year, 4 months ago
Selected Answer: C
The output of the following command: ```shell echo "Hello World" | tr -d aieou ``` is: C. Hll Wrld The `tr` command is used to delete characters specified in its argument. In this case, it deletes the characters "a," "i," "e," "o," and "u" from the input string "Hello World," resulting in "Hll Wrld."
upvoted 1 times
...
ciola89
1 year, 6 months ago
Selected Answer: C
The tr command is a UNIX command-line utility for translating or deleting characters. It supports a range of transformations including uppercase to lowercase, squeezing repeating characters, deleting specific characters, and basic find and replace. It can be used with UNIX pipes to support more complex translation. How to delete specified characters using -d option. To delete specific characters use the -d option. This option deletes characters in the first set specified. $ echo "Welcome To GeeksforGeeks" | tr -d W Output: elcome To GeeksforGeeks
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:
SY0-701
London, 1 minute ago