PHP/Java/xinetd/Test2 Flashcards
This daemon acts as a mediator of connection request for a series of services. It accepts the connection request then starts the service. A) ftp B) telnet C) xinetd D) samba
C) xinetd
If the connection between the server and the client is terminated, the server process started by xinetd is removed from memory thus saving resources.
A) True
B) False
A) True
Some of the services run traditionally by xinetd include Telnet and FTP
A) True
B) False
A) True
In the past the default super daemon on SUSE Linux was inetd not xinetd
A) True
B) False
A) True
Services can either run standalone, that means they listen on a port themselves or they can be run via the “super daemon” xinetd.
A) True
B) False
A) True
The configuration of xinetd is distributed acorss serval files. Which of the following files/directories are included in the configuration files. A) //etc/sambad B) /etc/apache2 C) /etc/xineted.conf D) /etc/xinetd.d
C) /etc/xineted.conf
D) /etc/xinetd.d
Which is NOT a default option in the xinetd configuration file?
A) log type = FILE /var/log/xinetd.log
B) instances = 10
C) only_from = localhost
D) documentRoot = /etc/xinetd
D) documentRoot = /etc/xinetd
What keyword description can be set to stream, dgram, raw, or seqpacket? A) protocol B) cps C) socket_type D) log_type
C) socket_type
This xinetd daemon parameter defines which host can use which service. A) echo B) only_from C) no_access D) disabled
B) only_from
For the Telnet service: which of the following TWO parameters can be used for the flags key. A) IDONLY B) INTERCEPT C) echo D) stomp
A) IDONLY
B) INTERCEPT
Logging through xinetd is controlled by which of the following keys. A) log_type B) log_on_success C) log_on_failure D) id_render
A) log_type
B) log_on_success
C) log_on_failure
Which keyword could have the parameter set to tcp or udp? A) server B) protocol C) instances D) log_type
B) protocol
Generally, users logging in to FTP use anonymous or ftp as their user name and their \_\_\_\_\_\_\_\_ as the password. A) ip address B) email C) home address D) full name
B) email
The FTP protocol uses two TCP connections between the client and the server, one connection is for commands and the other is for \_\_\_\_\_\_. A) Time Information B) data C) information about shares D) password information
B) data
Which of the following are the two different types of mode for data transfer in FTP A) Active data transfer B) Progressive data transfer C) Passive data transfer D) Stop and wait transfer
A) Active data transfer
C) Passive data transfer
When the Active data transfer type is used in FTP what port does the server offer for the data channel? A) port 20 B) port 90 C) port 80 D) none of the above
A) port 20
The following are all advantages of PureFTP server EXCEPT
A) Consistent user of chroot environments
B) Uncomplicated configuration of virtual FTP servers
C) Configuration via command line parameters or with a configuration file
D) Port 99 is used for data transfer.
D) Port 99 is used for data transfer.
To start PureFTPd enter: A) rcsmb start B) /etc/init.d/pure-ftpd start C) vsftpd >> pureftpd D) /srv/ftp/pure-ftp
B) /etc/init.d/pure-ftpd start
Which of the following are methods of running PureFTPd? (select 3) A) From the command line B) From a start script C) From xinetd D) as a samba client
A) From the command line
B) From a start script
C) From xinetd
In the passive data transfer mode the server tells the client which port to use for the data channel connection?
A) True
B) False
A) True
A Virtual FTP server only handles anonymous FTP users and not authorized users (users in /etc/passwd)
A) True
B) False
A) True
The command:
pure-pw useradd joe -u ftpusers -d /home/ftpusers/joe
would add the user joe to the /etc/passwd file
A) True
B) False
B) False
This clock runs independently of any control program running in the CPU. It runs when you turn the server off. A) System time clock B) Stratum Time Clock C) Hardware Clock D) Universal Clock
C) Hardware Clock
For a Linux server connected to the Internet (or equipped with a precision clock), the best way to regulate the system clock is using \_\_\_\_\_\_\_. A) ntpd B) Netclock C) nfsd D) The Tyme
A) ntpd
Which command would set the hardware clock time to the current system time? A) hwclock B) hwclock -s C) netdate D) hwclock -w
D) hwclock -w
To synchronize the system time of a server to a specific external time source such as pool.ntp.org use the command \_\_\_\_\_\_\_\_\_\_ A) hwclock setup-ntp.org B) netdate pool.ntp.org C) ntp -s D) setclock
B) netdate pool.ntp.org
The hwclock tool can be be used to (select all that apply).
A) Display the current time
B) Set the hardware clock to the system time
C) Set the hardware clock to a specific time
D) broadcast time to clients on a network
A) Display the current time
B) Set the hardware clock to the system time
C) Set the hardware clock to a specific time
The disadvantage of using netdate is that the hwclock command cannot be used while the system is booted.
A) True
B) False
B) False
NTP is an industry standard protocol that uses UDP on port \_\_\_\_ to communicate between time servers and time clients. A) 73 B) 123 C) 80 D) 21
B) 123
A time client can also, in turn, act as a time server for other servers and client workstations on the network
A) True
B) False
A) True
NTP not only corrects the time, but it keeps track of consistent time variations and automatically adjust for system time drift on the client.
A) True
B) False
A) True
\_\_\_\_\_ is designed for sharing files and directories over a network. It requires configuration of an NFS server and NFS clients. A) nfs B) httpd C) ssh D) GMT
A) nfs
The NFS server stores all configuration settings in the \_\_\_\_\_\_\_\_\_\_\_ file. A) /etc/exports B) /etc/fstab C) /etc/nfs/serveout D) /etc/nfs/retrive
A) /etc/exports
The following are all advantages of using Java for web applications EXCEPT
A) portability
B) performance
C) reusability
D) Java is a proprietary product of Microsoft
D) Java is a proprietary product of Microsoft
\_\_\_\_ \_\_\_\_\_ are actual web applications that are developed according to the Java servlet specifications. A) Java servlets B) Perl scripts C) Active Server Pages D) php applications
A) Java servlets
\_\_\_\_\_\_\_\_ is an extension to the Java servlet specification, which allows developers to separate HTML and application code. A) php applications B) JSP (Java Server Pages) C) HTML documents D) freeserver applications
B) JSP (Java Server Pages)
Web applications that are developed in Java are usually distributed in \_\_\_\_\_ files located in the /usr/share/tomcat/webApps directory. A) JavaServer B) WAR (web archive) C) HTML D) PHP
B) WAR (web archive)
When an html file containing php code is requested. The webserver opens the file but instead of sending the php code directly bck to the browser it is passed through the PHP \_\_\_\_\_\_\_\_ first. A) interpreter B) the vi editor C) the samba configuration file D) the python interpreter
A) interpreter
To run an Java servlet you need a servlet container such as \_\_\_\_\_\_\_\_\_\_\_\_. A) SLES10 B) NFS C) Tomcat D) Perl
C) Tomcat
The FTP client offers the FTP server an unprivileged TCP port for the data channel connection. The server initializes the data channel from its port 20 to the port offered by the client. Which type of FTP is described? A) Active Data Transfer B) Passive Data Transfer C) Very Secure With Encryption via UDP D) TCP data connection
A) Active Data Transfer
Which of the following directories is NOT a good candidate for exporting with Network File System? A) /home B) /etc C) /opt D) /usr
B) /etc
Disallows the downloading of files which are owned by “ftp”, (files that were uploaded but not validated by a local admin.
A) AntiWarez yes
B) ChrootEveryone yes
C) AnonymousCantUpload yes
D) None of the above is the correct option.
A) AntiWarez yes