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
PHP QUESTIONS :
A. __autoload
B. __clone
C. __sleep
D. __toint
A. create_cookie()
B. set_cookie()
C. setcookie()
D.None of the above
A. 4.5678
B. 4.0
C. 7e4
d. All of the above
A. True
B. False
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
A. Public
B. Static
C.Final
D.Private
A. session_id()
B. get_session_id;
C. $_SESSION['CURRENT_ID'];
D. $_SESSION['ID']
B. By declaring the property as private
C. It cannot be done
D. By writing a property overloading method
A. my-function
B. size
C. -some word
D. this&that
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-2
PHP Multiple choice questions and answers-3
PHP Multiple choice questions-4
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
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
C.Final
D.Private
Que. 7 Which PHP function or variable will return the value of current session id?
A. session_id()
B. get_session_id;
C. $_SESSION['CURRENT_ID'];
D. $_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
MORE PHP INTERVIEW QUESTIONS :
PHP Multiple choice questions and answers-1PHP Multiple choice questions and answers-2
PHP Multiple choice questions and answers-3
PHP Multiple choice questions-4
The article shared was awesome. Love to read this kind of article. Thanks for sharing.
ReplyDeletephp web development company in Indore
These question are about the important elements of web development. Thanks for sharing it to everyone.
ReplyDeleteWeb development company in Indore
Nice InformationRuby on Rails Online Training
ReplyDelete