File handling mcq in php
This set of PHP Multiple Choice Questions & Answers (MCQs) focuses on “File System and PHP”. 1. The filesize() function returns the file size in ___________ Answer: b 2. Which one of the following PHP function is used to determine a file’s last access time? Answer: c 3. Which one of the following function is capable of reading a file into an array? Answer: a 4. Which one of the following function is capable of reading a file into a string variable? Answer: b 5. Which one of the following function is capable of reading a specific number of characters from a file? Answer: a 6. Which one of the following function operates similarly to fgets(),
except that it also strips any HTML and PHP tags form the input? Answer: d 7. Which one of the following function outputs
the contents of a string variable to the specified resource? Answer: b 8. Which function sets the file filename last-modified and last-accessed times? Answer: c 9. Which function is useful when you want to output the executed command result? Answer: d 10. Which one of the following function reads a directory into an Array? Answer: a Sanfoundry Global Education & Learning Series – PHP Programming. To practice all questions on PHP Programming, here is complete set of 1000+ Multiple Choice Questions and Answers on PHP. Next Steps:
Manish Bhojasia, a technology veteran with 20+ years @ Cisco & Wipro, is Founder and CTO at Sanfoundry. He lives in Bangalore, and focuses on development of Linux Kernel, SAN Technologies, Advanced C, Data Structures & Alogrithms. Stay connected with him at LinkedIn. Subscribe to his free Masterclasses at Youtube & technical discussions at Telegram SanfoundryClasses. |