placeholder image to represent content

PHP

Quiz by Angkol

Feel free to use or edit a copy

includes Teacher and Student dashboards

Measure skills
from any curriculum

Tag the questions with any skills you have. Your dashboard will track each student's mastery of each skill.

With a free account, teachers can
  • edit the questions
  • save a copy for later
  • start a class game
  • automatically assign follow-up activities based on students’ scores
  • assign as homework
  • share a link with colleagues
  • print as a bubble sheet

Our brand new solo games combine with your quiz, on the same screen

Correct quiz answers unlock more play!

New Quizalize solo game modes
10 questions
Show answers
  • Q1

    What is PHP?

    PHP is used to develop dynamic and interactive websites

    PHP is a server-side scripting language

    PHP is an open-source programming language

    All of the mentioned

    30s
  • Q2

    Who is the father of PHP?

    Willam Makepiece

    List Barely

    Rasmus Lerdorf

    Drek Kolkevi

    30s
  • Q3

    What does PHP stand for?

    PHP stands for Hypertext Preprocessor

    PHP stands for Personal Hyper Processor

    PHP stands for Preprocessor Home Page

    PHP stands for Pretext Hypertext Processor

    30s
  • Q4

    Which of the following is the correct syntax to write a PHP code?

    <? ?>

    <?php   

    ?>

    < php

    >

    < ? php

    ?>

    30s
  • Q5

    Which of the following is the correct way to add a comment in PHP code?

    //

    All of the mentioned

     #

     /* */

    30s
  • Q6

    Which of the following is the default file extension of PHP files?

    .html

     .ph

    .php

    .xml

    30s
  • Q7

    How to define a function in PHP?

    function {function body}

     data type functionName(parameters) {function body}

    function functionName(parameters) {function body}

    functionName(parameters) {function body}

    30s
  • Q8

    What will be the output of the following PHP code?

    <?php

    $x = 10;

    $y = 20;

    if ($x > $y && 1||1)

                print "1000 PHP MCQ" ;

    else print "Welcome to Sanfoundry";

    ?>

     error

    1000 PHP MCQ

    no output

    Welcome to Sanfoundry

    30s
  • Q9

    Which is the right way of declaring a variable in PHP?

    $3hello

    $5_Hello

    $this

    $_hello

    30s
  • Q10

    What will be the output of the following PHP program?

    <?php

    $fruits = array ("apple", "orange", array ("pear", "mango"),"banana");

    echo (count($fruits, 1));

    ?>

    3

    4

    5

    6

    30s

Teachers give this quiz to your class