PHP Control Structures (Loop) What will be the output of the following PHP code ?switch($b) {case 2:print "hello";break;case 1:print "hi";break;} hi error no output hello hi error no output hello ANSWER DOWNLOAD EXAMIANS APP
PHP Control Structures (Loop) What will be the output of the following PHP code ?$b = 1;switch($b) {case 1.0:print "hi";break;case 1:print "hello";break;default:print "hi1";} hello hihellohi1 hihello hi hello hihellohi1 hihello hi ANSWER DOWNLOAD EXAMIANS APP
PHP Control Structures (Loop) What will be the output of the following PHP code ?$i = "";while ($i) {print "hi";}while($i < 8)$i++;print "hello"; Hi is printed once, hello 7 times Hi is printed 8 times, hello 7 times and then hi 2 times Hi is printed once, hello 7 times and then hi 2 times Hi is printed 10 times, hello 7 times Hi is printed once, hello 7 times Hi is printed 8 times, hello 7 times and then hi 2 times Hi is printed once, hello 7 times and then hi 2 times Hi is printed 10 times, hello 7 times ANSWER DOWNLOAD EXAMIANS APP
PHP Control Structures (Loop) What will be the output of the following PHP code ?$i = 0;while($i = 10) {print "hi";}print "hello"; hihello error hello infinite loop hihello error hello infinite loop ANSWER DOWNLOAD EXAMIANS APP
PHP Control Structures (Loop) What will be the output of the following PHP code ?$i = "";while($i) {print "hi";}print "hello"; infinite loop hello error hihello infinite loop hello error hihello ANSWER DOWNLOAD EXAMIANS APP
PHP Control Structures (Loop) What will be the output of the following PHP code ?for ($x = 1; $x < 10; $x++)for ($y = 1; $y < 5; $y++)print "Hello"; Hello….36 times Hello….45 times Hello….40 times Hello….50 times Hello….36 times Hello….45 times Hello….40 times Hello….50 times ANSWER DOWNLOAD EXAMIANS APP