You Scored:
Ranking:
Solved MCQs Online Test Questions With Answers
1. PHP scripts are executed on ---------?
ISP Computer
It depends on PHP scripts
Server Computer (Answer)
Client Computer
2. If one intends to create a model that will be assumed by a number of closely related objects, which class must be used?
Interface
Abstract class (Answer)
Static class
Normal class
3. Which of the following statements prints in PHP?
Display
Echo (Answer)
Out
Write
4. Which of the following PHP functions can be used to get the current memory usage?
get-memory-peak-usage()
get-usage()
get-memory-usage() (Answer)
get-peak-usage()
5. Which one of the following PHP functions can be used to find files?
get-file()
glob() (Answer)
file()
fold()
6. PHP Stands for?
Php Hypertext Processor
Php Hypertext Preprocessor (Answer)
Php Hypermarkup Processor
Php Hypermarkup Preprocessor
7. Say you want to report error concerned about fatal run-time, fatal compile-time error and core error which statement would you use?
error-reporting = E-ERROR | E-COMPILE-WARNING | E-CORE-ERROR
error-reporting = E-ERROR | E-PARSE | E-CORE-ERROR
error-reporting = E-ALL
error-reporting = E-ERROR | E-COMPILE-ERROR | E-CORE-ERROR (Answer)
8. Which version of PHP introduced E-STRICT Error level?
PHP 5.2
PHP 4
PHP 5 (Answer)
PHP 5.3
9. Which one of the following is the right way to clone an object?
-clone(targetObject);
destinationObject = -clone(targetObject);
destinationObject = clone targetObject; (Answer)
destinationObject = clone(targetObject);
10. Which of the following PHP functions can be used for generating unique id’s?
id()
md5()
mdid()
uniqueid() (Answer)
11. In PHP, each statement must be end with ------?
/ (slash)
: (colon)
. (dot)
; (semicolon) (Answer)
12. Which of the following is not the scope of Variable in PHP?
Global
Local
Extern (Answer)
Static
13. Which character do the error-reporting directive use to represent the logical operator NOT?
^
/
~ (Answer)
!
14. How many error levels are available in PHP?
14
17
15
16 (Answer)
15. In PHP Language variables name starts with -----?
* (Asterisk)
& (Ampersand)
! (Exclamation)
$ (Dollar) (Answer)