Top 150+ Solved Advanced Web Technologies MCQ Questions Answer

From 61 to 75 of 185

Q. __________ function is used to change the default database for the connection.

a. fetch_array()

b. Cookie()

c. S_Array()

d. mysqli_select_db()

  • d. mysqli_select_db()

Q. An inherited class is defined by using the ______ keyword.

a. extends

b. constructor

c. object

d. none of these

  • a. extends

Q. Interfaces allow you to specify what methods a class should implement.

a. true

b. false

c. both a and b

d. none of these

  • a. true

Q. Interfaces are declared with the ________ keyword:

a. interface

b. abstract class

c. implements

d. None of these

  • a. interface

Q. To implement an interface, a class must use the______ keyword.

a. interface

b. abstract class

c. implements

d. None of these

  • c. implements

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

  • 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

  • a. true

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

  • a. object oriented programming

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

  • a. true

Q. ______ tag is used for multiple selections.

a. select tag

b. text tag

c. list tag

d. none of these

  • a. select tag
Subscribe Now

Get All Updates & News