Welcome to ExamTopics
ExamTopics Logo
- Expert Verified, Online, Free.

Unlimited Access

Get Unlimited Contributor Access to the all ExamTopics Exams!
Take advantage of PDF Files for 1000+ Exams along with community discussions and pass IT Certification Exams Easily.

Exam LFCS topic 1 question 122 discussion

Actual exam question from Linux Foundation's LFCS
Question #: 122
Topic #: 1
[All LFCS Questions]

When the command echo $ outputs 1, which of the following statements is true?

  • A. It is the process ID of the echo command.
  • B. It is the process ID of the current shell.
  • C. It is the exit value of the command executed immediately before echo.
  • D. It is the exit value of the echo command.
Show Suggested Answer Hide Answer
Suggested Answer: C 🗳️

Comments

Chosen Answer:
This is a voting comment (?) , you can switch to a simple comment.
Switch to a voting comment New
boorce
3 weeks, 6 days ago
Selected Answer: C
Missing "?" in question :) => echo $? to return exit codes.
upvoted 1 times
...
Funkslinger
2 years, 1 month ago
In use it would actually be "echo $?"
upvoted 2 times
...
stef_88
4 years ago
If answer C is correct then the Question should have been "echo S?"
upvoted 4 times
Funkslinger
2 years, 1 month ago
No, it should actually be... echo $?
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 ...