Book: LPI Linux Certification in a Nutshell Section: Chapter 23. Exam 102 Practice Test
23.1 Questions -
How many hosts can exist on a subnet with mask 255.255.255.128? Select one. -
512 -
256 -
128 -
127 -
126 -
When running a text-mode FTP client, which command retrieves multiple files? Select one. -
get *.txt -
retrieve *.txt -
mget *.txt -
mretrieve *.txt -
get -m *.txt -
For an Internet workstation with a single network interface, what routes must be added to interface eth0 after it is initialized? Select one. -
None -
Interface -
Interface and default gateway -
Interface, local network, and default gateway -
Which of the following is true regarding the XF86Config file? Select all that apply. -
Can set the screen resolution setting -
Can set the bits-per-pixel (color depth) setting -
Includes keyboard and mouse selections -
Includes information on which window manager to run -
Contains information on where to find fonts -
What is the correct syntax to remove mypkg entirely from a Debian GNU/Linux system, including configuration files? Select one. -
dpkg -r mypkg -
dpkg -- remove mypkg -
dpkg -- kill mypkg -
dpkg -R mypkg -
dpkg -- purge mypkg -
On a Linux server, what service is most likely "listening" on port 25? Select one. -
Apache -
News -
Sendmail -
Samba -
FTP -
Your system's FontPath directives include only one entry: unix/:-1 Which of the following is true? Select one. -
Error -1 has occurred during X startup -
Only the default font will be available to applications -
An X font server is to be used -
An X font server failed to initialize -
No fonts were found by XFree86 or by a font server -
Which one of these protocols is used as a datagram delivery service by the remaining three? Select one. -
TCP -
IP -
UDP -
ICMP -
How do you use dpkg to verify the status of an installed package mypkg? Select one. -
dpkg -s mypkg -
dpkg -S mypkg -
dpkg -stat mypkg -
dpkg -- stat mypkg -
dpkg -- Status mypkg -
Which of the following statements is true about an X server? Select one. -
An X server is a high-performance system offering graphical programs over a network. -
An X server sends its graphical output to a window manager. -
An X server is under the control of a window manager. -
A window manager is under the control of an X server. -
A window manager is also known as an X server. -
Which command will display information about Ethernet interface eth0 ? Select one. -
cat /proc/eth/0 -
ifconfig eth0 -
ipconfig eth0 -
ipconfig /dev/eth0 -
cat /etc/eth0.conf -
What are the two interrupts usually associated with a PC's onboard serial interface? -
Which of the following commands will cause a kernel module to be included in the running kernel? Select all that apply. -
modinsert -
modprobe -
insmod -
prbmod -
rmmod -
When is the PPP interface ppp0 created? Select one. -
At boot time by the kernel. -
At installation time by mknod. -
At dialup time by the chat script. -
At dialup time by pppd. -
When the modem powers up. -
What program is run on a client machine to request an IP address from a DHCP server? Select one. -
dhcpd -
inetd -
pump -
dhcp_client -
bootp -
What does the printcap entry sd indicate? Select one. -
The system default printer -
A printer's spool directory -
A device file for the printer -
A location where errors are stored -
The printer driver -
How can you query the RPM database for a list of all installed RPM packages? Select one. -
rpm -q -
rpm -qa -
rpm -a -
rpm -al -
rpm -qal -
Where are TCP Wrappers configured and where are they enabled? -
Configured in tcpd.conf, enabled in tcpd.conf -
Configured in inetd.conf, enabled in inetd.conf -
Configured in hosts.deny and hosts.allow, enabled in inetd.conf -
Configured in inetd.conf, enabled in hosts.deny and hosts.allow -
Which pair of dpkg options are equivalent and what do they do? Select one. -
-C and -- configure; they reconfigure an unpackaged package. -
-C and -- clear-avail; they erase existing information about what packages are available. -
-A and -- audit; they update information about what packages are available. -
-C and -- audit; they provide resource consumption information on installed packages. -
-C and -- audit; they search for partially installed packages. -
Which of the following is a valid entry in /etc/fstab for a remote NFS mount from server fs1? Select one. -
fs1:/proc /mnt/fs1 nfs defaults 9 9 -
/mnt/fs1 fs1:/proc nfs defaults 0 0 -
fs1:/home /mnt/fs1 nfs defaults 0 0 -
/mnt/fs1 fs1:/home nfs defaults 0 0 -
/home:fs1 /mnt/fs1 nfs defaults 0 0 -
Which network protocol is used by Telnet and FTP? Select one. -
ICMP -
UDP -
TCP -
DHCP -
PPP -
Which of the following programs will display DNS information for a host? Choose all that apply. -
host -
nslookup -
nsstat -
dig -
ping -
Consider the following entry in /etc/exports: /home pickle(rw,no_root_squash) How is this entry handled by the NFS daemon? Select one. -
Directory /home is shared to everyone, without requiring passwords. -
Directory /home is shared to everyone, requiring passwords. -
Directory pickle is mounted on /home. -
Root is not allowed access to the shared directory. -
The mount attempt will fail. -
From the user's point of view, which answer describes the appearance of an NFS mounted directory? Select one. -
A new device in /dev. -
A new local volume accessed using a volume letter, such as D:. -
A new local volume accessed using the NFS server's name. -
Part of the local filesystem, accessed using ordinary pathnames. -
Part of the NFS server's filesystem, accessed using the NFS server's name. -
Which of the following statements regarding the ICMP protocol is not true? Select one. -
ICMP is connectionless. -
ICMP provides network flow control. -
ICMP is also known as UDP. -
ICMP is used by ping. -
What will happen when rpm is launched as follows? Select one. rpm -Uvh file -
The RPM file will be verified. -
An installed package may be upgraded with the version in file, with verbose output. -
An installed package may be upgraded with the version in file, with verbose output and hash marks indicating progress. -
An error will occur because a major mode is not specified. -
An error will occur because no file options were specified. -
Consider the following C program: #include <stdio.h> main( ) { printf("Hello, world\n"); } and its compilation command: # gcc -o hw hw.c -static Assuming that the compilation is successful, what will result from the following command? Select one. # ldd ./hw -
An error message indicating that an option is required. -
An error message indicating that hw is the wrong file type. -
An error message indicating that hw is not dynamically linked. -
A list of source and header files from which hw was compiled. -
A list of shared libraries upon which hw is dependent. -
How are changes to the system BIOS made? Select one. -
Using linuxconf. -
By manually editing text files. -
Using the lilo command. -
At boot time using system-specific menus. -
At boot time using LILO commands. -
What is CHAP? Select one. -
The PPP chat script. -
An authentication protocol using clear text. -
An authentication protocol embedded in the PPP data stream. -
The pppd configuration utility. -
A modem communications protocol. -
After a new kernel is compiled and copied correctly to the appropriate locations, what command must be run to ensure that the new kernel boots properly? Select one. -
make install -
make config -
make lilo -
LILO -
lilo -
What server daemon resolves domain names to IP addresses for requesting hosts? -
During the two-way communication that takes place during a chat script used to start PPP, what is chat communicating with? Select one. -
The pppd daemon. -
The PPP server. -
The kernel. -
The modem. -
The syslogd daemon. -
What function does a print filter serve? Select one. -
It collates output from multiple users. -
It translates various data formats into a page description language. -
It rejects print requests from unauthorized users. -
It rejects print requests from unauthorized hosts. -
It analyzes print data and directs print requests to the appropriate lpd. -
Consider the following excerpt from file /etc/resolv.conf of a Linux workstation: nameserver 127.0.0.1 nameserver 192.168.1.5 nameserver 192.168.250.2 What can be said about this configuration? Select one. -
Two DNS servers on the public network are being used for resolution. -
One DNS server on the local network is being used for resolution. -
The configuration contains errors that will prevent the resolver from functioning. -
A caching-only name server is running. -
The resolver library will consult nameserver 192.168.250.2 first. -
Which of the following is true regarding BIND v4 and BIND v8 configuration files? Select one. -
The information is largely the same, but the syntax is different. -
The syntax is largely the same, but the information is different. -
The two BIND versions use the same configuration file. -
BIND v4 uses a binary configuration file instead of text. -
BIND v8 uses a binary configuration file instead of text. -
What file is used to configure sendmail ? Include the entire path. -
Name the file that contains simple mappings between IP addresses and system names. -
What is the meaning and location of the following kernel configuration file excerpt? Select one. options opl3 io=0x388 -
Kernel option opl3 is set to use I/O port 0x388; /usr/src/linux/.config. -
Kernel module option opl3 is set to use I/O port 0x388; /usr/src/linux/.config. -
Kernel module opl3 is set to use I/O port 0x388; /usr/src/linux/.config. -
Kernel option opl3 is set to use I/O port 0x388; /usr/src/linux/.config. -
Kernel module opl3 is set to use I/O port 0x388; /etc/conf.modules or /etc/modules.conf. -
When using xdm, which of the following files can be used to start a window manager? Select one. -
Xservers -
Xaccess -
xdm-config -
Xsession -
Xsetup_0 -
What program can be used to interactively change the behavior of a print queue? Select one. -
lpd -
lpr -
lpq -
lprm -
lpc -
What command displays queued outgoing mail? Select one. -
mailq -
mailqueue -
mqueue -
mq -
sendmail -mq -
When partitioning a disk with more than 1024 cylinders, which of the following could affect the system's ability to boot? Select all that apply. -
Location of LILO on disk. -
Location of /boot on disk. -
Location of /var on disk. -
Disk transfer rate. -
Disk seek time. -
Which of the following represents a valid sequence of commands to compile and install a new kernel? Select one. -
make modules_install; make modules; make bzImage; make clean; make dep -
make dep; make clean; make bzImage; make config; make modules; make modules_install -
make config; make dep; make clean; make bzImage; make modules; make modules_install -
make config; make bzImage; make dep; make clean; make modules; make modules_install -
make dep; make clean; make bzImage; make modules; make modules_install; make config -
What program will display a list of each hop across the network to a specified destination? Select one. -
tracert -
rttrace -
traceroute -
routetrace -
init -
Which of the following is a reasonable size for a swap partition for a Linux workstation with 128 MB RAM? Select one. -
1 KB -
0.5 MB -
100 MB -
5 GB -
10 GB -
What is XDMCP, and how is it used? Select one. -
An X utility, used to copy files between a host and an X terminal. -
An X utility, used to configure XDM. -
An X utility, used to configure IP addresses on X terminals on the network. -
An X protocol, used to discover/listen for X terminals on the network. -
An X protocol, used to exchange graphics information between X clients and X servers over the network. -
What is the first step in compiling software obtained in a compressed tar archive myapp.tgz ? Select one. -
make install=myapp.tgz -
make myapp -
tar xzf myapp.tgz -
tar xvf myapp.tgz -
tar cvf myapp.tgz -
How many target devices can be added to an 8-bit SCSI-2 bus? Select one. -
6 -
7 -
8 -
15 -
16 -
Which file holds configuration information used during the process of kernel compilation? Select one. -
/usr/src/linux/config -
/usr/src/linux/.config -
/usr/src/linux/kernel.conf -
/etc/kernel.conf -
/etc/sysconfig/kernel.conf -
After a PPP connection is established and authenticated, what needs to be done before the interface can be used? Select one. -
Add a route to ppp0. -
Enable ppp0. -
ifup ppp0. -
Run pppd. -
Turn on the modem. -
Which of the following is not the name of an Apache configuration file? Select one. -
httpd.conf -
html.conf -
srm.conf -
access.conf -
What is the startx command? Select one. -
A script included with XFree86 to make startup user friendly. -
A script used to start xdm. -
A compiled binary program that directly launches the X server. -
A configuration file created by X configuration tools such as XF86Config. -
A script originated by Linux distributors to tailor X startup to their particular X implementation. -
Which statement is true regarding the configuration of a printer on a remote Windows machine? Select one. -
It can be configured like a TCP/IP network-attached printer. -
The input filter must be set to smbprint. -
The Windows printer must contain PostScript capability. -
The rp directive must be used in the printcap file. -
Linux can't print to Windows printers. -
How can you obtain a list of files contained in an .rpm file? Select one. -
rpm -q file -
rpm -i file -
rpm -ql file -
rpm -qlp file -
rpm -qal file -
What types of files are located in the directory tree specified by the Apache DocumentRoot configuration directive? Select one. -
Apache documentation files. -
Apache configuration files. -
Web site HTML files. -
Web site configuration files. -
Apache startup and shutdown commands. -
How can root change the attributes of file myfile so that its owner is user1 and its group is group1 ? Select one. -
chgrp user1.group1 myfile -
chown user1.group1 myfile -
chmod user1.group1 myfile -
chage user1.group1 myfile -
chattr user1.group1 myfile -
Which of the following commands will display a listing of files contained in a tar archive tape in /dev/st0 ? Select one. -
tar cf /dev/st0 -
tar xf /dev/st0 -
tar tf /dev/st0 -
tar -zf /dev/st0 -
tar -zcvf /dev/st0 -
Which of the following accurately describes the contents of the xdisp:1.0 DISPLAY environment variable? Select one. -
System xdisp is to send X programs to the first display of the local X server. -
System xdisp is to receive X programs on the first display of its X server. -
System xdisp is to receive X programs on the second display of its X server. -
Local program xdisp is to use the second display of the local X server. -
Local program xdisp is to use the second display of any available X terminal. -
Which file contains information on the I/O port assignments in use? Select one. -
/dev/ioports -
/etc/ioports -
/etc/sysconfig/ioports -
/etc/proc/ioports -
/proc/ioports -
What is the system-wide bash configuration file called? Include the entire path. -
What happens when ldconfig is executed? Select one. -
The binary index file of library locations is rebuilt. -
The text index file of library locations is rebuilt. -
make is run to rebuild libraries whose source code has changed. -
The disk is scanned for libraries to include in the index. -
Nothing, unless libraries have been recompiled since ldconfig was last run. -
How can a nonprivileged user configure sendmail to forward mail to another account? Select one. -
He can add a new entry in /etc/aliases. -
He can create a .forward file containing the new address. -
He can create an .alias file containing the new address. -
He can create a sendmail.cf file containing the new address. -
He cannot forward mail without assistance from the administrator. -
How does a process indicate to the controlling shell that it has exited with an error condition? Select one. -
It prints an error message to stderr. -
It prints an error message to stdout. -
It sets an exit code with a zero value. -
It sets an exit code with a nonzero value. -
It causes a segmentation fault. -
Consider the following trivial script called myscript: #!/bin/bash echo "Hello" echo $myvar Also consider this command sequence and result: # set myvar='World' # ./myscript Hello The script ran without error but didn't echo World. Why not? Select one. -
The syntax of the set command is incorrect. -
The script executes in a new shell, and myvar wasn't exported. -
The #!/bin/bash syntax is incorrect. -
The $myvar syntax is incorrect. -
The script is sourced by the current shell, and myvar is available only to new shells. -
Why might an administrator use the -- force option for rpm? Select one. -
To overwrite a previously installed package. -
To overwrite a Debian package. -
To prevent confirmation messages. -
To force the deletion of installed packages. -
To force the deletion of package dependencies. -
Which of the following commands cannot be used to exit from vi when in command mode? Select one. -
ZZ -
:x -
:q -
:q! -
:bye -
What does this short configuration file excerpt tell the Samba daemon? Select one. [home] path = /home guest ok = yes writable = yes -
The location of the Samba software is rooted at /home. -
A printer called home uses /home as a spool directory. -
A share called home is located on /home and is writable by authenticated users. -
A share called home is located on /home and is writable by anyone. -
A share called home on remote system guest will be mounted at /home. -
Which is not a valid dpkg installation command? Select one. -
dpkg -i package_file -
dpkg -iL package_file -
dpkg -iR package_dir -
dpkg -iG package_file -
dpkg -iE package_file -
How can the finger daemon be enabled? Select one. -
Uncomment the in.fingerd line in /etc/inetd.conf. -
Use cron to run fingerd once per minute. -
Include fingerd in the TCP Wrappers configuration. -
Remove fingerd from hosts.deny. -
Add fingerd to hosts.allow. -
Which of the following is not a major rpm mode option? Select one. -
-U -
-V -
-e -
-q -
-v -
Which of the following is the text file that contains directories where the dynamic linker should look for libraries? Select one. -
ld.so.conf -
conf.ld.so -
ld.so.cache -
so.config -
configld -
Where is quota information for users of volume /home stored? Select one. -
/etc/sysconfig/quota/quota.home.user -
/etc/quota/quota.home.user -
/home/quota.home.user -
/home/quota.user -
/home/quota.home.user | | |