PHP MCQ Questions and Answers

Practice Mode
Showing 10 of 130 questions
Q51
Which of following function return 1 when output is successful?
  • A echo ( )
  • B print ( )
  • C both
  • D None
Answer: Option B
Q52
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
Q53
Which of the following type specifier is invalid in print f ( ) functions
  • A % a
  • B % b
  • C % c
  • D % d
Answer: Option A
Q54
Which of the following function can assign the output to a string variable
  • A echo ( )
  • B print ( )
  • C print f ( )
  • D s print f ( )
Answer: Option D
Q55
Which of the following data type is not seal or datetype supported by PHP
  • A Array
  • B String
  • C Float
  • D Boolean
Answer: Option A
Q56
Which of the following data type is compound datatype supported by PHP
  • A Array
  • B String
  • C Float
  • D Boolean
Answer: Option A
Q57
If a boolean variable $ alive= 5;
  • A $ alive is false
  • B $ alive is true
  • C $ alive is overflow
  • D the statement is snot valid
Answer: Option B
Q58
For integer data type PHP 6 introduced
  • A 8 bit integer value
  • B 16 bit integer value
  • C 32 bit integer value
  • D 64 bit integer value
Answer: Option D
Q59
For integer data type PHP 5 and earlier supported
  • A 8 bit integer value
  • B 16 bit integer value
  • C 32 bit integer value
  • D 64 bit integer value
Answer: Option C
Q60
Which of the following is not a session function?
  • A sssion_decode
  • B session_destroy
  • C session_id
  • D session_pw
Answer: Option D
Questions and Answers for Competitive Exams Various Entrance Test