Top 150+ Solved Advanced Web Technologies MCQ Questions Answer
Q. The ability to hide the details of implementation is known as _____.
a. Abstract class
b. Interface
c. Encapsulation
d. inheritance.
Q. An _______ is one that cannot be instantiated, only inherited
a. Abstract class
b. Interface
c. Encapsulation
d. inheritance.
Q. Constant name are proceeded by _____ like a normal variable declaration.
a. Abstract class
b. dollar sign($)
c. Encapsulation
d. inheritance.
Q. _______ is available when a method is called from within an object context
a. Abstract class
b. dollar sign($)
c. $this
d. inheritance.
Q. in PHP, An _____is a special variable, which can hold more than one value ata time.
a. array
b. structure
c. csss
d. none of these
Q. In PHP, there are three types of arrays:
a. Indexed arrays -
b. Associative arrays -
c. Multidimensional arrays -
d. all of the above
Q. in PHP ,The____ function is used to return the length (the number ofelements) of an array:
a. count
b. min
c. abs
d. sqrt()
Q. The index can be assigned automatically (index always starts at 0), likethis: $cars = array("Volvo", "BMW", "Toyota");
a. true
b. false
c. both a and b
d. none of these
Q. The _____ functions can be used to find the lowest or highest value in a list ofarguments:
a. count & num
b. min & max
c. abs & count
d. sqrt() & round
Q. The _____ function returns the absolute (positive) value of a number:
a. count
b. min
c. abs
d. sqrt()
Q. The _____function rounds a floating-point number to its nearest integer:
a. round
b. min
c. abs
d. sqrt()
Q. In PHP7, you can create an Array constant using the ____ function.
a. define()
b. min()
c. abs()
d. sqrt()