11.11 Special 70% Discount Offer - Ends in 0d 00h 00m 00s - Coupon code: Board70

Changed 102-500 Exam Questions

Page: 5 / 14
Question 20

What keyword is missing from this code sample of a shell script?

____ i in *.txt; do

echo $i

done

Options:

A.

for

B.

loop

C.

until

D.

while

Question 21

Which of the following commands puts the output of the command date into the shell variable mydate?

Options:

A.

mydate="$(date)"

B.

mydate="exec date"

C.

mydate="$((date))"

D.

mydate="date"

E.

mydate="${date}"

Question 22

You are looking into a new script you received from your senior administrator. In the very first line you notice a #! followed by a file path. This indicates that:

Options:

A.

The file at that location was used to make the script.

B.

This script provides identical functionality as the file at that location.

C.

This script will self-extract into a file at that location.

D.

The program at that location will be used to process the script.

Question 23

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

Options:

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.

Page: 5 / 14
Exam Code: 102-500
Exam Name: LPIC-1 Exam 102, Part 2 of 2, version 5.0
Last Update: Nov 14, 2024
Questions: 197
102-500 pdf

102-500 PDF

$24  $80
102-500 Engine

102-500 Testing Engine

$28.5  $95
102-500 PDF + Engine

102-500 PDF + Testing Engine

$39  $130