Please select a subject first
Advertisements
Advertisements
What will be displayed in a browser when the following PHP code is executed:
<?php
for (Scounter = 20; $counter< 10;
$counter++)
{
echo “Welcome to Tamilnadu “;
}
echo “Counter is: Scounter”;
?>Concept: undefined >> undefined
What will be displayed in a browser when the following PHP code is executed;
<?php
for ($counter = 10; $counter < 10;
$counter = $counter + 5){
echo “Hello”;
}
?>Concept: undefined >> undefined
Advertisements
PHP supports which types of looping techniques ______.
Concept: undefined >> undefined
Consider the following code
<? php
$count=12;
do{
printf(“%d squared=%d<br/>”,
$count, pow($count,2));
} while($count<4);
?>
What will be the output of the code.
Concept: undefined >> undefined
What will be the output of the following PHP code?
<?php
for ($x = 1; $x < 10;++$x)
{
print “*\t”;
}
?>Concept: undefined >> undefined
What will be the output of the following PHP code?
<?php
for ($x = -1; $x < 10;--$x)
{
print $x;
}
?>Concept: undefined >> undefined
Define Looping Structure in PHP.
Concept: undefined >> undefined
What is For each loop in PHP?
Concept: undefined >> undefined
List out Looping Structure in PHP.
Concept: undefined >> undefined
Write Syntax of For loop in PHP.
Concept: undefined >> undefined
Write Syntax of For each loop in PHP.
Concept: undefined >> undefined
Write Syntax of while loop in PHP.
Concept: undefined >> undefined
Write Syntax of Do while loop in PHP.
Concept: undefined >> undefined
Compare for loop and for each loop.
Concept: undefined >> undefined
Explain the use of for each loop in PHP.
Concept: undefined >> undefined
Write the features Looping Structure.
Concept: undefined >> undefined
Write the purpose of Looping Structure in PHP.
Concept: undefined >> undefined
Differentiate For each and While loop.
Concept: undefined >> undefined
Write short notes on Do while Loop.
Concept: undefined >> undefined
