Php Networking MCQs with Explanations
Practice high-yield Programming & Software Development MCQs on Php Networking with worked academic solutions for FPSC, PPSC, NTS, NITB, PTS.
Questions
19
Difficulty Level
Exam-Level
Target Exams
FPSC, PPSC, NTS...
Estimated Time
23 mins
Exam-Level FPSC PPSC NTS NITB PTS
Verified for Commission Syllabus • Oct 14, 2026
19
Verified Practice Questions
Interactive test mode with detailed academic worked solutions
Live Progress | 0/19 answered
✓ 0 correct
✗ 0 wrong
0% score
🎉 Set complete! All 19 questions answered.
Question 1 of 19
★ FPSC
★ PPSC
★ FPSC
★ PPSC
Question 2 of 19
★ FPSC
★ PPSC
★ FPSC
★ PPSC
Which one of the following function returns the port number of a specified service?
Question 3 of 19
★ FPSC
★ PPSC
★ FPSC
★ PPSC
Which one of the following statements can be used to establish port 80 connection with www.examveda.com?
Question 4 of 19
★ FPSC
★ PPSC
★ FPSC
★ PPSC
Which one of the following function is used to send a e-mail using PHP script?
Question 5 of 19
★ FPSC
★ PPSC
★ FPSC
★ PPSC
How many configuration directives pertinent to PHP’s mail function are available?
Question 6 of 19
★ FPSC
★ PPSC
★ FPSC
★ PPSC
Which of the following statements is used to add an attachment to the mail?
Question 7 of 19
★ FPSC
★ PPSC
★ FPSC
★ PPSC
Which one of the following function is used to return an array consisting of various DNS resource records pertinent to a specific domain?
Question 8 of 19
★ FPSC
★ PPSC
★ FPSC
★ PPSC
Which one of the following function is used to retrieve the MX records for the domain specified by hostname?
Question 9 of 19
★ FPSC
★ PPSC
★ FPSC
★ PPSC
What is the default port number of HTTP’s?
Question 10 of 19
★ FPSC
★ PPSC
★ FPSC
★ PPSC
What function can you use to create your own streams using the PHP stream wrappers and register them within PHP?
Question 11 of 19
★ FPSC
★ PPSC
★ FPSC
★ PPSC
The windows version of PHP has built-in support for the FTP extension
Question 12 of 19
★ FPSC
★ PPSC
★ FPSC
★ PPSC
The ftp_mkdir() function creates a directory on the FTP server.
Question 13 of 19
★ FPSC
★ PPSC
★ FPSC
★ PPSC
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
Question 14 of 19
★ FPSC
★ PPSC
★ FPSC
★ PPSC
What will the following script do? <?php echo getservbyname ( 'ftp', 'tcp' ) ; ?>
Question 15 of 19
★ FPSC
★ PPSC
★ FPSC
★ PPSC
The ftp_size() function returns the size of a specified file on the FTP server.
Question 16 of 19
★ FPSC
★ PPSC
★ FPSC
★ PPSC
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?
Question 17 of 19
★ FPSC
★ PPSC
★ FPSC
★ PPSC
Which of the following network transports doesn’t PHP support?
Question 18 of 19
★ FPSC
★ PPSC
★ FPSC
★ PPSC
The FTP functions are used to ....... files from file servers.
Question 19 of 19
★ FPSC
★ PPSC
★ FPSC
★ PPSC
Which of the following are valid PHP stream transports? 1. http 2. STDIO 3. ftp 4. STDOUT 5. stream
✓ Link copied to clipboard
Continue Your Practice
Next Practice Set → Advance Html — Part 1
Master the next curriculum module with 40 exam-standard MCQs.
💡 Examiner's Advisory for Programming & Software Development
In competitive commission exams (FPSC, PPSC, KPPSC, SPSC, CSS, PMS), questions are frequently phrased with distractor options designed to catch rote learners. Whenever you answer an MCQ, read the Detailed Academic Explanation and Conceptual Anchor to understand why the remaining options are incorrect.