LPI 102-500 Exam (page: 6)
LPI C-1 Exam 102, Part 2 of 2, version 5.0
Updated on: 25-Dec-2025

Viewing Page 6 of 31

What is the purpose of the Sticky Keys feature in X?

  1. To assist users who have difficulty holding down multiple keys at once
  2. To prevent repeated input of a single character if the key is held down
  3. To ignore brief keystrokes according to a specified time limit
  4. To repeat the input of a single character

Answer(s): A

Explanation:

The Sticky Keys feature in X is an accessibility option that allows users to press modifier keys (such as Ctrl, Alt, Shift, or the Windows key) one at a time, instead of holding them down simultaneously, to perform keyboard shortcuts. For example, to copy something, a user can press Ctrl, release it, and then press C, instead of pressing Ctrl+C together. This can be helpful for users who have difficulty pressing multiple keys at once, or who prefer not to do so.


Reference:

https://www.howtogeek.com/739764/how-to-turn-off-sticky-keys-on-windows-10/ https://geekflare.com/using-sticky-keys-in-windows/



Why is the xhost program considered dangerous to use?

  1. It makes it difficult to uniquely identify a computer on the network.
  2. It allows easy access to your X server by other users.
  3. It logs sensitive information to syslog.
  4. It makes your computer share network resources without any authentication.
  5. It is a graphical DNS tool with known exploits.

Answer(s): B

Explanation:

The xhost program is used to add and delete host names or user names to the list allowed to make connections to the X server1. In the case of hosts, this provides a rudimentary form of privacy control and security. It is only sufficient for a workstation (single user) environment, although it does limit the worst abuses1. However, if xhost is used to grant access to everyone, even if they aren't on the list (i.e., access control is turned off), then any user on the network can connect to your X server and monitor your keystrokes, capture your screen, or run malicious programs2. This is why xhost is considered dangerous to use and should be avoided in favor of more secure methods, such as xauth or ssh23.


Reference:

xhost linux command man page - commandlinux.com
Linux Xhost Command Help and Examples - Computer Hope xhost(1) -- Arch manual pages



An administrator wants to determine the geometry of a particular window in X, so she issues the __________ -metric command and then clicks on the window.

  1. /usr/bin/xwininfo,
    xwininfo

Answer(s): A

Explanation:

The xwininfo command is a utility for displaying information about windows in X. It can show various attributes of a window, such as its location, size, depth, border width, visual class, colormap, map state, and event masks. The -metric option specifies that all dimensions should be displayed in metric units (millimeters) rather than pixels. By issuing the xwininfo -metric command and then clicking on a window, the administrator can determine the geometry of that window, including the decorations, in millimeters.


Reference:

xwininfo(1) -- Arch manual pages
[command line -



On a system running the KDE Display Manager, when is the /etc/kde4/kdm/Xreset script automatically executed?

  1. When KDM starts
  2. When a user's X session exits
  3. When KDM crashes
  4. When X is restarted
  5. When X crashes

Answer(s): B

Explanation:

The /etc/kde4/kdm/Xreset script is a script that runs as root after a user's X session exits. It can be used to perform some cleanup tasks or other actions that need to be done when the user logs out of the graphical environment. For example, it can reassign the ownership of the console to root, or shut down the system if desired. The /etc/kde4/kdm/Xreset script is part of the KDE Display Manager (kdm), which is a graphical login manager for X. KDM can be configured to run this script by setting the Reset key in the [X-*-Core] section of the /etc/kde4/kdm/kdmrc configuration file.


Reference:

kdm.options - configuration options for X display manager kdm(1) -- kdm -- Debian jessie -- Debian Manpages debian - How to get system to shutdown when Xorg is quit? - Unix ...



Which of the following lines is an example of a correct setting for the DISPLAY environment variable?

  1. hostname:displayname
  2. hostname:displaynumber
  3. hostname/displayname
  4. hostname/displaynumber
  5. hostname

Answer(s): B

Explanation:

The correct format for the DISPLAY environment variable is hostname:displaynumber.screennumber, where hostname is the name of the computer where the X server runs, displaynumber is a sequence number (usually 0) that identifies a display, and screennumber is the number of the screen within that display (usually 0). The screennumber can be omitted if it is 0. For example, localhost:0 or myhost:1.0 are valid values for the DISPLAY variable. The other options are either missing the colon, using the wrong separator, or not specifying the display number.


Reference:

X11 - DISPLAY (environment variable) - Datacadamia x11 - How can I specify a display? - Stack Overflow
What is the $DISPLAY environment variable? - Ask Ubuntu



Which of the following steps prevents a user from obtaining an interactive login session?

  1. Run the command chsh -s /bin/false with the user name.
  2. Set the UID for the user to 0.
  3. Remove the user from the group staff.
  4. Add the user to /etc/noaccess.
  5. Create a .nologin file in the user's home directory.

Answer(s): A

Explanation:

Running the command chsh -s /bin/false with the user name will change the user's login shell to /bin/false, which is a program that does nothing and returns a non-zero exit code. This means that the user will not be able to execute any commands or start an interactive shell session. This is a common way to disable a user's login without disabling the account completely, which can be useful for users who only need to access the system via scp, sftp, or other non-interactive services.

However, this method does not prevent the user from authenticating with the system, and it may not work with some services that do not rely on the login shell, such as ssh with a forced command. Therefore, it is not a foolproof way to secure the system from unauthorized access.


Reference:

1234



Which file specifies the user accounts that can NOT submit jobs via at or batch? (Provide the full path and filename)

  1. /etc/at.deny

Answer(s): A

Explanation:

The /etc/at.deny file specifies the user accounts that can NOT submit jobs via at or batch. The format of the file is a list of usernames, one on each line.
Whitespace is not permitted. The superuser may always use at. If the file /etc/at.allow exists, only usernames mentioned in it are allowed to use at. If /etc/at.allow does not exist, /etc/at.deny is checked12. The at and batch commands use the files /usr/lib/cron/at.allow and /usr/lib/cron/at.deny to restrict usage on some systems3.


Reference:

at.allow(5) - Linux man page at.deny(5) [linux man page] - The UNIX and Linux Forums
The at.allow and at.deny files - IBM



Which character in the password field of /etc/passwd is used to indicate that the encrypted password is stored in /etc/shadow?

  1. *
  2. -
  3. s
  4. x

Answer(s): D

Explanation:

The password field of /etc/passwd is used to store the user's encrypted password or a special character that indicates how the password is stored. In older Linux systems, the user's encrypted password was stored in the /etc/passwd file. On most modern systems, this field is set to x, and the user password is stored in the /etc/shadow file12. The /etc/shadow file is more secure than the /etc/passwd file because it is readable only by the root user and not by regular users1. The other options are not valid characters for the password field of /etc/passwd.


Reference:

Understanding the /etc/passwd File | Linuxize
Understanding the /etc/passwd File - GeeksforGeeks



Viewing Page 6 of 31



Share your comments for LPI 102-500 exam with other users:

Chris 8/26/2023 1:10:00 AM

looking for c1000-158: ibm cloud technical advocate v4 questions
Anonymous


sachin 6/27/2023 1:22:00 PM

can you share the pdf
Anonymous


Blessious Phiri 8/13/2023 10:26:00 AM

admin ii is real technical stuff
Anonymous


Luis Manuel 7/13/2023 9:30:00 PM

could you post the link
UNITED STATES


vijendra 8/18/2023 7:54:00 AM

hello send me dumps
Anonymous


Simeneh 7/9/2023 8:46:00 AM

it is very nice
Anonymous


john 11/16/2023 5:13:00 PM

i gave the amazon dva-c02 tests today and passed. very helpful.
Anonymous


Tao 11/20/2023 8:53:00 AM

there is an incorrect word in the problem statement. for example, in question 1, there is the word "speci c". this is "specific. in the other question, there is the word "noti cation". this is "notification. these mistakes make this site difficult for me to use.
Anonymous


patricks 10/24/2023 6:02:00 AM

passed my az-120 certification exam today with 90% marks. studied using the dumps highly recommended to all.
Anonymous


Ananya 9/14/2023 5:17:00 AM

i need it, plz make it available
UNITED STATES


JM 12/19/2023 2:41:00 PM

q47: intrusion prevention system is the correct answer, not patch management. by definition, there are no patches available for a zero-day vulnerability. the way to prevent an attacker from exploiting a zero-day vulnerability is to use an ips.
UNITED STATES


Ronke 8/18/2023 10:39:00 AM

this is simple but tiugh as well
Anonymous


CesarPA 7/12/2023 10:36:00 PM

questão 4, segundo meu compilador local e o site https://www.jdoodle.com/online-java-compiler/, a resposta correta é "c" !
UNITED STATES


Jeya 9/13/2023 7:50:00 AM

its very useful
INDIA


Tracy 10/24/2023 6:28:00 AM

i mastered my skills and aced the comptia 220-1102 exam with a score of 920/1000. i give the credit to for my success.
Anonymous


James 8/17/2023 4:33:00 PM

real questions
UNITED STATES


Aderonke 10/23/2023 1:07:00 PM

very helpful assessments
UNITED KINGDOM


Simmi 8/24/2023 7:25:00 AM

hi there, i would like to get dumps for this exam
AUSTRALIA


johnson 10/24/2023 5:47:00 AM

i studied for the microsoft azure az-204 exam through it has 100% real questions available for practice along with various mock tests. i scored 900/1000.
GERMANY


Manas 9/9/2023 1:48:00 AM

please upload 1z0-1072-23 exam dups
UNITED STATES


SB 9/12/2023 5:15:00 AM

i was hoping if you could please share the pdf as i’m currently preparing to give the exam.
Anonymous


Jagjit 8/26/2023 5:01:00 PM

i am looking for oracle 1z0-116 exam
UNITED STATES


S Mallik 11/27/2023 12:32:00 AM

where we can get the answer to the questions
Anonymous


PiPi Li 12/12/2023 8:32:00 PM

nice questions
NETHERLANDS


Dan 8/10/2023 4:19:00 PM

question 129 is completely wrong.
UNITED STATES


gayathiri 7/6/2023 12:10:00 AM

i need dump
UNITED STATES


Deb 8/15/2023 8:28:00 PM

love the site.
UNITED STATES


Michelle 6/23/2023 4:08:00 AM

can you please upload it back?
Anonymous


Ajay 10/3/2023 12:17:00 PM

could you please re-upload this exam? thanks a lot!
Anonymous


him 9/30/2023 2:38:00 AM

great about shared quiz
Anonymous


San 11/14/2023 12:46:00 AM

goood helping
Anonymous


Wang 6/9/2022 10:05:00 PM

pay attention to questions. they are very tricky. i waould say about 80 to 85% of the questions are in this exam dump.
UNITED STATES


Mary 5/16/2023 4:50:00 AM

wish you would allow more free questions
Anonymous


thomas 9/12/2023 4:28:00 AM

great simulation
Anonymous