PHP/Java/xinetd/Test2 Flashcards

You may prefer our related Brainscape-certified flashcards:
1
Q
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
A

C) xinetd

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

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

A) True

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

Some of the services run traditionally by xinetd include Telnet and FTP
A) True
B) False

A

A) True

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

In the past the default super daemon on SUSE Linux was inetd not xinetd
A) True
B) False

A

A) True

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

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

A) True

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q
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
A

C) /etc/xineted.conf

D) /etc/xinetd.d

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

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

A

D) documentRoot = /etc/xinetd

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
8
Q
What keyword description can be set to stream, dgram, raw, or seqpacket? 	 
A) protocol 	 
B) cps  	 
C) socket_type 	 
D) log_type
A

C) socket_type

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
9
Q
This xinetd daemon parameter defines which host can use which service. 	 
A) echo  	 
B) only_from 	 
C) no_access 	 
D) disabled
A

B) only_from

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
10
Q
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

A) IDONLY

B) INTERCEPT

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
11
Q
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

A) log_type
B) log_on_success
C) log_on_failure

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
12
Q
Which keyword could have the parameter set to tcp or udp? 	 
A) server 	 
B) protocol	 
C) instances	 
D) log_type
A

B) protocol

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
13
Q
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
A

B) email

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
14
Q
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
A

B) data

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
15
Q
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

A) Active data transfer

C) Passive data transfer

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
16
Q
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

A) port 20

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
17
Q

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.

A

D) Port 99 is used for data transfer.

18
Q
To start PureFTPd enter: 	 
A) rcsmb start  	 
B) /etc/init.d/pure-ftpd start	 
C) vsftpd >> pureftpd 	 
D) /srv/ftp/pure-ftp
A

B) /etc/init.d/pure-ftpd start

19
Q
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

A) From the command line
B) From a start script
C) From xinetd

20
Q

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

A) True

21
Q

A Virtual FTP server only handles anonymous FTP users and not authorized users (users in /etc/passwd)
A) True
B) False

A

A) True

22
Q

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

A

B) False

23
Q
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
A

C) Hardware Clock

24
Q
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

A) ntpd

25
Q
Which command would set the hardware clock time to the current system time? 	 
A) hwclock 	 
B) hwclock -s 	 
C) netdate  	 
D) hwclock -w
A

D) hwclock -w

26
Q
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
A

B) netdate pool.ntp.org

27
Q

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

A) Display the current time
B) Set the hardware clock to the system time
C) Set the hardware clock to a specific time

28
Q

The disadvantage of using netdate is that the hwclock command cannot be used while the system is booted.
A) True
B) False

A

B) False

29
Q
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
A

B) 123

30
Q

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

A) True

31
Q

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

A) True

32
Q
\_\_\_\_\_ 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

A) nfs

33
Q
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

A) /etc/exports

34
Q

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

A

D) Java is a proprietary product of Microsoft

35
Q
\_\_\_\_ \_\_\_\_\_ 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

A) Java servlets

36
Q
\_\_\_\_\_\_\_\_ 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
A

B) JSP (Java Server Pages)

37
Q
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
A

B) WAR (web archive)

38
Q
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

A) interpreter

39
Q
To run an Java servlet you need a servlet container such as \_\_\_\_\_\_\_\_\_\_\_\_.	 
A) SLES10	 
B) NFS 	 
C) Tomcat	 
D) Perl
A

C) Tomcat

40
Q
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

A) Active Data Transfer

41
Q
Which of the following directories is NOT a good candidate for exporting with Network File System?	 
A) /home 	 
B) /etc	 
C) /opt	 
D) /usr
A

B) /etc

42
Q

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

A) AntiWarez yes