PHP files have a default file extension of..

Home | Discussion Forum

Free Online Test

Taiyari24Hour

PHP files have a default file extension of..

Free Online Test



View More Related Question

1) 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”);

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

  $foo = 'Bob';
$bar = &$foo;
$bar = "My name is $bar";
echo $bar;
echo $foo;
?>

3) Which of the below symbols is a newline character?

4) Which of following variables can be assigned a value to it?

  1. $3hello
  2. $_hello
  3. $this
  4. $This

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

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

UP Gk Online Test

taiyari24hour.com

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