MCQs > IT & Programming > PHP > Which values should be assigned to the variables $a, $b and $c in order for the following script to display the string Hello, World!

PHP MCQs

Which values should be assigned to the variables $a, $b and $c in order for the following script to display the string Hello, World! <?php $string= "Hello, World!"; $a =?; $b =?; $c =?; if($a) { if($b &&!$c){ echo "Goodbye Cruel World!"; } else if(!$b &&!$c) { echo "Nothing here"; } } else { if(!$b) { if(!$a && (!$b && $c)) { echo"Hello, World!"; } else { echo"GoodbyeWorld!"; } } else { echo "Not quite."; } } ?>

Answer

Correct Answer: False, False, True

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