Top 150+ Solved Advanced Web Technologies MCQ Questions Answer
Q. __________ function is used to change the default database for the connection.
a. fetch_array()
b. Cookie()
c. S_Array()
d. mysqli_select_db()
Q. An inherited class is defined by using the ______ keyword.
a. extends
b. constructor
c. object
d. none of these
Q. Abstract classes and methods are when the parent class has a named method,but need its child class(es) to fill out the tasks.
a. true
b. false
c. both a and b
d. none of these
Q. An abstract class is a class that contains at least one abstract method. Anabstract method is a method that is declared, but not implemented in the code.
a. true
b. false
c. both a and b
d. none of these
Q. When inheriting from an abstract class, the child class method must be definedwith the same name, and the same or a less restricted access modifier.
a. true
b. false
c. both a and b
d. none of these
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
Q. Interfaces are declared with the ________ keyword:
a. interface
b. abstract class
c. implements
d. None of these
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. Get and ________ are two HTTP methods that a client use to pass from dataserver.
a. get
b. Post
c. Server
d. Client
Q. ______ tag is used for multiple selections.
a. select tag
b. text tag
c. list tag
d. none of these