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.
6. Which one of the following function operates similarly to fgets(), except that it also strips any HTML and PHP tags form the input? A. fgetsh() B. fgetsp() C. fgetsa() D. fgetss() Answer & Solution Discuss in Board Save for Later Answer & Solution Answer: Option D No explanation is given for this question Let's Discuss on Board
7. Which one of the following function outputs the contents of a string variable to the specified resource? A. filewrite() B. fwrite() C. filewrites() D. fwrites() 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
8. Which function sets the file filename’s last-modified and last-accessed times? A. sets() B. set() C. touch() D. touched() Answer & Solution Discuss in Board Save for Later Answer & Solution Answer: Option C Solution: Its prototype is int touch(string filename [, int time [, int atime]]). It returns TRUE on success or FALSE on error.
9. Which function is useful when you want to output the executed command’s result? A. out_cmm() B. out_system() C. cmm() D. system() Answer & Solution Discuss in Board Save for Later Answer & Solution Answer: Option D No explanation is given for this question Let's Discuss on Board
10. Which one of the following function reads a directory into an Array? A. scandir() B. readdir() C. scandirectory() D. readdirectory() Answer & Solution Discuss in Board Save for Later Answer & Solution Answer: Option A Solution: It returns an array consisting of files and directories found in directory or returns FALSE on error.