MCQs > IT & Programming > PHP > Output of the program if the value of ‘cate’ remains 5? 1. 8. Correct category! 9. 12. Incorrect category! 13.

PHP MCQs

what will be the output of the program if the value of ‘cate’ remains 5?

1.    <?php

2.    $cate=5;

3.    …

4.    …

5.    If ($cate==5)

6.    {

7.    ?>

8.    Correct category!

9.    <?php

10.  } else {

11.  ?>

12.  Incorrect category!

13.  <?php

14.  }

15.  ?>

 

Answer

Correct Answer: Error due to use of invalid operator in line 6:”if ($cate==5)”

Explanation:

Note: This Question is unanswered, help us to find answer for this one

PHP Skill Assessment

Overall Skill Level-Poor

Your Skill Level: Poor

Retake Quizzes to improve it

search

PHP Skill Assessment

Overall Skill Level-Poor

Your Skill Level: Poor

Retake Quizzes to improve it