You Scored:
Ranking:
Past Papers PHP Questions Answers Solved MCQs
1. PHP is ------- scripting language?
Out-side
Middle-side
Server-side (Answer)
Clint-side
2. What is the description of Error level E-ERROR?
Fatal Compile-time error
Compile-time error
Near-fatal error
Fatal run-time error (Answer)
3. PHP Scripts starts with --------?
?php ... ?php
<?php ... ?php> (Answer)
(?php ... ?php)
None of These
4. Which one of the following functions can be used to compress a string?
zip-compress()
gzcompress() (Answer)
compress()
zip()
5. In PHP Language variables are case sensitive?
False
Depends on website
True (Answer)
Depends on server
6. Which version of PHP introduced the advanced concepts of OOP?
PHP 4
PHP 6
PHP 5 (Answer)
PHP 5.3
7. In PHP a variable needs to be declare before assign?
Depends on website
False (Answer)
True
Depends on server
8. Which magic method is used to implement overloading in PHP?
--invoke
--call (Answer)
--unset
--wakeup
9. If your object must inherit behavior from a number of sources you must use a/an?
Object
Interface (Answer)
static class
abstract class
10. Which one of the following PHP functions can be used to build a function that accepts any number of arguments?
func-get-argv()
func-get-argc() (Answer)
get-argv()
get-argc()