Top 150+ Solved Advanced Web Technologies MCQ Questions Answer

From 76 to 90 of 185

Q. If you create a _______function, PHP will automatically call this function whenyou create an object from a class.

a. __construct()

b. ___destruct()

c. both a and b

d. none of these

  • a. __construct()

Q. A destructor is called when the object is destructed or the script is stopped orexited.

a. true

b. false

c. both a and b

d. none of these

  • a. true

Q. A session is a way to store information (in variables) to be usedacross multiple pages.

a. true

b. false

c. both a and b

d. none of these

  • a. true

Q. Which one of the following databases has PHP supported almost since thebeginning?

a. Oracle Database

b. SQL

c. SQL+

d. MySQL

  • d. MySQL

Q. Which one of the following statements is used to create a table?

a. CREATE TABLE table_name (column_namecolumn_type);

b. CREATE table_name (column_typecolumn_name);

c. . CREATE table_name (column_namecolumn_type);

d. . CREATE TABLE table_name (column_typecolumn_name);

  • a. CREATE TABLE table_name (column_namecolumn_type);

Q. Which method returns the error code generated from the execution of the lastMySQL function?

a. errno()

b. . errnumber()

c. . errorno()

d. errornumber()

  • a. errno()

Q. If there is no error, then what will the error() method return?

a. . TRUE

b. . FALSE

c. . Empty String

d. . non of these

  • c. . Empty String

Q. Which one of the following statements should be used to include a file?

a. . #include ‘filename’;

b. include ‘filename’;

c. include <filename>

d. none of these

  • b. include ‘filename’;

Q. Which one of the following methods recuperates any memory consumed by aresult set?

a. destroy()

b. remover()

c. alloc()

d. free()

  • d. free()

Q. Which one of the following methods can be used to diagnose and displayinformation about a MySQL connection error?

a. . connect_errno()

b. connect_error()

c. mysqli_connect_errno()

d. . mysqli_connect_error()

  • c. mysqli_connect_errno()

Q. Which one of the Following methods is responsible for sending the query toDatabase

a. query()

b. send_query( )

c. sendquery()

d. query_send()

  • a. query()

Q. Which is the comment symbol in mysql?

a. &&

b. /*….*/

c. #

d. %

Q. A ________ consists of one or more tables.

a. database

b. command

c. Query

d. none of these

  • a. database
Subscribe Now

Get All Updates & News