Which of the following PHP statements will output Hello World on the screen?
Home | Discussion Forum

Free Online Test

Taiyari24Hour

Which of the following PHP statements will output Hello World on the screen?

  1. echo (“Hello World”);
  2. print (“Hello World”);
  3. printf (“Hello World”);
  4. sprintf (“Hello World”);



View More Related Question

1) What will be the output of the following code?

function track()
{
static $count = 0;
$count++;
echo $count;
}
track();
track();
track();

2) Which of the conditional statements is/are supported by PHP?

  1. if statements
  2. if-else statements
  3. if-elseif statements
  4. switch statements

3) What will be the output of the following php code?

 $num  = 1;
$num1 = 2;
print $num . "+". $num1;
?>

4) What will be the output of the following PHP code?

$total = "25 students";
$more = 10;
$total = $total + $more;
echo "$total";

5) Which version of PHP introduced Try/catch Exception?

UP Gk Online Test

taiyari24hour.com

Study 2 Online Says....
Kindly log in or signup.