Take PHP Quiz & Online Test To Test Your Knowledge
Take PHP Quiz & Online Test To Test Your Knowledge
com
PHP MCQ Quiz & Online Test
Q2. The date_sunset() function returns the sunset time for a specified day and location.
A. True
B. False
Q3. Which of the following symbol is used to add multiple line comments in PHP ?
A. //
B. /* */
C. {{ }}
D. {/ \}
A. $$
B. $
C. #@
D. $|
A. $_SERVER
B. $_ENV
C. $_FILES
D. $_PUT
A. asc()
B. chr( )
C. ascii()
D. val( )
A. delete()
B. unset()
C. unlink()
D. delete();
A. 20
B. 4
C. 19
D. 16
Q10. In which version of PHP E_STRICT Error level is introduced ?
A. PHP 4
B. PHP 5
C. PHP 5.2
D. PHP 7
Q11. Which function in PHP is used to get the length of string variable?
A. count()
B. strcount
C. strlen
D. len
A. \n
B. \r
C. /n
D. /r
A. Drek Kolkevi
B. Rasmus Lerdorf
C. Willam Makepiece
D. List Barely
A. PHP 5
B. PHP 5.3
C. PHP 4
D. PHP 6
Q15. A function in PHP which starts with __ (double underscore) is known as __________
.
A. Inbuilt Function
B. Default Function
C. Magic Function
D. User Defined Function
Q16. Which of the following PHP functions accepts any number of parameters?
A. func_get_args()
B. func_get_argv()
C. get_argv()
D. get_argc()
A. -1
B. 0
C. 1
D. 2
A. asort()
B. sort()
C. rsort()
D. dsort()
Q19. Which one of the following property scopes is not supported by PHP?
A. public
B. final
C. friendly
D. static
A. .xml
B. .html
C. .php
D. .py
A. Notepad ++
B. VS Code Editor
C. Sublime Text
D. All of the above
A. PHP 3
B. PHP 5
C. PHP 7
D. PHP 8
A. PHP 5
B. PHP 6
C. PHP 7
D. PHP 8
Q26. Which PHP function is used to find files?
A. file()
B. fold()
C. glob()
D. None of the above
A. Yes
B. No
A. True
B. False
A. $get
B. $post
C. $request
D. $ask
A. zip()
B. compress()
C. zip_compress()
D. gzcompress()
A. Hello World
B. Hello World!
C. Hello World! Welcome to the Online Interview Questions
D. None of the above
A. $_SESSION[]
B. isset() function
C. session_start() function
D. session_destroy() function
A. PHP 5
B. PHP 6
C. PHP 7
D. PHP 8
A. 15
B. 16
C. 17
D. 14