Top 50+ Solved Web Techniques MCQ Questions Answer
Q. Interface are similar to abstract classes. The difference between interfaces and abstract classes are Interfaces cannot have properties, while abstract classes can have.
a. interface
b. abstract class
c. implements
d. None of these
Q. To implement an interface, a class must use the______ keyword.
a. interface
b. abstract class
c. implements
d. None of these
Q. In PHP, there are three types of arrays one is not type of array in phpwhich one:
a. Indexed arrays -
b. Associative arrays -
c. Multidimensional arrays -
d. polygamy array
Q. An inherited class is defined by using the extends keyword.
a. true
b. false
c. both a and b
d. none of these
Q. Classes and objects are the two main aspects of __________________
a. object oriented programming
b. constructor and destructor
c. object and array
d. none of these
Q. A constructor allows you to initialize an object's properties upon creation of theobject.
a. true
b. false
c. both a and b
d. none of these
Q. If you create a _______function, PHP will automatically call this function whenyou create an object from a class.
a. __construct()
b. ___destruct()
c. both a and b
d. none of these
Q. A destructor is called when the object is destructed or the script is stopped orexited.
a. true
b. false
c. both a and b
d. none of these
Q. A session is a way to store information (in variables) to be usedacross multiple pages.
a. true
b. false
c. both a and b
d. none of these