Home / CSE / PHP - CS :: File System in PHP

CSE :: PHP - CS

  1. The filesize() function returns the file size in ___________

  2. A.

     bits

    B.

     bytes

    C.

     kilobytes

    D.

     gigabytes


  3. Which one of the following PHP function is used to determine a file’s last access time?

  4. A.

     fileltime()

    B.

     filectime()

    C.

     fileatime()

    D.

     filetime()


  5. Which one of the following function is capable of reading a file into an array?

  6. A.

     file()

    B.

     arrfile()

    C.

     arr_file()

    D.

     file_arr()


  7. Which one of the following function is capable of reading a file into a string variable?

  8. A.

     file_contents()

    B.

     file_get_contents()

    C.

     file_content()

    D.

     file_get_content()


  9. Which one of the following function is capable of reading a specific number of characters form a file?

  10. A.

     fgets()

    B.

     fget()

    C.

     fileget()

    D.

     filegets()


  11. Which one of the following function operates similarly to fgets(), except that it also strips any HTML and PHP tags form the input?

  12. A.

     fgetsh()

    B.

     fgetsp()

    C.

     fgetsa()

    D.

     fgetss()


  13. Which one of the following function outputs the contents of a string variable to the specified resource?

  14. A.

     filewrite()

    B.

     fwrite()

    C.

     filewrites()

    D.

     fwrites()


  15. Which function sets the file filename’s last-modified and last-accessed times?

  16. A.

     sets()

    B.

     set()

    C.

     touch()

    D.

     touched()


  17. Which function is useful when you want to output the executed command’s result?

  18. A.

     out_cmm()

    B.

     out_system()

    C.

     cmm()

    D.

     system()


  19. Which one of the following function reads a directory into an Array?

  20. A.

     scandir()

    B.

     readdir()

    C.

     scandirectory()

    D.

     readdirectory()