The___statement contains boolean expression inside brackets followed by a single or multiline code block.
0/1
Choose the correct statements
0/1
The ___ keyword marks a block of code in a switch statement.
0/1
What will be the output of the following program? <?php $t = date("H");if ($t < "20") { echo "Have a good day!";}?>
1/1
Conditional statements are used to execute the statements repeatedly
1/1
<?php $favcolor = "red";switch ($favcolor) { case "red": echo "Your favorite color is red!"; break; case "blue": echo "Your favorite color is blue!"; break; case "green": echo "Your favorite color is green!"; break; default: echo "Your favorite color is neither red, blue, nor green!";}?>
0/1
Which of the following is not a keyword using in switch case statement
0/1
____ statements are the alternative of conditional operator
0/1
What will be the output of the following PHP code ?<?phpif (-100)print “hi” ;else print “how are u”;?>
0/1
Which of the following is not a conditional statement?
0/1
What will be the output of the following PHP code ? <?php$x=1;if($x=$x&0)print$x;elsebreak;?>
0/1
What will be the output of the following PHP code ?<?php if(0.0)print"hi";elseprint"how are u";?>
0/1
Which of the following is using for multiple options?
0/1
What is the output of the following code? <?php$t = date("H");echo "<p>The hour (of the server) is " . $t;echo ", and will give the following message:</p>";if ($t < "10") { echo "Have a good morning!";} elseif ($t < "20") { echo "Have a good day!";} else { echo "Have a good night!";}?>
0/1
There are ___ different kinds of selection statements available in PHP
0/1
Conditional statements are used to perform different actions based on different conditions.
0/1
What is the output of the following code? <?php$t = date("H");if ($t < "20") { echo "Have a good day!";} else { echo "Have a good night!";}?>
1/1
The ______statement is used to perform different actions based on different conditions.
0/1
_____ are useful for writing decision making logics.
0/1
Choose the incorrect sentence
0/1
Use the ____ statement to select one of many blocks of code to be executed.
0/1
Conditional statements Very often when we write code, you want to perform different actions for different decisions in different business logic.
1/1
_____ statement executes a statement or a group of statements if a specific condition is satisfied by the user expectation.
0/1
Statement which is used to make choice between two options and only option is to be performed is written as____
0/1