LPI 102-400 - LPI Level 1 Exam 102, Junior Level Linux Certification, Part 2 of 2 Exam

Question #11 (Topic: Topic 1)
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.
Answer: C
Question #12 (Topic: Topic 1)
Which command makes the shell variable named VARIABLE visible to subshells?
A. export $VARIABLE B. export VARIABLE C. set $VARIABLE D. set VARIABLE E. env VARIABLE
Answer: B
Question #13 (Topic: Topic 1)
What word is missing from the following SQL statement?
__________ count(*) from tablename;
(Please specify the missing word using lower-case letters only.)
Answer: select
Question #14 (Topic: Topic 1)
Which of the following files, when existing, affect the behavior of the Bash shell? (Choose
TWO correct answers.)
A. ~/.bashconf B. ~/.bashrc C. ~/.bashdefaults D. ~/.bash_etc E. ~/.bash_profile
Answer: B,E
Question #15 (Topic: Topic 1)
What output will the following command sequence produce?
echo '1 2 3 4 5 6' | while read a b c; do
echo result: $c $b $a;
done
A. result: 3 4 5 6 2 1 B. result: 1 2 3 4 5 6 C. result: 6 5 4 D. result: 6 5 4 3 2 1 E. result: 3 2 1
Answer: A
Download Exam
Page: 3 / 24
Total 120 questions