Which one of the following PHP function is used to determine a file’s last access time? fileatime() filetime() filectime() fileltime() TRUE ANSWER : ? YOUR ANSWER : ?
Which function sets the file filename’s last-modified and last-accessed times? touched() set() sets() touch() TRUE ANSWER : ? YOUR ANSWER : ?
What is the difference between stat() and fstat()? stat() has nothing to do with files While stat() works on open file pointers, fstat() works on files specified by pathname While fstat() works on open file pointers, stat() works on files specified by pathname fstat() has nothing to do with files fstat() is an alias of stat() TRUE ANSWER : ? YOUR ANSWER : ?
Which of the following functions reads the entire contents of a file?<br/>1. fgets()<br/>2. file_get_contents()<br/>3. fread()<br/>4. readfile()<br/>5. file() Option 2, 4 and 5 Option 3 and 5 Option 1, 3 and 4 Option 2 and 4 TRUE ANSWER : ? YOUR ANSWER : ?
Which one of the following function is capable of reading a file into an array? file_arr() file() arr_file() arrfile() TRUE ANSWER : ? YOUR ANSWER : ?
Which one of the following function is capable of reading a file into a string variable? file_content() file_get_contents() file_contents() file_get_content() TRUE ANSWER : ? YOUR ANSWER : ?
The filesize() function returns the file size in ___________ bits gigabytes bytes kilobytes TRUE ANSWER : ? YOUR ANSWER : ?
The ........... function is used to read a single character from a file. fgetf() fget() fgetc() fgets() TRUE ANSWER : ? YOUR ANSWER : ?
What should you do if your script is having problem recognizing file endings from a text file saved on a platform different from the one you’re reading it on? Use fpos() Use a regular expression to detect the last letter of a line Change the auto_detect_line_endings INI setting Read the file one character at a time Use ftok() TRUE ANSWER : ? YOUR ANSWER : ?
Which function is useful when you want to output the executed command’s result? system() out_system() out_cmm() cmm() TRUE ANSWER : ? YOUR ANSWER : ?