PHP MCQ Questions and Answers

Practice Mode
Showing 10 of 130 questions
Q61
When uploading a file if the UPLOAD_ERR-OK contains value 0 it means
  • A Uplaod is not successful, error occurred
  • B The file uploaded with success
  • C Uploaded file size is 0
  • D File upload progress is 0% completed
Answer: Option B
Q62
Which of the following delimiter syntax is PHP's default delimiter syntax
  • A <? php ?>
  • B <% %>
  • C <? ?>
  • D <script language="php"> </script>
Answer: Option A
Q63
Which of the following statement produce different output
  • A <?echo "This is php example"; ?>
  • B <P="This is php example"; ?>
  • C <?PHP echo "This is php example"; php?>
  • D <script language="php"> print "This is php example";</script>
Answer: Option C
Q64
Which of the following delimiter is ASP style?
  • A <% %>
  • B <? ?>
  • C <script language="php"> </script>
Answer: Option B
Q65
Php supports all four different ways of delimiting. In this context identify the false statement
  • A You can use any of the delimiting style
  • B You can use different delimiting styles in same page
  • C You can use any delimiting style but must use a single style consistently for a page
  • D Variables declared in previous blocks are remenbered on later blocks too!
Answer: Option C
Q66
Which of following commenting is supported by Php
  • A Single line c++ syntax - //
  • B Shell syntax - #
  • C Both of above
  • D None of above
Answer: Option C
Q67
To produce the output6 I love the summer time, Which of the ofllowing statement should be used?
  • A <? Php print ("<P> I love the summer time</p>"Wink;?>
  • B <? Php $ season="summer time"; print"<p> I love the $ season</p>"; ?>
  • C <?Php $ message="<p> I love the summer time </p>; ecdho $ message; ?>
  • D All of above
Answer: Option D
Q68
Which of following function return 1 when output is successful?
  • A echo ( )
  • B print ( )
  • C both
  • D None
Answer: Option B
Q69
Which of followng statement is more suitable if you want to output a blend of static text and dynamic information stored within one or several variables?
  • A echo ( )
  • B print ( )
  • C Print f ( )
  • D None of above
Answer: Option C
Q70
Which of the following type specifier is invalid in print f ( ) functions
  • A % a
  • B % b
  • C % c
  • D % d
Answer: Option A
Questions and Answers for Competitive Exams Various Entrance Test