Are you a PHP language expert? What is PHP OOP? Is it hard? Take this PHP practice test and check how easily you can solve basic PHP questions. In this quiz, we’ll be analyzing your knowledge of all the different functions of the widely used programming and web development language PHP! What can you tell us about these functions and See morehow they are used? Give this quiz a try and test your knowledge of this language. Let’s find out!
Inheritance allows a child class to inherit properties and methods from multiple parent classes simultaneously.
Inheritance is a mechanism by which a class can inherit properties and methods from one parent class only.
Inheritance is primarily used to restrict access to certain properties and methods within a class hierarchy.
Inheritance facilitates the creation of entirely new properties and methods in child classes, distinct from those in parent classes.
Rate this question:
Gc_rc()
Gc_enable()
Crc_enable()
Gc_activate()
Crc_activate()
Rate this question:
Yes
No
There is nothing like 'anonymouss functions'
Rate this question:
(string, string, string, bool, int)
(string, string)
(string, string, string, bool)
(string, string, string, int, bool)
(string, string, string, bool, bool)
Rate this question:
PHP: Hypertext Processor
Private Home Page
Personal Home Page
Personal Hypertext Processor
PHP: Personal Hypertext Processor
Rate this question:
Yes
No
Yes, but only commercial editions of PHP
Rate this question:
...
or
Rate this question:
@
#
$
\
%
Rate this question:
Request.QueryString;
Request.Form;
Get_request();
$_GET[];
Request(GET);
Rate this question:
True
False
None from above
Rate this question:
True
False
Rate this question:
Connect_mysql("localhost");
Mysql_open("localhost");
Dbopen("localhost");
Mysql_connect("localhost");
Depends on MySQL server version
Rate this question:
$variable =+ 1;
Variable =+1;
Variable++;
$variable++;
Variable +=1;
Rate this question:
*/.../*
*\...\*
#...
…
Rate this question:
$myVar
$my_Var
$my-Var
All of them
None of them
Rate this question:
Yes
No
Only on linux
Only on Windows
Rate this question:
Body text='%black%'
Body text='black'
Body text="black"
None
Rate this question:
Foo:*1023
Foo*
*foo
Foo
*
Rate this question:
Fruits[0] = lemon fruits[1] = orange fruits[2] = banana fruits[3] = apple
Apple banana lemon orange
Fruits[0] = apple fruits[1] = banana fruits[2] = lemon fruits[3] = orange
Fruits[0] = apple fruits[1] = banana fruits[2] = orange fruits[3] = lemon
None
Rate this question:
Set autocommit on
Set autocommit off
Error in code
Nothing
Rate this question:
Apple banana lemon a = orange
C = apple b = banana d = lemon a = orange
A = apple b = banana c = lemon d = orange
Apple banana lemon orange
Apple banana lemon orange
Rate this question:
The above sentense is true
The above sentense is false
Described situation will result in error
Rate this question:
Isset returns true
Isset returns false
Error in code
Rate this question:
Name
@example
@example.com
Example.com
Rate this question:
A private method in a parent class can be accessed directly by its child class.
A protected property in a parent class can be accessed directly by its child class.
A public method in a parent class cannot be overridden by a child class.
A static property cannot be inherited by a child class.
Rate this question:
12345
1
0
Displays nothing
Error in code
Rate this question:
12345678910
1234567891011
None
Rate this question:
NULL
0
8
Error in code
Rate this question:
Getlasterror()
Get_error()
Get_last_error()
Error_get_last()
Rate this question:
Set_error()
Error_reporting()
Set_error_reporting()
Set_reporting_errors()
Rate this question:
Trigger_error()
Error_log()
Report_error()
Error_report()
Log_error()
Rate this question:
True
False
Rate this question:
E
A
F
D
C
Rate this question:
Outputs: Hello World!
Outputs: "earth" not found in string
No output
Gives error in code
Rate this question:
Class
Function
Object
New
Rate this question:
True
False
Rate this question:
Rate this question:
Quiz Review Timeline (Updated): Nov 25, 2024 +
Our quizzes are rigorously reviewed, monitored and continuously updated by our expert board to maintain accuracy, relevance, and timeliness.
Wait!
Here's an interesting quiz for you.