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. 1.

Line 4

, 2.

Line 13

, 3.

Line 15

, 4.

Line 17

">
MCQs > IT & Programming > PHP 5 > 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.

PHP 5 MCQs

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.


Answer

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

PHP 5 Skill Assessment

Overall Skill Level-Poor

Your Skill Level: Poor

Retake Quizzes to improve it

search

PHP 5 Skill Assessment

Overall Skill Level-Poor

Your Skill Level: Poor

Retake Quizzes to improve it