CompTIA LX0-104 - CompTIA Linux+ Powered by LPI 2 Exam

Question #11 (Topic: Shells, Scripting and Data Management)
What is the difference between the commands test -e path and test -f path?
A. They are equivalent options with the same behaviour. B. The -f option tests for a regular file. The -e option tests for an empty file. C. Both options check the existence of the path. The -f option also confirms that it is a regular file. D. The -f option tests for a regular file. The -e option tests for an executable file.
Answer: C
Question #12 (Topic: Shells, Scripting and Data Management)
How can the existing environment variable FOOBAR be suppressed for the execution of the script./myscript only?
A. unset -v FOOBAR;./myscript B. set -a FOOBAR="";./myscript C. env -u FOOBAR./myscript D. env -i FOOBAR./myscript
Answer: C
Question #13 (Topic: Shells, Scripting and Data Management)
When the command echo $$ outputs 12942, what is the meaning of 12942?
A. It is the process ID of the echo command. B. It is the process ID of the current shell. C. It is the process ID of the last command executed. D. It is the process ID of the last command which has been placed in the background.
Answer: B
Question #14 (Topic: Shells, Scripting and Data Management)
What output will the following command produce?
seq 1 5 20
A. 1 B. 1 C. 1 D. 2 E. 5
Answer: A
Question #15 (Topic: Shells, Scripting and Data Management)
Which of the following words is used to restrict the records that are returned from a SELECT SQL query based on a supplied criteria for the values in the records?
A. CASE B. FROM C. WHERE D. IF
Answer: C
Download Exam
Page: 3 / 36
Total 178 questions