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.
2021 Jan LX0-104 exams
Q41. - (Topic 4)
What is true regarding the command sendmail?
A. With any MTA, the sendmail command must be run periodically by the cron daemon.
B. All MTAs, including Postfix and Exim, provide a sendmail command.
C. The sendmail command prints the MTAs queue history of which mails have been sent successfully.
D. It is only available when the sendmail MTA is installed.
Answer: B
Q42. CORRECT TEXT - (Topic 4)
After configuring printing on a Linux server, the administrator sends a test file to one of the printers and it fails to print. What command can be used to display the status of the printer's queue? (Specify ONLY the command without any path or parameters.)
Answer: lpq, /usr/bin/lpq, lpstat, /usr/bin/lpstat
Q43. CORRECT TEXT - (Topic 5)
Which port is the default server port for the HTTPS protocol? (Specify the port number using digits.)
Answer: 443
Q44. CORRECT TEXT - (Topic 5)
Which command is used to set the hostname of the local system? (Specify ONLY the command without any path or parameters.)
Answer: hostname
Q45. - (Topic 5)
What is true regarding TCP port 23?
A. Port 23 is the well known port for the telnet service which is a plain text protocol that should no longer be used.
B. Port 23 is the well known port for the SSH service which provides secure logins.
C. Port 23 is the well known port for the rlogin service which is SSL secured by default.
D. Port 23 is the well known port for the system login services which are encrypted when the user runs the starttls command in his login shell.
Answer: A
Rebirth LX0-104 sample question:
Q46. - (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
Q47. 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
Q48. CORRECT TEXT - (Topic 3)
Which environment variable should be set in order to change the time zone for the commands run from within the environment variable's scope? (Specify the variable name only.)
Answer: TZ
Q49. CORRECT TEXT - (Topic 1)
What word is missing from the following SQL statement?
__________ count(*) from tablename;
(Please specify the missing word using lower-case letters only.)
Answer: select
Q50. - (Topic 1)
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}"
Answer: A