Question:You wrote following script to check for the right category:
1    <?php
2    $cate=5;
3    …
4    …
5    
6    if  ($cate==5)
7    {
8    ? >
9    Correct category!
10    <?php
11    }else{
12    ? >
13    Incorrect category!
14    < ? php
15    }
16    ? >
What will be the output of the program if value of ‘cate’ remains 5? 

A Correct category! 

B Incorrect category! 

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

D syntax at line 8, 10, 12 and Error due to incorrect 14 

+ Answer
+ Report
Total Preview: 362

Copyright © 2025. Powered by Intellect Software Ltd