MCQOPTIONS
Saved Bookmarks
This section includes 12 Mcqs, each offering curated multiple-choice questions to sharpen your Php knowledge and support exam preparation. Choose a topic below to get started.
| 1. |
Which of the following statements is used to add an attachment to the mail? |
| A. | $mimemail->attachment(‘attachment.pdf’); |
| B. | $mimemail=>attachment(‘attachment.pdf’); |
| C. | $mimemail->addAttachment(‘attachment.pdf’); |
| D. | $mimemail=>addAttachment(‘attachment.pdf’); |
| Answer» D. $mimemail=>addAttachment(‘attachment.pdf’); | |
| 2. |
How many configuration directives pertinent to PHP’s mail function are available? |
| A. | 4 |
| B. | 5 |
| C. | 6 |
| D. | 7 |
| Answer» C. 6 | |
| 3. |
Which one of the following function is used to send an email using PHP script? |
| A. | mail_send() |
| B. | send_mail() |
| C. | mailrr() |
| D. | mail() |
| Answer» E. | |
| 4. |
Which one of the following statements can be used to establish port 80 connection with www.nachi.com? |
| A. | fsockopen(“www.nachi.com”, 80); |
| B. | sockopen(80,”www.nachi.com”); |
| C. | fsockopen(80,”www.nachi.com”); |
| D. | sockopen(“www.nachi.com”, 80); |
| Answer» B. sockopen(80,”www.nachi.com”); | |
| 5. |
Which one of the following function returns the port number of a specified service? |
| A. | getportname() |
| B. | getservername() |
| C. | getserverbyname() |
| D. | getservbyname() |
| Answer» E. | |
| 6. |
What is the default port number of HTTPs? |
| A. | 70 |
| B. | 80 |
| C. | 90 |
| D. | 100 |
| Answer» C. 90 | |
| 7. |
Which one of the following function is used to retrieve the MX records for the domain specified by hostname? |
| A. | getmx() |
| B. | retrieve_mx() |
| C. | getmxrr() |
| D. | retrieve_mxrr() |
| Answer» D. retrieve_mxrr() | |
| 8. |
Which one of the following function is used to return an array consisting of various DNS resource records pertinent to a specific domain? |
| A. | dns_get_record() |
| B. | dns_record() |
| C. | dnsrr_get_record() |
| D. | dnsrr_record() |
| Answer» B. dns_record() | |
| 9. |
Which one of the following function checks for the existence of DNS records? |
| A. | checkdns() |
| B. | checkdnsr() |
| C. | checkdnsrr() |
| D. | checkdnsa() |
| Answer» D. checkdnsa() | |
| 10. |
What is the full form of DNS? |
| A. | Digital Network System |
| B. | Domain Network System |
| C. | Digital Name Systmem |
| D. | Domain Name System |
| Answer» E. | |
| 11. |
WHICH_OF_THE_FOLLOWING_STATEMENTS_IS_USED_TO_ADD_AN_ATTACHMENT_TO_THE_MAIL??$ |
| A. | $mimemail->attachment(‘attachment.pdf’); |
| B. | $mimemail=>attachment(‘attachment.pdf’); |
| C. | $mimemail->addAttachment(‘attachment.pdf’); |
| D. | $mimemail=>addAttachment(‘attachment.pdf’); |
| Answer» D. $mimemail=>addAttachment(‚Äö√Ñ√∂‚àö√ë‚àö‚â§attachment.pdf‚Äö√Ñ√∂‚àö√ë‚àö¬•); | |
| 12. |
How many configuration directives pertinent to PHP’s mail function are available?# |
| A. | 4 |
| B. | 5 |
| C. | 6 |
| D. | 7 |
| Answer» C. 6 | |