Pass the LPI LPIC Level 1 102-500 Questions and answers with CertsForce

Viewing page 3 out of 7 pages
Viewing questions 21-30 out of questions
Questions # 21:

Your senior administrator asked you to change the default background of his machine, which uses XDM. Which file would you edit to achieve this?

Options:

A.

/etc/X11/xdm/Xsetup


B.

/etc/X11/xdm.conf


C.

/etc/X11/xdm/Defaults


D.

/etc/X11/defaults.conf


Questions # 22:

What is the default name of the configuration file for the Xorg X11 server? (Specify the file name only without any path.)


Questions # 23:

What is the purpose of a screen reader?

Options:

A.

It reads text displayed on the screen to blind or visually impaired people.


B.

It reads the parameters of the attached monitors and creates an appropriate X11 configuration.


C.

It displays lines and markers to help people use speed reading techniques.


D.

It manages and displays files that contain e-books.


Questions # 24:

Which command can be used to investigate the properties for a particular window in X by clicking that window? (Specify ONLY the command without any path or parameters.)


Questions # 25:

What is the difference between the commands test -e path and test -f path?

Options:

A.

They are equivalent options with the same behaviour.


B.

The -f option tests for a regular file. The -e option tests for an empty file.


C.

Both options check the existence of the path. The -f option also confirms that it is a regular file.


D.

The -f option tests for a regular file. The -e option tests for an executable file.


Questions # 26:

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

Options:

A.

/etc/bashrc


B.

/etc/profile


C.

~/.bash_profile


D.

/etc/.bashrc


Questions # 27:

What benefit does an alias in bash provide?

Options:

A.

It provides faster lookups for commands in the system directory.


B.

It creates a local copy of a file from another directory.


C.

It hides what command you are running from others.


D.

It allows a string to be substituted for the first word of a simple command.


Questions # 28:

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


Questions # 29:

Which of the following SQL queries counts the number of occurrences for each value of the field order_type in the table orders?

Options:

A.

SELECT order_type,COUNT(*) FROM orders WHERE order_type=order_type;


B.

SELECT order_type,COUNT(*) FROM orders GROUP BY order_type;


C.

COUNT(SELECT order_type FROM orders);


D.

SELECT COUNT(*) FROM orders ORDER BY order_type;


E.

SELECT AUTO_COUNT FROM orders COUNT order_type;


Questions # 30:

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?

Options:

A.

LIMIT


B.

FROM


C.

WHERE


D.

IF


Viewing page 3 out of 7 pages
Viewing questions 21-30 out of questions