Line 4
Line 13
Line 15
Line 17
Carefully analyze the following program.
1.
2.class example
3.{
4.static function check()
5.{
6.echo "Check\n";
7.}
8.function test()
9.{
10.echo "Test\n";
11.}
12.}
13.$f = new array("example", "check"); исправил:) $f = array( new example, "check");
14.$f();
15.$f = array(new example, test); исправил:) $f = array(new example, "test");
16.$f();
17.$f = "example::check";
18.$f();
19.?>
The given program was supposed to produce the following output on execution.
Check
Test
Check
However, the program contains errors. Identify the line numbers that contain errors.
Correct Answer:
Line 15
Explanation:
Note: This question has more than 1 correct answers
Note: This Question is unanswered, help us to find answer for this one
More PHP 5 MCQ Questions