Top 50+ Solved DataBases MCQ Questions Answer

From 16 to 30 of 33

Q. In PHP $Icon=mySQL_connect("localhost","root","") is used to ____ to the database .

a. create

b. close

c. connect

d. none of these

  • c. connect

Q. mysql_close() is use to ________database(wamp) in php .

a. create

b. close

c. connect

d. none of these

  • b. close

Q. ______ is use to create the web page .

a. Word press

b. Lotus

c. Word star

d. none of these .

  • a. Word press

Q. die(mySQL_error()) is used to show _______ message .

a. error

b. Connect

c. create

d. none of these

  • a. error

Q. The long form of SQL is __________.

a. Structural query language

b. Structural question language

c. System Query Language

d. None of these

  • a. Structural query language

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

  • a. true

Q. PHP recognize constructors by the name.

a. ) class name()

b. _construct()

c. function _construct()

d. function __construct(

  • b. _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. txist()

  • a. exist()

Q. In PHP, we have the following loop types:

a. while loop

b. for loop

c. foreach

d. all the these.

  • d. all the these.

Q. Which one of the following functions is used to determine object type?

a. ) obj_type()

b. type()

c. is_a()

d. is_obj()

  • a. ) obj_type()

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

  • a. . private

Q. HTTP stands for ___________.

a. Hyper text transfer protocol

b. hyper text mark protcol

c. File transfer protocol

d. none of these

  • a. Hyper text transfer protocol
Subscribe Now

Get All Updates & News