php mcq questions with answers


                                
An instance method
A. Represents the behavior of an object
B. Represents the attribute of an object
C. Represents another class
D. a and b
                                
A Constructor ________.
A. is used to create objects
B. must have the same name as the class it is declared within
C. is a method of a class
D. maybe overloaded
E. b and c
                                
class Test: Form { }
A. Creates the class Test : Form
B. Creates the class Test that inherits the class Form
C. Creates the class form that inherits the class Test
D. a and b
                                
A variable declared inside a method is called a________variable.
A. Static
B. Private
C. Local
D. Serial
E. b and d
                                
Defining two methods with the same name but with different parameters is called.
A. Loading
B. Overloading
C. Multiplexing
D. Duplexing