Exam Code: LX0-104 (Practice Exam Latest Test Questions VCE PDF)
Exam Name: CompTIA Linux+ [Powered by LPI] - Exam 2
Certification Provider: CompTIA
Free Today! Guaranteed Training- Pass LX0-104 Exam.
Q41. CORRECT TEXT - (Topic 6)
Which file lists which users can execute commands using sudo? (Specify the full name of the file, including path.)
Answer: /etc/sudoers
Q42. - (Topic 1)
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
Answer: B
Q43. CORRECT TEXT - (Topic 6)
The presence of what file will temporarily prevent all users except root from logging into the system? (Specify the full name of the file, including path.)
Answer: /etc/nologin
Q44. - (Topic 4)
Which of the following is observed and corrected by a NTP client?
A. The skew in time between the system clock and the hardware clock.
B. The skew in time between the system clock and the reference clock.
C. Changes in the time zone of the current computer's location.
D. Adjustments needed to support Daylight Saving Time.
Answer: B
Q45. - (Topic 4)
Which of the following are commonly used Mail Transfer Agent (MTA) applications? (Choose THREE correct answers.)
A. Postfix
B. Procmail
C. Sendmail
D. Exim
E. SMTPd
Answer: A,C,D
Q46. - (Topic 2)
Which file used by XDM specifies the default wallpaper?
A. /etc/X11/xdm/Xsetup
B. /etc/X11/xdm.conf
C. /etc/X11/xdm/Defaults
D. /etc/X11/defaults.conf
Answer: A
Q47. - (Topic 2)
Which of the following are tasks handled by a display manager like XDM or KDM? (Choose TWO correct answers.)
A. Start and prepare the desktop environment for the user.
B. Configure additional devices like new monitors or projectors when they are attached.
C. Handle the login of a user.
D. Lock the screen when the user was inactive for a configurable amount of time.
E. Create an X11 configuration file for the current graphic devices and monitors.
Answer: A,C
Q48. - (Topic 1)
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
Answer: A
Q49. - (Topic 5)
Which of the following is a valid IPv6 address?
A. 2001:db8:3241::1
B. 2001::db8:4581::1
C. 2001:db8:0g41::1
D. 2001%db8%9990%%1
E. 2001.db8.819f..1
Answer: A
Q50. - (Topic 3)
Where are user specific crontabs stored?
A. In the database file /etc/crontab.db which is shared by all users.
B. As individual per-user files within /var/spool/cron.
C. As individual per-user files in /etc/cron.user.d.
D. In the .crontab file in the user's home directory.
E. In the file /var/cron/user-crontab which is shared by all users.
Answer: B