exam questions

Exam 102-400 All Questions

View all questions & answers for the 102-400 exam

Exam 102-400 topic 1 question 2 discussion

Actual exam question from LPI's 102-400
Question #: 2
Topic #: 1
[All 102-400 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 (?). It is better to Upvote an existing comment if you don't have anything to add.
Switch to a voting comment New
NetOps_Dave
2 years ago
echo $ outputs the pid of the current shell, echo $? outputs the value of the command executed before echo
upvoted 1 times
...
cloud_user13
3 years, 4 months ago
exit status of last command is displayed by echo $?
upvoted 2 times
Rupo7
3 years ago
Yes, I think the question has a mistake, it should be 'what does it mean if echo $? outputs 1?' The answer is the exit status of the last statement e.g. false echo $? 1
upvoted 1 times
...
...
Audio00_02
4 years, 2 months ago
peggio del netacad
upvoted 3 times
Audio00_02
4 years, 2 months ago
*netacovid
upvoted 3 times
...
...
dontone_covidone
4 years, 2 months ago
è sbagliata la domanda, bagordi è "$?"
upvoted 4 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