Free LPI 102-500 Exam Actual Questions

The questions for 102-500 were last updated On Apr 24, 2024

Question No. 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

Show Answer Hide Answer
Correct Answer: A

Question No. 2

When the command echo $ outputs 1, which of the following statements is true?

Show Answer Hide Answer
Correct Answer: C

Question No. 3

Which command makes the shell variable named VARIABLE visible to subshells?

Show Answer Hide Answer
Correct Answer: B

Question No. 4

What output will the command seq 10 produce?

Show Answer Hide Answer
Correct Answer: B

Question No. 5

After issuing:

function myfunction { echo $1 $2 ; }

in Bash, which output does:

myfunction A B C

Produce?

Show Answer Hide Answer
Correct Answer: A