Q.1
Which of the following is not true?
  • PHP can be used to develop web applications.
  • PHP makes a website dynamic
  • PHP can not be embedded into html.
Q.2
What is a web service?
  • A web service is an application or a fraction of it which allows other applications to use it and is not tightly coupled to another application.
  • A web service is a software “structure” wherein all the parts of the system are interwoven and are not separate, reusable parts.
Q.3
What is the Output?
  • Hello World #Hello World
  • Hello World
  • #Hello World
  • Error
Q.4
What is a integer?
  • It's a Whole Number
  • It's a Decimal Number
  • It's a True or False Declaration
  • It's a String of Text
Q.5
What is a PHP?
  • Web Page
  • Scripting Language
  • Computer Language
  • English Language
Q.6
What will be the output of the following php code?
  • 3
  • 1+2
  • 1.+.2
  • Error
Q.7
Father of PHP?
  • Larry Wall
  • Rasmus Lerdorf
  • James Gosling
  • Guido Van Rossum
Q.8
What does PHP stand for?
  • PrivateHome Page
  • HypertextPreprocessor
  • PretextHypertext Processor
  • PreprocessorHome Page
Q.9
Which two predefined variables are used to retrieve information from forms?
  • $GET & $SET
  • $_GET & $_SET
  • $__GET & $__SET
  • GET & SET
Q.10
Which one of these variables has an illegal name?
  • $my-Var
  • $myVar
  • $my_Var
Q.11
Which one of the following function is capable of reading a file into an array?
  • file()
  • arrfile()
  • arr_file()
  • file_arr()
Q.12
All variables in PHP start with which symbol?
  • !
  • $
  • #
  • @
Q.13
Which one of the following regular expression matches any string containing zero or one p?
  • p+
  • p*
  • p?
  • p#
Q.14
Which function is used to remove all HTML tags from a string passed to a form?
  • remove_tags()
  • strip_tags()
  • tags_strip()
  • tags_remove()
Q.15
Identify the invalid identifier ?
  • my-function
  • size
  • -some word
  • This&that
Q.16
What is the difference between GET and POST method?
  • GET displays the form values entered in the URL of the address bar where as POST does not.
  • POST displays the form values entered in the URL of the address bar where as GET does not.
  • There is no difference
Q.17
What is the correct way to create a function in PHP?
  • new_function myFunction()
  • function myFunction()
  • create myFunction()
  • $myFunction()
Q.18
A function name cannot start with a ____
  • alphabet
  • underscore
  • number
  • Both C and B
Q.19
Which function can be used to move the pointer to the previous array position?
  • prev()
  • previous()
  • last()
  • before()
Q.20
How do you create a cookie in PHP?
  • setcookie()
  • makecookie()
  • createcookie()
0 h : 0 m : 1 s