exam questions

Exam 010-160 All Questions

View all questions & answers for the 010-160 exam

Exam 010-160 topic 1 question 69 discussion

Actual exam question from LPI's 010-160
Question #: 69
Topic #: 1
[All 010-160 Questions]

What is the return value of a shell script after successful execution?

  • A. 1
  • B. 0
  • C. -1
  • D. -255
  • E. 255
Show Suggested Answer Hide Answer
Suggested Answer: B 🗳️

Comments

Chosen Answer:
This is a voting comment. You can switch to a simple comment. It is better to Upvote an existing comment if you don't have anything to add.
Switch to a voting comment New
burro
Highly Voted 2 years ago
PUTA DE BURRROOOOOOS
upvoted 6 times
...
ahenriquez02
Most Recent 8 months, 3 weeks ago
The correct answer is B Every command returns an exit status (sometimes referred to as a return status or exit code). A successful command returns a 0, while an unsuccessful one returns a non-zero value that usually can be interpreted as an error code. Well-behaved UNIX commands, programs, and utilities return a 0 exit code upon successful completion, though there are some exceptions.
upvoted 3 times
...
beazzlebub
2 years, 1 month ago
B is the correct answer
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:
AIF-C01
Bangkok, 1 minute ago