Top 150+ Solved Advanced Web Technologies MCQ Questions Answer

From 1 to 15 of 185

Q. Which method scope prevents a method from being overridden by a subclass?

a. Abstract

b. Protected

c. Final

d. Static

  • c. Final

Q. PHP recognize constructors by the name.

a. class name()

b. _construct()

c. function _construct()

d. function __construct()

  • d. function __construct()

Q. Which version of PHP introduced the instance of keyword?

a. PHP 4

b. PHP 5

c. PHP 5.3

d. PHP 6

  • b. PHP 5

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()

  • c. class_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()

  • c. is_a()

Q. Which one of the following keyword is used to inherit our subclass into a superclass?

a. . extends

b. . implements

c. . inherit

d. . include

  • a. . extends

Q. Which keyword is used to refer to properties or methods within the class itself?

a. . private

b. public

c. protected

d. . $this

  • d. . $this

Q. _________ is a blue print of any object in OOP.

a. class

b. object

c. Construct

d. Serializing

  • a. class

Q. An _____ is an instance or occurrence of our class.....

a. class

b. object

c. Construct

d. Serializing

  • b. object

Q. The _____ method starts with two underscores (__).

a. class

b. object

c. Construct

d. Serializing

  • c. Construct

Q. _______an object means converting it to a byte stream representation that can bestored into file.

a. class

b. object

c. Construct

d. Serializing

  • d. Serializing

Q. A class property used by another class is called ______.

a. Abstract class

b. Interface

c. Encapsulation

d. inheritance.

  • d. inheritance.

Q. _________is used to support multiple inheritance

a. Abstract class

b. Interface

c. Encapsulation

d. inheritance.

  • b. Interface
Subscribe Now

Get All Updates & News