PHP Basic MCQ

Programming Language > PHP

This is the questions and answers section on "PHP Basics" with explanation for various interview, competitive examination and entrance test. Solved examples with detailed answer description, explanation are given and it would be easy to understand. ➲ PHP Basic MCQ - Quiz


  • A Both (i) and (ii)
  • B Both (ii) and (iv)
  • C Only (ii)
  • D Both (i) and (iii)
  • A Rasmus Lerdorf
  • B Willam Makepiece
  • C Drek Kolkevi
  • D List Barely
  • A .html
  • B .xml
  • C .php
  • D .ph
  • A < php >
  • B < ? php ?>
  • C < ? ? >
  • D < ?php ? >
  • A (i) and (ii)
  • B (i), (ii) and (iii)
  • C All of the mentioned
  • D None of the mentioned
  • A Only (iv)
  • B All of the mentioned.
  • C (i), (ii) and (iii)
  • D Only (iii)
  • A All of the mentioned
  • B Only (ii)
  • C (ii) and (iii)
  • D (ii), (iii) and (iv)
  • A PHP 4
  • B PHP 5
  • C PHP 5.3
  • D PHP 6
  • A Only (ii)
  • B (i), (iii) and (iv)
  • C (ii), (iii) and (iv)
  • D Both (ii) and (iv)
  • A \r
  • B \n
  • C /n
  • D /r
  • A Both (i) and (ii)
  • B All of the mentioned.
  • C Only (iii)
  • D Only (i)
  • A 3
  • B 1+2
  • C 1.+.2
  • D Error
  • A 3
  • B 1+2
  • C Error
  • D 12
  • A All of the mentioned
  • B nly (ii)
  • C (ii), (iii) and (iv)
  • D (ii) and (iv)
  • A Error
  • B My name is BobBob
  • C My name is BobMy name is Bob
  • D My name is Bob Bob
  • A 12
  • B 1
  • C Error
  • D 5
  • A (i) and (ii)
  • B (i), (ii) and (iii)
  • C All of the mentioned
  • D (i), (ii) and (iv)
  • A a
  • B Error
  • C $var
  • D r
  • A 1
  • B Error
  • C 1234
  • D 2
  • A Error
  • B 35 students
  • C 35
  • D 25 students
  • A I love arsenal
  • B Error
  • C I love arsenalI love manc
  • D I love arsenalI love mancI love manu
  • A get
  • B true
  • C false
  • D clueget
  • A 123
  • B 111
  • C 000
  • D 011
  • A echo
  • B echo
  • C echo
  • D echo
  • A $add = $add
  • B $add = $add +$add
  • C $add = $add + 1
  • D $add = $add + $add + 1
  • A What is her age? \n She is $num years old
  • B What is her age? She is $num years old
  • C What is her age? She is 10 years old
  • D What is her age? She is 10 years old