GoConqr has a new look! Let us know what you think.

Quiz

Basic PHP: echo and print output

yazan hassan 5 questions

Take the quiz

Questions in this quiz (5)

  1. 1what is the output ?
    <?php
    echo "Welcome to PHP";
    echo "<br>";
    echo "This is first Page";
    ?>
    1. AWelcome to PHP
      This is first Page
    2. BWelcome to PHP This is first Page
    3. CWelcome to PHP <br>
      This is first Page
    4. Dnone of the above
  2. 2what is the output ?
    <?php
    $txt1="Hello";
    $txt2="There";

    echo $txt1;
    echo $txt2;

    ?>
    1. AHello There
    2. BHello
      There
    3. CNONE of the above
  3. 3what is the output ?
    $a=32;
    $b="php";
    echo '$a='$a;
    echo ""$a"=$a";
    1. A32
      php
    2. B$a=32
      phpphp
    3. C32
      php=php
    4. Dnone of the above
  4. 4what is the output
    <?php

    print "wlecome to php ""list write the code ";

    ?>
    1. Awlecome to php list write the code
    2. Bwlecome to php
      list write the code
    3. Cerror
    4. Dnone of above
  5. 5The difference between echo and print is ?
    1. Ano difference
    2. BEcho take more than one prameter Print take just one prameter
    3. Cprint take more than one prameter echo take just one prameter
    4. Dnone of the above

Information

Description
Quiz on Untitled, created by yazan hassan on 16/11/2017.
Language
English
Views
2
Rating
No ratings yet
Rate this quiz
Rate this quiz

Feedback

What is it about?

What do you think of the new look?

How do you like it?