Sail E0 Webinar

MCQs

Total Questions : 20 | Page 2 of 2 pages
Question 11. The ftp_mkdir() function creates a directory on the FTP server.
  1.    ftp_mkdir()
  2.    Both A & B
  3.    ftp_mkdirectory()
  4.    ftp_makekdir()
 Discuss Question
Answer: Option A. -> ftp_mkdir()
Question 12. The windows version of PHP has built-in support for the FTP extension
  1.    False
  2.    True
 Discuss Question
Answer: Option B. -> True
Question 13. What will the following script do?echo getservbyname ('ftp', 'tcp');
  1.    A list of the FTP servers on the local network
  2.    The address of the FTP server called “tcp”
  3.    A list of the ports associated with all services except FTP
  4.    The port associated with the TCP service called “FTP”
 Discuss Question
Answer: Option D. -> The port associated with the TCP service called “FTP”
Question 14. Which of the following operations cannot be performed using the standard ftp:// stream wrapper?1. Reading a file2. Writing a file3. Establishing a stateful connection and changing directories interactively4. Creating a new directory
  1.    Option 3 and 4
  2.    Option 2 and 4
  3.    Option 1 and 4
  4.    Option 1 and 3
 Discuss Question
Answer: Option A. -> Option 3 and 4
Question 15. What function can you use to create your own streams using the PHP stream wrappers and register them within PHP?
  1.    stream_wrapper_reg
  2.    stream_wrapper
  3.    wrapper_register
  4.    stream_wrapper_register
 Discuss Question
Answer: Option D. -> stream_wrapper_register
Question 16. The ftp_size() function returns the size of a specified file on the FTP server.
  1.    ftp_amount()
  2.    get_ftp_size()
  3.    ftp_file_size()
  4.    ftp_size()
 Discuss Question
Answer: Option D. -> ftp_size()
Question 17. The FTP functions are used to ....... files from file servers.
  1.    Close
  2.    Download
  3.    Upload
  4.    All of above
  5.    Open
 Discuss Question
Answer: Option D. -> All of above
Question 18. Which of the following are valid PHP stream transports?1. http2. STDIO3. ftp4. STDOUT5. stream
  1.    Option 1 and 4
  2.    Option 2 and 5
  3.    Option 4 and 5
  4.    Option 3 and 5
 Discuss Question
Answer: Option B. -> Option 2 and 5
Question 19. 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?
  1.    stream_get_timeout
  2.    stream_fget_timeout
  3.    stream_fset_timeout
  4.    stream_set_timeout
 Discuss Question
Answer: Option D. -> stream_set_timeout
Question 20. Which of the following network transports doesn’t PHP support?
  1.    unix
  2.    pdc
  3.    tcp
  4.    udp
  5.    udg
 Discuss Question
Answer: Option B. -> pdc

Latest Videos

Latest Test Papers