MCQGeeks
0 : 0 : 1
CBSE
JEE
NTSE
NEET
English
UK Quiz
Quiz
Driving Test
Practice
Games
Quiz
PHP
PHP Networking
Quiz 1
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
Q.1
The ftp_size() function returns the size of a specified file on the FTP server.
get_ftp_size()
ftp_file_size()
ftp_size()
ftp_amount()
Q.2
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?
stream_get_timeout
stream_set_timeout
stream_fset_timeout
stream_fget_timeout
Q.3
Which of the following network transports doesn’t PHP support?
tcp
udp
udg
pdc
unix
Q.4
The FTP functions are used to ....... files from file servers.
Open
Download
Close
Upload
All of above
Q.5
Which of the following are valid PHP stream transports?
1. http
2. STDIO
3. ftp
4. STDOUT
5. stream
Option 3 and 5
Option 1 and 4
Option 4 and 5
Option 2 and 5
Q.6
What function can you use to create your own streams using the PHP stream wrappers and register them within PHP?
wrapper_register
stream_wrapper
stream_wrapper_register
stream_wrapper_reg
Q.7
The windows version of PHP has built-in support for the FTP extension
True
False
Q.8
The ftp_mkdir() function creates a directory on the FTP server.
ftp_mkdir()
ftp_makekdir()
ftp_mkdirectory()
Both A & B
Q.9
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
Option 3 and 4
Option 1 and 3
Option 2 and 4
Option 1 and 4
Q.10
What will the following script do?
<?php
echo
getservbyname
(
'ftp', 'tcp'
)
;
?>
A list of the FTP servers on the local network
The address of the FTP server called “tcp”
The port associated with the TCP service called “FTP”
A list of the ports associated with all services except FTP
Q.11
Which one of the following function returns the port number of a specified service?
getportname()
getservername()
getserverbyname()
getservbyname()
Q.12
Which one of the following statements can be used to establish port 80 connection with www.examveda.com?
fsockopen(“www.examveda.com”, 80);
sockopen(80,”www.examveda.com”);
fsockopen(80,”www.examveda.com”);
sockopen(“www.examveda.com”, 80);
Q.13
Which one of the following function is used to send a e-mail using PHP script?
mail_send()
send_mail()
mailrr()
mail()
Q.14
How many configuration directives pertinent to PHP’s mail function are available?
4
5
6
7
Q.15
Which of the following statements is used to add an attachment to the mail?
$mimemail->attachment(‘attachment.pdf’);
$mimemail=>attachment(‘attachment.pdf’);
$mimemail->addAttachment(‘attachment.pdf’);
$mimemail=>addAttachment(‘attachment.pdf’);
0 h : 0 m : 1 s
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
Report Question
×
What's an issue?
Question is wrong
Answer is wrong
Other Reason
Want to elaborate a bit more? (optional)
Support mcqgeeks.com by disabling your adblocker.
×
Please disable the adBlock and continue.
Thank you.
Reload page