ExamGecko
Home / LPI / 102-500 / List of questions
Ask Question

LPI 102-500 Practice Test - Questions Answers, Page 3

Add to Whishlist

List of questions

Question 21

Report Export Collapse

Which of the following SQL statements will select the fields name and address from the contacts table?

SELECT (name, address) FROM contacts;
SELECT (name, address) FROM contacts;
SELECT (name address) FROM contacts;
SELECT (name address) FROM contacts;
SELECT name, address FROM contacts;
SELECT name, address FROM contacts;
SELECT name address FROM contacts;
SELECT name address FROM contacts;
Suggested answer: C
asked 18/09/2024
Mustafa Kubha
47 questions

Question 22

Report Export Collapse

Which directory in /etc is used to keep a sample copy of files and directories for when a new user has a home directory created? (Please provide the full path)

/etc/skel,/etc/skel/
/etc/skel,/etc/skel/
Suggested answer: A
asked 18/09/2024
dennis schouwenaars
41 questions

Question 23

Report Export Collapse

Which of the following configuration files should be modified to set default shell variables for all users?

/etc/bashrc
/etc/bashrc
/etc/profile
/etc/profile
~/.bash_profile
~/.bash_profile
/etc/.bashrc
/etc/.bashrc
Suggested answer: B
asked 18/09/2024
Yrae Franca de Pinho Gomes
56 questions

Question 24

Report Export Collapse

Which of the following is the best way to list all defined shell variables?

env
env
set
set
env -a
env -a
echo $ENV
echo $ENV
Suggested answer: B
asked 18/09/2024
Lin Sun
42 questions

Question 25

Report Export Collapse

Which command allows you to make a shell variable visible to subshells?

export $VARIABLE
export $VARIABLE
export VARIABLE
export VARIABLE
set $VARIABLE
set $VARIABLE
set VARIABLE
set VARIABLE
env VARIABLE
env VARIABLE
Suggested answer: B
asked 18/09/2024
pradeep singh dhesi
38 questions

Question 26

Report Export Collapse

Which of the following words is used to restrict the records that are returned from a SELECT query based on a supplied criteria for the values in the records?

LIMIT
LIMIT
FROM
FROM
WHERE
WHERE
IF
IF
Suggested answer: C
asked 18/09/2024
EMELINE LE QUENTREC
31 questions

Question 27

Report Export Collapse

What benefit does an alias in bash provide?

It provides faster lookups for commands in the system directory.
It provides faster lookups for commands in the system directory.
It creates a local copy of a file from another directory.
It creates a local copy of a file from another directory.
It hides what command you are running from others.
It hides what command you are running from others.
It allows a string to be substituted for the first word of a simple command.
It allows a string to be substituted for the first word of a simple command.
Suggested answer: D
asked 18/09/2024
Tu Nguyen
46 questions

Question 28

Report Export Collapse

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:

The file at that location was used to make the script.
The file at that location was used to make the script.
This script provides identical functionality as the file at that location.
This script provides identical functionality as the file at that location.
This script will self-extract into a file at that location.
This script will self-extract into a file at that location.
The program at that location will be used to process the script.
The program at that location will be used to process the script.
Suggested answer: D
asked 18/09/2024
Andrea Ciovati
43 questions

Question 29

Report Export Collapse

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

____ i in *.txt; do echo $i done

for
for
loop
loop
until
until
while
while
Suggested answer: A
Explanation:

Topic 2, User Interfaces and Desktops

asked 18/09/2024
Vaibhav Somani
41 questions

Question 30

Report Export Collapse

Which file used by XDM specifies the default wallpaper?

/etc/X11/xdm/Xsetup
/etc/X11/xdm/Xsetup
/etc/X11/xdm.conf
/etc/X11/xdm.conf
/etc/X11/xdm/Defaults
/etc/X11/xdm/Defaults
/etc/X11/defaults.conf
/etc/X11/defaults.conf
Suggested answer: A
asked 18/09/2024
Hitesh Karangiya
38 questions
Total 235 questions
Go to page: of 24