PHP OOP Mcqs
Our collections of Multiple choice questions and answers focuses on study of PHP OOP. These questions are chosen from a collection of most authoritative and best reference books on PHP Language. Our aim is to prepare an individual for competitive exams like NTS, GAT, ECAT, University and College entrance exams and various tests and job interviews. One should practice our Mcqs to assimilate PHP OOP Topics comprehensively.
PHP Programming Mcqs
- Basics of PHP Mcqs
- PHP Arrays and Functions Mcqs
- PHP Constants and Operators Mcqs
- PHP Controls Structures Mcqs
- PHP Error and Exception Handling Mcqs
- PHP Filesystem Mcqs
- PHP Functions Mcqs
- PHP Objects Tools and Variables Mcqs
- PHP OOP Mcqs
- PHP Session Handling Mcqs
- Strings and Regular Expressions Mcqs
Computer MCQS
Sciences MCQS
2.
Functionality of Destructors are offered in
PHP4
PHP4.2
PHP5
PHP6
3.
For changing string again into original value which function is used
Overloading ( )
Overriding ( )
Serialize ( )
Unserialize ( )
Answer & Solution
No Solution for this Answer..! Report or Discus this Question
4.
__sleep ( ) function is called when you
Serialize an object
Unserialize an object
Share an object
Choose an object
Answer & Solution
No Solution for this Answer..! Report or Discus this Question
5.
An individual instance in OOP is called as
Class
Function
Object
Constructor
6.
Extends clause is used for
Inheriting a class from another class
Function extension
Creating constructors
None of them
Answer & Solution
No Solution for this Answer..! Report or Discus this Question
7.
Functionality of Constructors are offered in
PHP1
PHP 3
PHP4
PHP4.2
8.
How many functions are used by PHP that can encode and decode values into string?
1
2
3
4
9.
PHP offers no support for
HTML
JavaScript
Multiple inheritance
All of them
Answer & Solution
No Solution for this Answer..! Report or Discus this Question
10.
An abstract class is one that cannot be instantiated but
Only inherited
Only declared
Only copied
All of them
Answer & Solution
No Solution for this Answer..! Report or Discus this Question
11.
A process that converts a string of bytes in such a way that you can produce original data again, is known as
Synchronization
Specialization
Serialization
Parallelization
Answer & Solution
No Solution for this Answer..! Report or Discus this Question
12.
Get_class ( ) function returns name of class from where
A function belongs to
An object belongs to
A constructor belongs to
All of them
Answer & Solution
No Solution for this Answer..! Report or Discus this Question
13.
Which function returns TRUE if string argument is name of a class?
Get_class ( )
Exist_class ( )
Class_exists
None of them
Answer & Solution
No Solution for this Answer..! Report or Discus this Question
14.
Protected members of a class is accessible to class in which
It is not declared
It is declared
It is moved
None of them
Answer & Solution
No Solution for this Answer..! Report or Discus this Question
15.
Derived class is also known as
Parent class
Subclass
Child class
Both b and c
Answer & Solution
No Solution for this Answer..! Report or Discus this Question