Top 50+ Solved DataBases MCQ Questions Answer
Q. In PHP $Icon=mySQL_connect("localhost","root","") is used to ____ to the database .
a. create
b. close
c. connect
d. none of these
Q. mysql_close() is use to ________database(wamp) in php .
a. create
b. close
c. connect
d. none of these
Q. die(mySQL_error()) is used to show _______ message .
a. error
b. Connect
c. create
d. none of these
Q. The long form of SQL is __________.
a. Structural query language
b. Structural question language
c. System Query Language
d. None of these
Q. the switch statement is used to perform different actions based on differentconditions
a. true
b. false
c. both a and b
d. none of these
Q. PHP recognize constructors by the name.
a. ) class name()
b. _construct()
c. 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
Q. Which one of the following functions is used to determine whether a class exists?
a. exist()
b. exist_class()
c. class_exist()
d. txist()
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. HTTP stands for ___________.
a. Hyper text transfer protocol
b. hyper text mark protcol
c. File transfer protocol
d. none of these