Php Interview QUESTIONS AND ANSWERS :: part6 : 11 to 15
Following PHP Multiple choice objective type questions and answers will help you in many software compnaies written examinations and inteview 2015 :
11.In the PHP code given below, what is/are the properties? |
echo “This is an example”; |
public $name; |
class Example |
function sample() |
12.Which one of the following is the right way to invoke a method? |
$object->methodName(); |
object->methodName(); |
object::methodName(); |
$object::methodName(); |
13.Which of the following statements is/are true about Constructors in PHP? i) PHP 4 introduced class constructors. ii) Constructors can accept parameters. iii) Constructors can call class methods or other functions. iv) Class constructors can call on other constructors. |
ii) and iii) |
All of the mentioned |
None of the mentioned |
ii), iii) and iv) |
14.Which of the following method scopes is/are not supported by PHP? i) private ii) final iii) static iv) abstract |
Only ii) |
Only iv) |
ii) and iv) |
None of the mentioned |
More Php Interview QUESTIONS AND ANSWERS available in next pages
-
Health is the greatest gift, contentment is the greatest wealth -Buddha
- TNTET 2021 - Practice
- SSC CGL 2021 - Practice
- TNPSC Group 2A 2021 - Practice
- IIT JEE
- IIT JEE Q&A
- TNPSC Answer Keys
- TNPSC Group 2 Syllabus
- TNPSC Q&A
- Online Tests - TNPSC
- Online Tests - GK
- IBPS 2020-2021
- Online Tests - Bank
- Online Tests - RRB NTPC
- Online Tests - UGC NET
- Online Tests - TANCET
- Online Aptitude Test
- Engineering
- Programming
- Basic Science
- Quiz
- Plus Two Question Papers
- SSLC Question Bank
- Aptitude Tests
- Logical Reasoning
- General Knowledge-Hindi
- Indian History MCQ
- Indian Geography MCQ
- Indian Civics MCQ
- Indian Economics MCQ
- CTET Biology MCQ
- CTET Chemistry MCQ
- CTET Physics Solved MCQ
- Arithmetic Tests
- Press Release
- FAQ
- Coaching Centres
- TNPSC Group 1 Syllabus
- TNPSC Group IV Syllabus
- TRB 2017 in English PDF
- TRB 2017 in Tamil PDF
- TET
- TNTET