English
Tamil Nadu Board of Secondary EducationHSC Science Class 12

What will be the output of the following PHP code? <?php if (-100) print “hi” ; else print “how are u”; ?> - Computer Applications

Advertisements
Advertisements

Question

What will be the output of the following PHP code?

<?php
if (-100)
print “hi” ;
else
print “how are u”;
?>

Options

  • how are u

  • hi

  • error

  • no output

MCQ
Advertisements

Solution

hi

shaalaa.com
Control structures in PHP
  Is there an error in this question or solution?
Chapter 6: PHP Conditional Statements - Evaluation - PART – I [Page 111]

APPEARS IN

Samacheer Kalvi Computer Applications [English] Class 12 TN Board
Chapter 6 PHP Conditional Statements
Evaluation - PART – I | Q 9. | Page 111
Share
Notifications

Englishहिंदीमराठी


      Forgot password?
Use app×