102-400 Premium Bundle

102-400 Premium Bundle

LPI Level 1 Exam 102, Junior Level Linux Certification, Part 2 of 2. Certification Exam

4.5 
(30990 ratings)
0 QuestionsPractice Tests
0 PDFPrint version
September 29, 2024Last update

LPI 102-400 Free Practice Questions

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

41. - (Topic 3) 

Which commands can be used to change a user's account aging information? (Choose THREE correct answers.) 

A. usermod 

B. passwd 

C. chattr 

D. chage 

E. chsh 

Q2. - (Topic 4) 

What is the purpose of the command mailq? 

A. It fetches new emails from a remote server using POP3 or IMAP. 

B. It is a multi-user mailing list manager. 

C. It is a proprietary tool contained only in the qmail MTA. 

D. It queries the mail queue of the local MTA. 

E. It is a command-line based tool for reading and writing emails. 

Answer:

Q3. - (Topic 5) 

Which of the following is true about IPv6? 

A. With IPv6, the TCP port numbers of most services have changed. 

B. IPv6 no longer supports broadcast addresses. 

C. IPv4 addresses can be used without any change with IPv6. 

D. IPv6 no longer supports multicast addresses. 

E. For IPv6, UDP and TCP have been replaced by the Rapid Transmission Protocol RTP. 

Answer:

Q4. CORRECT TEXT - (Topic 5) 

Which port is the default server port for the HTTPS protocol? (Specify the port number using digits.) 

Answer: 443 

Q5. - (Topic 5) 

On a regular users workstation the route command takes a long time before printing out the routing table. Which of the following errors does that indicate? 

A. The local routing information may be corrupted and must be re-validated using a routing protocol. 

B. One of the routers in the routing table is not available which causes the automatic router failure detection mechanism (ARF-D) to wait for a timeout. 

C. There may accidentally be more than one default router in which case a default router election has to be done on the network in order to choose one router as the default. 

D. DNS resolution may not be working as route by default tries to resolve names of routers and destinations and may run into a timeout. 

Answer:

Q6. - (Topic 3) 

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

A. Run the command chsh -s /bin/false with the user name. 

B. Set the UID for the user to 0. 

C. Remove the user from the group staff. 

D. Add the user to /etc/noaccess. 

E. Create a .nologin file in the user's home directory. 

Answer:

Q7. - (Topic 3) 

Which of the following crontab entries will execute myscript at 30 minutes past every hour on Sundays? 

A. 0 * * * 30 myscript 

B. 30 * * * 6 myscript 

C. 30 0 * * 0 myscript 

D. 30 0-23 * * 0 myscript 

E. 0 0-23 * * 30 myscript 

Answer:

Q8. CORRECT TEXT - (Topic 6) 

In an xinetd configuration file, which attribute specifies the network address that will be used to provide the service? 

Answer: bind, interface 

Q9. CORRECT TEXT - (Topic 2) 

What is the name of the simple graphical login manager that comes with a vanilla X11 installation? (Specify ONLY the command without any path or parameters.) 

Answer: xdm 

Q10. - (Topic 1) 

When the command echo $$ outputs 12942, what is the meaning of 12942? 

A. It is the process ID of the echo command. 

B. It is the process ID of the current shell. 

C. It is the process ID of the last command executed. 

D. It is the process ID of the last command which has been placed in the background. 

Answer:

Q11. - (Topic 1) 

How can the existing environment variable FOOBAR be suppressed for the execution of the script./myscript only? 

A. unset -v FOOBAR;./myscript 

B. set -a FOOBAR="";./myscript 

C. env -u FOOBAR./myscript 

D. env -i FOOBAR./myscript 

Answer:

Q12. - (Topic 3) 

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

A. * 

B. -

C. s 

D. x 

Answer:

Q13. CORRECT TEXT - (Topic 2) 

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

Answer: /usr/bin/xwininfo, xwininfo 

Q14. - (Topic 4) 

Which of the following commands is used to rotate, compress, and mail system logs? 

A. rotatelog 

B. striplog 

C. syslogd --rotate 

D. logrotate 

E. logger 

Answer:

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

Q16. - (Topic 4) 

Why is the correct configuration of a system's time zone important? 

A. Because the conversion of Unix timestamps to local time relies on the time zone configuration. 

B. Because the time zone is saved as part of the modification times of files and cannot be changed after a file is created. 

C. Because the environment variables LANG and LC_MESSAGES are, by default, set according to the time zone. 

D. Because NTP chooses servers nearby based on the configured time zone. 

Answer:

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

START 102-400 EXAM