Test
Basic PHP: echo and print output
Preguntas del test (5)
1what is the output ?
<?php
echo "Welcome to PHP";
echo "<br>";
echo "This is first Page";
?>- AWelcome to PHP
This is first Page - BWelcome to PHP This is first Page
- CWelcome to PHP <br>
This is first Page - Dnone of the above
- AWelcome to PHP
2what is the output ?
<?php
$txt1="Hello";
$txt2="There";
echo $txt1;
echo $txt2;
?>- AHello There
- BHello
There - CNONE of the above
3what is the output ?
$a=32;
$b="php";
echo '$a='$a;
echo ""$a"=$a";- A32
php - B$a=32
phpphp - C32
php=php - Dnone of the above
- A32
4what is the output
<?php
print "wlecome to php ""list write the code ";
?>- Awlecome to php list write the code
- Bwlecome to php
list write the code - Cerror
- Dnone of above
5The difference between echo and print is ?
- Ano difference
- BEcho take more than one prameter Print take just one prameter
- Cprint take more than one prameter echo take just one prameter
- Dnone of the above
Información
- Descripción
- Test sobre Sin título, creado por yazan hassan el 16/11/2017.
- Autor
- yazan hassan
- Idioma
- English
- Visitas
- 2
- Valoración
- Aún sin valoraciones Valora este test