PHP advanced quiz quiz

Advanced PHP quiz that covers common programming problem and solutions for them.

This quiz is in PHP quiz collection.

Start quiz
  • 1.

    Which of the following method can be used to create a MySql database using PHP?

  • 2.

    Which of the following is NOT a magic predefined constant?

  • 3.

    What will be the value of $var below?

    $var = true ? '1' : false ? '2' : '3';
  • 4.

    Which of the following array represents an array containing one or more arrays?

  • 5.

    Which of the following function creates an array?

  • 6.

    Doubly quoted strings are treated almost literally, whereas singly quoted strings replace variables with their values as well as specially interpreting certain character sequences.

  • 7.

    Which of the following function is used to check if a file exists or not?

  • 8.

    Which of the following is an associative array of variables passed to the current script via HTTP cookies?

  • 9.

    Which of the following keyword causes the loop to skip the remainder of its body and immediately retest its condition prior to reiterating?

  • 10.

    Which of the following variable is used to generate random numbers using PHP?

  • 11.

    Which of the following is used to access session variables in PHP?

  • 12.

    Which of the following provides the size of the uploaded file in PHP?

  • 13.

    Which of the following method of Exception class returns array of the backtrace?

  • 14.

    What is the difference between single-quoted and double-quoted strings in PHP?

  • 15.

    When using the POST method, variables are displayed in the URL:

© 2017 QuizBucket.org