Home > MCQs > IT & Programming > PHP MCQs

PHP MCQ

PHP Quick Quiz

Question 1 of 10
  • Which function is used to determine whether the variable’s value is either TRUE or FALSE?

    Answer & Explanation

    Correct Answer: is_bool()

    Note: This Question is unanswered, help us to find answer for this one

  • Can PHP be run on a Windows IIS server?

    Answer & Explanation

    Correct Answer: true

    Note: This Question is unanswered, help us to find answer for this one

  • What separates a sequence of one or more characters used to specify the boundary between separate text regions?

    Answer & Explanation

    Correct Answer: delimiter

    Note: This Question is unanswered, help us to find answer for this one

  • The interpreter executes one PHP command which ends in a semi-colon. This is referred to as a

    Answer & Explanation

    Correct Answer: PHP statement.

    Note: This Question is unanswered, help us to find answer for this one

  • Which of the following is used to print today

    Answer & Explanation

    Correct Answer: echo date(format,timestamp);

    Note: This Question is unanswered, help us to find answer for this one

  • echo substr("Hello world",-4); the right output is?

    Answer & Explanation

    Correct Answer: orld

    Note: This Question is unanswered, help us to find answer for this one

  • What is the result of the following code?

    Answer & Explanation

    Correct Answer: Array

    Note: This Question is unanswered, help us to find answer for this one

  • Which of the following data types are supported in PHP? Check all the apply.

    Answer & Explanation

    Correct Answer: NULL

    Note: This Question is unanswered, help us to find answer for this one

  • How can you call this function? $greet = function($name) { printf("Hello %s\r\n", $name); };

    Answer & Explanation

    Correct Answer: $greet('World');

    Note: This Question is unanswered, help us to find answer for this one

  • Which PHP function checks to see if a file exists and is writable?

    Answer & Explanation

    Correct Answer: is_writable()

    Note: This Question is unanswered, help us to find answer for this one

  • PHP Quick Quiz

    battery

    Poor Results!

    You need a lot of improvement.

    Just don't give up!

    Correct Answers: 0/10

    Start Practicing with our MCQs given below.