Top 150+ Solved Advanced Web Technologies MCQ Questions Answer
Q. Which method scope prevents a method from being overridden by a subclass?
a. Abstract
b. Protected
c. Final
d. Static
Q. Which of the following statements are true 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.
a. All of the mentioned
b. None of the mentioned
c. only i
d. only ii
Q. PHP recognize constructors by the name.
a. class name()
b. _construct()
c. function _construct()
d. function __construct()
Q. Which one of the following functions is used to determine whether a class exists?
a. . exist()
b. ) exist_class()
c. class_exist()
d. exist()
Q. Which one of the following functions is used to determine object type?
a. obj_type()
b. type()
c. is_a()
d. is_obj()
Q. Which one of the following keyword is used to inherit our subclass into a superclass?
a. . extends
b. . implements
c. . inherit
d. . include
Q. Which keyword is used to refer to properties or methods within the class itself?
a. . private
b. public
c. protected
d. . $this
Q. Which keyword allows class members (methods and properties) to be used withoutneeding to instantiate a new instance of the class?
a. protected
b. . final
c. static
d. private
Q. An _____ is an instance or occurrence of our class.....
a. class
b. object
c. Construct
d. Serializing
Q. The _____ method starts with two underscores (__).
a. class
b. object
c. Construct
d. Serializing
Q. _______an object means converting it to a byte stream representation that can bestored into file.
a. class
b. object
c. Construct
d. Serializing
Q. A class property used by another class is called ______.
a. Abstract class
b. Interface
c. Encapsulation
d. inheritance.
Q. _________is used to support multiple inheritance
a. Abstract class
b. Interface
c. Encapsulation
d. inheritance.