Wednesday, 23 July 2014

Interview questions ask by WEB DEVELOPMENT COMPNIES

Posted by M2Software Solutions Solutions Pvt. Ltd | 23:32 Categories: , ,
Hello everyone..!!!

Today is Thursday, on every Thursday i come here with a PHP test for PHP developers..

They are the questions asked by WEB DEVELOPMENT COMPANIES in interview.. to PHP DEVELOPER

web development companies, PHP developer,PHP questions


Que. 1 Which of those is not magic method?

A. __autoload
B. __clone
C. __sleep
D. __toint

Que.2 What function creates a cookie?  

A. create_cookie()
B. set_cookie()
C. setcookie()
D.None of the above

Que. 3  Which of the folowing are valid float values?

A. 4.5678
B. 4.0
C. 7e4
d. All of the above

Que. 4 PHP is an open source software

A. True
B. False

Que. 5 How does the identity operator === compare two values?

A) It converts them to a common compatible data type and then compares the resulting values
B) It returns True only if they are both of the same type and value
C) If the two values are strings, it performs a lexical comparison
D) It bases its comparison on the C strcmp function exclusively
E) It converts both values to strings and compares them

Que. 6 Which keyword cannot be used while defining property?

A. Public
B. Static

Que. 7 Which PHP function or variable will return the value of current session id? 

A. session_id()
B. get_session_id;

Que. 8 In PHP 5, how can you write a class so that some of its properties cannot be accessed from outside its methods? 


A. By declaring the class as private
B. By declaring the property as private
C. It cannot be done
D. By writing a property overloading method


Que. 9  Identify the invalid identifier

A. my-function
B. size
C. -some word
D. this&that

Que. 10 Under what circumstance is it impossible to assign a default value to a parameter while declaring a function?

A. When the parameter is Boolean
B. When the function is being declared as a member of a class
C. When the parameter is being declared as passed by reference
D. When the function contains only one parameter
E. Never


PHP Multiple choice questions and answers-1
PHP Multiple choice questions and answers-2
PHP Multiple choice questions and answers-3
PHP Multiple choice questions-4

Please share your Experience or give any suggestions in comments...

Regards : M2 Software Solutions Pvt. Ltd.


  1. The article shared was awesome. Love to read this kind of article. Thanks for sharing.
    php web development company in Indore

  2. These question are about the important elements of web development. Thanks for sharing it to everyone.

    Web development company in Indore


  • RSS
  • Delicious
  • Digg
  • Facebook
  • Twitter
  • Linkedin
  • Youtube