PHP basic

  • 1/20

    What does PHP stand for?

    Next >>
  • 2/20

    PHP is a server-side scription language?

    Next >>
  • 3/20

    Which extension is a correct PHP file extension?

    Next >>
  • 4/20

    How do you start the PHP scripting block?

    Next >>
  • 5/20

    Whitespace is not ignored in PHP?

    Next >>
  • 6/20

    What does a semicolon signify ?

    Next >>
  • 7/20

    Variables in PHP start with with?

    Next >>
  • 8/20

    Which is the correct way to start a single line PHP comment?

    Next >>
  • 9/20

    Which is the correct way to start a multiple line PHP comment?

    Next >>
  • 10/20

    PHP variables need to be declared before adding a value to it?

    Next >>
  • 11/20

    What characters must you type to begin a heredoc?

    Next >>
  • 12/20

    The correct way to create a function in PHP?

    Next >>
  • 13/20

    The correct way to add 1 to the variable

    Next >>
  • 14/20

    Array is a special variable, which can hold more than one value at a time?

    Next >>
  • 15/20

    The (2>0 || 4<5) condition will return ?

    Next >>
  • 16/20

    The (2>0 && 4>5) condition will return ?

    Next >>
  • 17/20

    Which of the following is the correct way to use the include command?

    Next >>
  • 18/20

    What will be displayed in a browser ?

    <?php
    if (3 >= 0) {
    echo "Hello";
    } else {
    echo "Welcome to ";
    }
    echo " W3Docs";
    ?>
    Next >>
  • 19/20

    What will be displayed in a browser ?

    <?php
    if ( 3 < 3 ) {
    echo "Hello";
    } elseif ( 3 > 3 ) {
    echo "Welcome to ";
    } else {
    echo " Say hello"
    }

    echo " W3Docs !!";
    ?>
    Next >>
  • 20/20

    When default case of switch statement is executed ?

    Next >>