exam questions

Exam 010-160 All Questions

View all questions & answers for the 010-160 exam

Exam 010-160 topic 1 question 71 discussion

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

Which of the following statements are true regarding a typical shell script? (Choose two.)

  • A. It has the executable permission bit set.
  • B. It starts with the two character sequence #!.
  • C. It is located in /usr/local/scripts/.
  • D. It is located in /etc/bash/scripts/.
  • E. It is compiled into a binary file compatible with the current machine architecture.
Show Suggested Answer Hide Answer
Suggested Answer: AB 🗳️

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
Djerod
Highly Voted 3 years, 5 months ago
A, B are correct.
upvoted 23 times
...
MWU
Highly Voted 3 years, 5 months ago
A& B is the correct answer. E is for a program written in C++, Java , etc
upvoted 13 times
...
AndrewGrasso
Most Recent 2 months, 3 weeks ago
Selected Answer: AB
Regarding a typical shell script, the following statements are true: It has the executable permission bit set 1. It starts with the two character sequence #! (called a shebang) that specifies the interpreter to be used to execute the script 12. Therefore, options A and B are correct. Shell scripts are not compiled into binary files. Instead, they are interpreted by the shell program 1. Also, there is no standard location for shell scripts. They can be located anywhere in the file system, depending on the user’s preference and requirements
upvoted 2 times
...
Nabushar
6 months, 2 weeks ago
A, B is correct
upvoted 1 times
...
Router
1 year, 2 months ago
correct answer is A,B
upvoted 2 times
...
TheExaminerBot
1 year, 3 months ago
Selected Answer: AB
Shell scripts are not compiled.
upvoted 2 times
...
Notnotataco
1 year, 7 months ago
Selected Answer: AB
A,B have to be the right answer.
upvoted 1 times
...
shosha
1 year, 12 months ago
Selected Answer: AB
A & B are correct.
upvoted 1 times
...
DanYendler2014
2 years ago
#! can be omitted if the script consists only of a set of generic system commands, using no internal shell directives. But is that *typical*? is still say B.
upvoted 1 times
...
JRossJ
2 years, 4 months ago
I think the premise on these choose two questions is that there might be three right answers. This is the second question where there are three possible correct answers out of the five.
upvoted 1 times
...
DS1982
2 years, 6 months ago
There is no way B is not one of the right answers, with A ofc
upvoted 2 times
...
Wes_60
2 years, 9 months ago
A and B are correct
upvoted 2 times
...
mikymouse
2 years, 10 months ago
So why does it say A E if A B is correct
upvoted 1 times
...
Allan85
2 years, 11 months ago
A,B correct answer
upvoted 2 times
...
h0st
3 years ago
A, B 100% correct
upvoted 3 times
...
RedCloud
3 years, 1 month ago
E is not correct because scripts are interpreted, not compiled, as the examples by MWU show.
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