Vidyalelo
PHP · all questions

PHP Networking
practice.

Practice every MCQ with options. Use Show answers when you want the correct option and solution.

20

Questions

1/1

Page

Pick an option on a question to see the right answer and solution.

What is the full form of DNS?

Select an option to see the answer and solution.

Which one of the following function checks for the existence of DNS records?

Select an option to see the answer and solution.

Which one of the following function is used to return an array consisting of various DNS resource records pertinent to a specific domain?

Select an option to see the answer and solution.

Which one of the following function is used to retrieve the MX records for the domain specified by hostname?

Select an option to see the answer and solution.

What is the default port number of HTTP’s?

Select an option to see the answer and solution.

Which one of the following function returns the port number of a specified service?

Select an option to see the answer and solution.

Which one of the following statements can be used to establish port 80 connection with www.examveda.com?

Select an option to see the answer and solution.

Which one of the following function is used to send a e-mail using PHP script?

Select an option to see the answer and solution.

How many configuration directives pertinent to PHP’s mail function are available?

Select an option to see the answer and solution.

Which of the following statements is used to add an attachment to the mail?

Select an option to see the answer and solution.

What function can you use to create your own streams using the PHP stream wrappers and register them within PHP?

Select an option to see the answer and solution.

The windows version of PHP has built-in support for the FTP extension

Select an option to see the answer and solution.

The ftp_mkdir() function creates a directory on the FTP server.

Select an option to see the answer and solution.

Which of the following operations cannot be performed using the standard ftp:// stream wrapper? 
1. Reading a file
2. Writing a file
3. Establishing a stateful connection and changing directories interactively
4. Creating a new directory

Select an option to see the answer and solution.

What will the following script do?
<?php
echo getservbyname ('ftp', 'tcp');
?>

Select an option to see the answer and solution.

The ftp_size() function returns the size of a specified file on the FTP server.

Select an option to see the answer and solution.

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?

Select an option to see the answer and solution.

Which of the following network transports doesn’t PHP support?

Select an option to see the answer and solution.

The FTP functions are used to ....... files from file servers.

Select an option to see the answer and solution.

Which of the following are valid PHP stream transports?
1. http
2. STDIO
3. ftp
4. STDOUT
5. stream

Select an option to see the answer and solution.