Book: LPI Linux Certification in a Nutshell
Section: Chapter 23.  Exam 102 Practice Test



23.2 Answers

  1. e. With the top bit of the last byte set in the subnet mask (.128), we have 7 bits left. 27 is 128, less the network address and broadcast address, leaving 126 addresses for hosts.

  2. c. FTP clients use mget with wildcards.

  3. d. Routes to the interface and the network are required to exchange information on the local LAN. To act as an Internet workstation (i.e., using Netscape), a default gateway is also necessary.

  4. a, b, c, and e. XF86Config does not specify a window manager.

  5. e. The -- purge option is a variant of -r, remove.

  6. c. As defined in /etc/services, port 25 is the SMTP port, often monitored by sendmail.

  7. c. The directive indicates that a font server should listen on its default port.

  8. b. IP is the underlying datagram protocol.

  9. a. The appropriate option is either -s or -- status.

  10. d. A window manager is a client, controlled by the X server. Answers a and b are incorrect because they imply that the X server originates the graphical output. Answers c and e are common misconceptions.

  11. b. The ifconfig command is used to configure and display interface information. ipconfig is a Windows utility.

  12. 3 and 4.

  13. b and c.

  14. d. PPP interfaces are not persistent. Instead, they are initialized when needed.

  15. c. The DHCP client is called pump, after the lady's shoe of the same name. That's an extension from a "boot" because DHCP is a descendant from bootp.

  16. b. The spool directory directive looks like this:

    sd=/var/spool/lpd/lp
  17. b. The query mode is required, which implies -q. The -a option in query mode yields all packages.

  18. c. The hosts.deny and hosts.allow files contain configuration information for TCP Wrappers. The files won't be used, however, unless tcpd is included in inetd.conf.

  19. e.

  20. c. Answer a attempts to mount the /proc filesystem. Answers b, d, and e have incorrect syntax.

  21. c. Both Telnet and FTP are connection-oriented and use TCP for reliable connections.

  22. a, b, and d.

  23. b. Read/write access is available to everyone, including root.

  24. d. NFS-mounted directories seamlessly blend into the local filesystem, requiring no special syntax for access.

  25. c. While both ICMP and UDP are connectionless, they are different protocols.

  26. c. Provided that file is an RPM file, the -U indicates that an upgrade should occur. -h turns on hash marks.

  27. c. Because the program was statically linked using the -static option to gcc, there are no library dependencies, and ldd will yield an error.

  28. d. Linux has no control over the BIOS settings.

  29. c. CHAP is one of the PPP authentication techniques that embeds its information inside the PPP stream. It is an alternative to clear text passwords.

  30. e. lilo must be run to rebuild the boot loader after a new kernel is installed.

  31. The DNS daemon is named. It is included in a package called BIND.

  32. d. The intent of the chat script is to prepare the modem with appropriate settings to establish a PPP connection.

  33. b. A print server translates formats, such as PostScript to PCL.

  34. d. The presence of the localhost address 127.0.0.1 indicates that named is running. Since the system is a workstation, it's safe to assume that it is not serving DNS to a wider community.

  35. a. BIND v8 has a newer, more modular format, but the information is about the same.

  36. /etc/sendmail.cf.

  37. /etc/hosts.

  38. e. options lines in /etc/modules.conf or /etc/conf.modules configure kernel modules.

  39. d. Xsession is the system-wide default application startup file.

  40. e. lpc is the line printer control program.

  41. a.

  42. a and b. Both the second stage of lilo and the kernel should be kept within the 1024-cylinder boundary.

  43. c. Answer a is wrong because it installs modules before compiling them. Answers b and e are wrong because they build the kernel after configuring. Answer d is backward.

  44. c. tracert is a Windows utility with the same function as traceroute.

  45. c.

  46. d. X terminals use XDMCP to attach to xdm daemons.

  47. c. The .tgz extension indicates that the file is a compressed tar archive. This requires the use of the z option. x directs tar to extract. f directs tar to use the filename found next on the command line.

  48. b. An 8-bit SCSI bus has three address lines. 28 is 8, less the address of the controller, which leaves 7 target addresses.

  49. b.

  50. a. Just as with any interface, routes must be added before communications can occur.

  51. b. Apache uses httpd.conf, srm.conf, and access.conf. Some implementations may roll all of these files into a single httpd.conf.

  52. a. startx is included with XFree86 as a suggestion, and customization is encouraged.

  53. b. The smbprint filter is provided by the Samba package for printing to Windows printers.

  54. d. Use q for query mode. Use the l query option to list, and use the p query option to specify a file rather than an installed RPM.

  55. c.

  56. b.

  57. c. t is the option to list the contents of an archive.

  58. c. The format is [host ]:display [.screen ]. The first display is :0; the second display is :1.

  59. e.

  60. The file is /etc/profile.

  61. a.

  62. b. The .forward file is placed in the home directory containing a single line with the target email address.

  63. d. Zero exit values usually indicate success.

  64. b. Instead of using set, the command should have been:

    # export myvar='World' 

    This gives the myvar variable to the new shell.

  65. a. Without options, rpm won't overwrite an existing package installation.

  66. e.

  67. d.

  68. b. Options -i (install) and -L (list installed files) are incompatible and don't make sense together.

  69. a. For security purposes, fingerd is usually disabled using a comment in /etc/inetd.conf.

  70. e. The valid modes are Update (-U), Verify (-V), Erase (-e), and Query (-q).

  71. a. ld.so.conf is the text file in which you add library directories. ld.so.cache is the binary index resulting from ldconfig.

  72. d. Quota files are stored on the volume they control.