Sail E0 Webinar

MCQs

Total Questions : 75 | Page 2 of 8 pages
Question 11. Which one of the following PHP functions can be used to build a function that accepts any number of arguments?
  1.    get_argc()
  2.    func_get_argc()
  3.    get_argv()
  4.    func_get_argv()
 Discuss Question
Answer: Option B. -> func_get_argc()
Question 12. Which of the following PHP functions can be used to get the current memory usage?
  1.    get_memory_usage()
  2.    get_memory_peak_usage()
  3.    get_usage()
  4.    get_peak_usage()
 Discuss Question
Answer: Option A. -> get_memory_usage()
Question 13. Which one of the following PHP functions can be used to find files?
  1.    file()
  2.    glob()
  3.    fold()
  4.    get_file()
 Discuss Question
Answer: Option B. -> glob()
Question 14. Which one of the following functions can be used to compress a string?
  1.    gzcompress()
  2.    zip()
  3.    compress()
  4.    zip_compress()
 Discuss Question
Answer: Option A. -> gzcompress()
Question 15. Which of the following PHP functions can be used for generating unique id’s?
  1.    md5()
  2.    id()
  3.    mdid()
  4.    uniqueid()
 Discuss Question
Answer: Option D. -> uniqueid()
Question 16. What will be the output of the following PHP code?echo "chr(52)";
  1.    1
  2.    3
  3.    2
  4.    4
 Discuss Question
Answer: Option D. -> 4
Question 17. What will be the output of the following PHP code?echo lcfirst("welcome to my India");
  1.    Welcome to my India
  2.    welcome to my india
  3.    Welcome to my india
  4.    welcome to my India
 Discuss Question
Answer: Option B. -> welcome to my india
Question 18. What will be the output of the following PHP code?echo ord ("hi");
  1.    209
  2.    106
  3.    103
  4.    104
 Discuss Question
Answer: Option D. -> 104
Question 19. What will be the output of the following PHP code?$str = "Hello World";echo wordwrap($str,5,"n");
  1.    Hello World
  2.    Hell 0 Wo rld
  3.    HelloWorld
  4.    World
 Discuss Question
Answer: Option C. -> HelloWorld
Question 20. What will be the output of the following PHP code?echo ucwords("i love all country");
  1.    I Love All Country
  2.    I love all Country
  3.    i love all Country
  4.    I love all country
 Discuss Question
Answer: Option A. -> I Love All Country

Latest Videos

Latest Test Papers