exam questions

Exam 101-400 All Questions

View all questions & answers for the 101-400 exam

Exam 101-400 topic 3 question 44 discussion

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

Which of the following command sets the Bash variable named TEST with the content FOO?

  • A. set TEST="FOO"
  • B. TEST = "FOO"
  • C. var TEST="FOO"
  • D. TEST="FOO"
Show Suggested Answer Hide Answer
Suggested Answer: D 🗳️

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: D
The command that sets the Bash variable named `TEST` with the content `FOO` is: D. `TEST="FOO"` In Bash, you can assign a value to a variable by simply using the variable name followed by an equal sign and the value, without any spaces around the equal sign. For example, `TEST="FOO"` assigns the value "FOO" to the variable `TEST`.
upvoted 1 times
...
sis_net_sec
2 years, 11 months ago
What is the difference between B and D
upvoted 2 times
Lazylinux
2 years, 10 months ago
SPACE, there should be no space and B has space and will not work D is the answer
upvoted 2 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