Explore topic-wise MCQs in Php.

This section includes 4 Mcqs, each offering curated multiple-choice questions to sharpen your Php knowledge and support exam preparation. Choose a topic below to get started.

1.

Which of the following PHP functions can be used for generating unique ids?

A. uniqueid()
B. id()
C. md5()
D. mdid()
Answer» B. id()
2.

Which of the following PHP functions can be used to get the current memory usage?

A. get_usage()
B. get_peak_usage()
C. memory_get_usage()
D. memory_get_peak_usage()
Answer» D. memory_get_peak_usage()
3.

Which one of the following PHP functions can be used to find files?

A. glob()
B. file()
C. fold()
D. get_file()
Answer» B. file()
4.

Which of the following PHP functions accepts any number of parameters?

A. func_get_argv()
B. func_get_args()
C. get_argv()
D. get_argc()
Answer» C. get_argv()