LPI 702-100 Exam Actual Questions

The questions for 702-100 were last updated on Nov. 25, 2024.
  • Viewing page 1 out of 14 pages.
  • Viewing questions 1-4 out of 53 questions

Topic 1 - Exam A

Question #1 Topic 1

How often does ? match the preceding expression in a regular expression?

  • A. Two or more times
  • B. Exactly one time
  • C. Any number of times
  • D. Zero or one times
  • E. One or more times
Reveal Solution Hide Solution   Discussion  

Correct Answer: D 🗳️

Question #2 Topic 1

Consider the following file legalfile:
disclosure
non-disclosure
non disclosure
Which line or lines in the file does the following command match? Note the space after the dash within the brackets. grep "non[- ]disclosure" legalfile

  • A. disclosure only
  • B. non-disclosure only
  • C. non disclosure only
  • D. disclosure and non-disclosure only
  • E. non-disclosure and non disclosure only
Reveal Solution Hide Solution   Discussion  

Correct Answer: E 🗳️

Question #3 Topic 1

Which command shows all processes owned by the user bob?

  • A. who -l bob
  • B. pgrep -u bob
  • C. ps -o -a bob
  • D. top bob
  • E. last -p bob
Reveal Solution Hide Solution   Discussion  

Correct Answer: B 🗳️

Question #4 Topic 1

Which of the following excerpts is a valid if condition in the Bourne shell?

  • A.
  • B.
  • C.
  • D.
  • E.
Reveal Solution Hide Solution   Discussion  

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