Lpi 102-400 LPI Level 1 Exam 102, Junior Level Linux Certification,Part 2 of 2 Online Training
Lpi 102-400 Online Training
The questions for 102-400 were last updated at Nov 19,2024.
- Exam Code: 102-400
- Exam Name: LPI Level 1 Exam 102, Junior Level Linux Certification,Part 2 of 2
- Certification Provider: Lpi
- Latest update: Nov 19,2024
Topic 1, Shells, Scripting and Data Management
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
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.
CORRECT TEXT
What word is missing from the following SQL statement?
insert into tablename ________(909, ‘text’);
(Please specify the missing word using lower-case letters only.)
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
What output will the command seq 10 produce?
- A . A continuous stream of numbers increasing in increments of 10 until stopped.
- B . The numbers 1 through 10 with one number per line.
- C . The numbers 0 through 9 with one number per line.
- D . The number 10 to standard output.
CORRECT TEXT
By default, the contents of which directory will be copied to a new user’s home directory when the account is created by passing the -m option to the useradd command? (Specify the full path to the directory.)
CORRECT TEXT
What word is missing from the following SQL statement?
__________ count(*) from tablename;
(Please specify the missing word using lower-case letters only.)
After issuing:
function myfunction { echo $1 $2 ; }
in Bash, which output does:
myfunction A B C
Produce?
- A . A B
- B . A B C
- C . A C
- D . B C
- E . C B A
Which of the following commands puts the output of the command date into the shell variable mydate?
- A . mydate="$(date)"
- B . mydate="exec date"
- C . mydate="$((date))"
- D . mydate="date"
- E . mydate="${date}"
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