English
Tamil Nadu Board of Secondary EducationHSC Science Class 12

What will be the output of the following PHP code? <?php $x = 10; $y = 20; if ($x > $y andand 1||1) print “hi” ; else print “how are u”; ?> - Computer Applications

Advertisements
Advertisements

Question

What will be the output of the following PHP code?

<?php
$x = 10;
$y = 20;
if ($x > $y && 1||1)
print “hi” ;
else
print “how are u”;
?>

Options

  • how are u

  • hi

  • error

  • no output

MCQ

Solution

hi

shaalaa.com
  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 8. | Page 111
Share
Notifications

Englishहिंदीमराठी


      Forgot password?
Use app×