1. The filesize() function returns the file size in ___________ A. bits B. bytes C. kilobytes D. gigabytes Answer & Solution Discuss in Board Save for Later Answer & Solution Answer: Option B No explanation is given for this question Let's Discuss on Board
2. Which one of the following PHP function is used to determine a file’s last access time? A. fileltime() B. filectime() C. fileatime() D. filetime() Answer & Solution Discuss in Board Save for Later Answer & Solution Answer: Option C Solution: The fileatime() function returns a file’s last access time in Unix timestamp format or FALSE on error.
3. Which one of the following function is capable of reading a file into an array? A. file() B. arrfile() C. arr_file() D. file_arr() Answer & Solution Discuss in Board Save for Later Answer & Solution Answer: Option A No explanation is given for this question Let's Discuss on Board
4. Which one of the following function is capable of reading a file into a string variable? A. file_contents() B. file_get_contents() C. file_content() D. file_get_content() Answer & Solution Discuss in Board Save for Later Answer & Solution Answer: Option B No explanation is given for this question Let's Discuss on Board
5. Which one of the following function is capable of reading a specific number of characters form a file? A. fgets() B. fget() C. fileget() D. filegets() Answer & Solution Discuss in Board Save for Later Answer & Solution Answer: Option A Solution: Its prototype is string fgets(resource handle [, int length]). If the optional length parameter is omitted, 1024 character is assumed.