file reading and writing functions

mcqspedia.com has 5 Question/Answers about Topic file reading and writing functions

Unlike fopen ( ), result of fclose ( ) does not need to be assigned

Unlike fopen ( ), result of fclose ( ) does not need to be assigned
  • A. To a variable
  • B. To a string
  • C. To a function
  • D. To a parameter
  • Correct Answer: Option A

Function fread ( ) has

Function fread ( ) has
  • A. 2 Parameters
  • B. 3 Parameters
  • C. 4 Parameters
  • D. None
  • Correct Answer: Option A

If you would like to read a file character by character which function do you use?

If you would like to read a file character by character which function do you use?
  • A. fopen ( )
  • B. fread ( )
  • C. fgetc ( )
  • D. file ( )
  • Correct Answer: Option C

Any string can be broken up into an array by using

Any string can be broken up into an array by using
  • A. file ( ) function
  • B. explode ( ) function
  • C. xplode ( ) function
  • D. Both A and B
  • Correct Answer: Option D

File_get_contents function returns entire contents of a file as

File_get_contents function returns entire contents of a file as
  • A. Integer
  • B. String
  • C. Character
  • D. None of them
  • Correct Answer: Option B