php mcq questions with answers


                                
Is it possible to pass methods as arguments for other methods without modification.
A. True
B. False
                                
What is the proper header for a class that intends to use an interface.
A. class MyClass IFace
B. class MyClass ; IFace
C. class MyClass : IFace
D. class MyCalss {IFace}
E. class MyCalss(IFace)
                                
In order for a class to use an interface, it must
A. inherit the properties of the interface
B. contain the same methods as the interface
C. create an interface objects
D. a and b
E. all of the above
                                
Every class directly or indirectly extends the______class.
A. System
B. Object
C. Drawing
D. Console