The strcmp() function is used to compare the strings including case
Anonymous Quiz
91%
True
9%
False
What is the output of the following PHP code:-
<?php $i = 5; while (--$i > 0 && ++$i) { print $i; } ?>
<?php $i = 5; while (--$i > 0 && ++$i) { print $i; } ?>
Anonymous Quiz
16%
5
2%
55
5%
555
77%
5555.... infinitely
If $a = 12 what will be returned when
($a == 12) ? 5 : 1
is executed?
($a == 12) ? 5 : 1
is executed?
Anonymous Quiz
5%
1
86%
5
2%
12
7%
Error
The abstract classes are the classes in which at least one method need to be abstract. Abstract classes in PHP are declared with the help of keyword abstract
Anonymous Quiz
100%
True
0%
False
In object-oriented PHP encapsulation is a concept of wrapping up or binding up the data members and methods in a single module
Anonymous Quiz
98%
True
2%
False
In object-oriented programming, classes are the blueprints of php objects
Anonymous Quiz
95%
True
5%
False
PHP supports five class property scopes: public, private, protected, final and static
Anonymous Quiz
93%
True
7%
False
To create a new object in PHP we can use the new statement to instantiate a class.
Anonymous Quiz
57%
False
43%
True
🔥1💔1
PHP supports six method scopes: public, private, final, static, protected and abstract. But it does not support friendly
Anonymous Quiz
29%
False
71%
True
When we declare a method is as final then it is not possible to override that method. Methods should not be overridden due to some security or any other reasons
Anonymous Quiz
92%
True
8%
False
Returns the version of the Common Gateway Interface (CGI) the server is using
Anonymous Quiz
83%
$_SERVER['GATEWAY_INTERFACE']
17%
$_SERVER['SERVER_NAME']
Normally implemented over a ....
Anonymous Quiz
75%
TCP connection (80 is standard port number for HTTP)
18%
HTTP request over connection
7%
DNS to locate IP address
👍1
Composer is dependency management tool for PHP, like a library full of books
Per project tool (vendor folder), not per system
Per project tool (vendor folder), not per system
Anonymous Quiz
90%
T
10%
F
f PHP_SELF is used in your page then a user can enter a slash (/) and then some Cross Site Scripting (XSS) commands to execute.
Anonymous Quiz
92%
T
8%
F