Functions in PHP MCQ

Programming Language > PHP

This is the MCQ questions and answers section on "PHP Functions" with the explanation for various interview, competitive examination and entrance test. Solved examples with detailed answer description, explanation are given and it would be easy to understand. ➲ Functions in PHP MCQ - Quiz


  • A func_get_argv()
  • B func_get_argc()
  • C get_argv()
  • D get_argc()
  • A glob()
  • B file()
  • C fold()
  • D get_file()
  • A bits
  • B bytes
  • C kilobytes
  • D gigabytes
  • A fileltime()
  • B filectime()
  • C fileatime()
  • D filetime()
  • A file_contents()
  • B file_get_contents()
  • C file_content()
  • D file_get_content()
  • A fgets()
  • B fget()
  • C fileget()
  • D filegets()
  • A sets()
  • B set()
  • C touch()
  • D touched()
  • A out_cmm()
  • B out_system()
  • C cmm()
  • D system()
  • A scandir()
  • B readdir()
  • C scandirectory()
  • D readdirectory()
  • A function { function body }
  • B data type functionName(parameters) { function body }
  • C functionName(parameters) { function body }
  • D function fumctionName(parameters) { function body }
  • A PHP 4
  • B PHP 5
  • C PHP 5.3
  • D PHP 6
  • A get_usage()
  • B get_peak_usage()
  • C get_memory_usage()
  • D get_memory_peak_usage()
  • A uniqueid()
  • B id()
  • C md5()
  • D mdid()
  • A zip_compress()
  • B zip()
  • C compress()
  • D gzcompress()
  • A 1
  • B 2
  • C 3
  • D 4
  • A 106
  • B 103
  • C 104
  • D 209
  • A I love my country
  • B i love my Country
  • C I love my Country
  • D I Love My Country
  • A welcome to India
  • B welcome to india
  • C Welcome to India
  • D Welcome to india
  • A Call By Value
  • B Call By Reference
  • C Default Argument Value
  • D Type Hinting
  • A Error
  • B 0
  • C 42
  • D 84
  • A Only (ii)
  • B None of the mentioned.
  • C All of the mentioned.
  • D (iii) and (iv)
  • A I am b
  • B I am bI am a
  • C Error
  • D I am a Error
  • A I am b
  • B I am bI am a
  • C Error
  • D I am a Error
  • A helloblabla
  • B Error
  • C hello
  • D helloblablablabla
  • A Magic Function
  • B Inbuilt Function
  • C Default Function
  • D User Defined Function
  • A Error
  • B $msg
  • C 0
  • D will this work