Welcome to ExamTopics
ExamTopics Logo
- Expert Verified, Online, Free.
 

LPI 102-400 Exam Actual Questions

The questions for 102-400 were last updated on Nov. 21, 2024.
  • Viewing page 1 out of 30 pages.
  • Viewing questions 1-4 out of 120 questions

Topic 1 - Shells, Scripting and Data Management

Question #1 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
Reveal Solution Hide Solution   Discussion   3

Correct Answer: A 🗳️

Question #2 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.
Reveal Solution Hide Solution   Discussion   6

Correct Answer: C 🗳️

Question #3 Topic 1

SIMULATION -
What word is missing from the following SQL statement?
insert into tablename ________(909, 'text');
(Please specify the missing word using lower-case letters only.)

Reveal Solution Hide Solution   Discussion   2

Correct Answer: VALUES -or- values

Question #4 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
Reveal Solution Hide Solution   Discussion   1

Correct Answer: B 🗳️

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