LX0-104 Premium Bundle

LX0-104 Premium Bundle

CompTIA Linux+ [Powered by LPI] - Exam 2 Certification Exam

4.5 
(16935 ratings)
0 QuestionsPractice Tests
0 PDFPrint version
January 4, 2025Last update

CompTIA LX0-104 Free Practice Questions

Q1. - (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:

Q2. - (Topic 5) 

What is true regarding a default route? 

A. The default route is always used first. When the default route is not available more specific routes are tried. 

B. When a default route is set, all other routes are disabled until the default route is deleted. 

C. The default route is only used if there is not a more specific route to a destination host or network. 

D. Without a default route, no network communication even in directly attached networks is possible. 

Answer:

Q3. CORRECT TEXT - (Topic 1) 

What word is missing from the following SQL statement? 

insert into tablename ________(909, 'text'); 

(Please specify the missing word using lower-case letters only.) 

Answer: VALUES, values 

Q4. - (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 

Q5. - (Topic 5) 

Given the following routing table: 

How would an outgoing packet to the destination 192.168.2.150 be handled? 

A. It would be passed to the default router 192.168.178.1 on wlan0. 

B. It would be directly transmitted on the device eth0. 

C. It would be passed to the default router 255.255.255.0 on eth0. 

D. It would be directly transmitted on the device wlan0. 

E. It would be passed to the router 192.168.1.1 on eth0. 

Answer:

Q6. - (Topic 6) 

Which configuration file would be edited to change default options for the OpenSSH server? 

A. /etc/ssh/sshd_config 

B. /etc/ssh/ssh 

C. /etc/ssh/server 

D. /etc/ssh/ssh_config 

E. /etc/ssh/ssh_server 

Answer:

Q7. 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 

Q8. CORRECT TEXT - (Topic 4) 

Which command, available with all MTAs, is used to list the contents of the MTA's mail queue? (Specify ONLY the command without any path or parameters.) 

Answer: mailq, /usr/bin/mailq, sendmail -bp, /usr/sbin/sendmail -bp, /usr/lib/sendmail -bp, sendmail, /usr/sbin/sendmail, /usr/lib/sendmail 

Q9. - (Topic 3) 

Which command can be used to delete a group from a Linux system? 

A. groupdel 

B. groupmod C. groups 

D. groupedit 

Answer:

Q10. - (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:

Q11. CORRECT TEXT - (Topic 4) 

Please specify the top directory containing the configuration files for the CUPS printing system. (Specify the full path to the directory.) 

Answer: /etc/cups, /etc/cups/ 

Q12. - (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:

Q13. - (Topic 5) 

What of the following can be done by the command ifconfig? (Choose TWO correct answers.) 

A. Set a network interface active or inactive. 

B. Specify the kernel module to be used with a network interface. 

C. Allow regular users to change the network configuration of a network interface. 

D. Change the netmask used on a network interface. 

E. Specify which network services are available on a network interface. 

Answer: A,D 

Q14. - (Topic 3) 

Each entry in a crontab must end with what character? 

A. Tab 

B. Space 

C. Backslash 

D. Newline 

Answer:

Q15. - (Topic 6) 

When trying to unmount a device it is reported as being busy. Which of the following commands could be used to determine which process is causing this? 

A. debug 

B. lsof 

C. nessus 

D. strace 

E. traceroute 

Answer:

Q16. - (Topic 1) 

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

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. 

Answer:

Q17. - (Topic 5) 

Which of the following tools used for DNS debugging, reports not only the response from the name server but also details about the query? 

A. dnsq 

B. dig 

C. hostname 

D. dnslookup 

E. zoneinfo 

Answer:

START LX0-104 EXAM