1)
What function can you use to create your own streams using the PHP stream wrappers and register them within PHP?
A) wrapper_register
B) stream_wrapper
C) stream_wrapper_register
D) stream_wrapper_reg
2)
The windows version of PHP has built-in support for the FTP extension
A) True
B) False
3)
The ftp_mkdir() function creates a directory on the FTP server.
A) ftp_mkdir()
B) ftp_makekdir()
C) ftp_mkdirectory()
D) Both A & B
4)
Which of the following operations cannot be performed using the standard ftp:// stream wrapper?
A) Reading a file
B) Writing a file
C) Establishing a stateful connection and changing directories interactively
D) Creating a new directory
5)
What will the following script do?
<?php
echo getservbyname ('ftp', 'tcp');
?>
A) A list of the FTP servers on the local network
B) The address of the FTP server called “tcp”
C) The port associated with the TCP service called “FTP”
D) A list of the ports associated with all services except FTP
6)
The ftp_size() function returns the size of a specified file on the FTP server.
A) get_ftp_size()
B) ftp_file_size()
C) ftp_size()
D) ftp_amount()
7)
When dealing with timeout values in sockets, the connection timeout can be changed independently of the read/write time out. Which function must be used for this purpose?
A) stream_get_timeout
B) stream_set_timeout
C) stream_fset_timeout
D) stream_fget_timeout
8)
Which of the following network transports doesn’t PHP support?
A) tcp
B) udp
C) udg
D) pdc
E) unix
9)
The FTP functions are used to ....... files from file servers.
A) Open
B) Login
C) Close
D) Upload
E) Download
F) All of above
10)
Which of the following are valid PHP stream transports?
A) http
B) STDIO
C) ftp
D) STDOUT
E) stream
Answers
What function can you use to create your own streams using the PHP stream wrappers and register them within PHP?
A) wrapper_register
B) stream_wrapper
C) stream_wrapper_register
D) stream_wrapper_reg
2)
The windows version of PHP has built-in support for the FTP extension
A) True
B) False
3)
The ftp_mkdir() function creates a directory on the FTP server.
A) ftp_mkdir()
B) ftp_makekdir()
C) ftp_mkdirectory()
D) Both A & B
4)
Which of the following operations cannot be performed using the standard ftp:// stream wrapper?
A) Reading a file
B) Writing a file
C) Establishing a stateful connection and changing directories interactively
D) Creating a new directory
5)
What will the following script do?
<?php
echo getservbyname ('ftp', 'tcp');
?>
A) A list of the FTP servers on the local network
B) The address of the FTP server called “tcp”
C) The port associated with the TCP service called “FTP”
D) A list of the ports associated with all services except FTP
6)
The ftp_size() function returns the size of a specified file on the FTP server.
A) get_ftp_size()
B) ftp_file_size()
C) ftp_size()
D) ftp_amount()
7)
When dealing with timeout values in sockets, the connection timeout can be changed independently of the read/write time out. Which function must be used for this purpose?
A) stream_get_timeout
B) stream_set_timeout
C) stream_fset_timeout
D) stream_fget_timeout
8)
Which of the following network transports doesn’t PHP support?
A) tcp
B) udp
C) udg
D) pdc
E) unix
9)
The FTP functions are used to ....... files from file servers.
A) Open
B) Login
C) Close
D) Upload
E) Download
F) All of above
10)
Which of the following are valid PHP stream transports?
A) http
B) STDIO
C) ftp
D) STDOUT
E) stream
Answers