New ! Computer Applications MCQ Practise Tests



Connecting PHP and MYSQL One Mark Questions

12th Standard

    Reg.No. :
  •  
  •  
  •  
  •  
  •  
  •  

Computer Applications

Time : 00:30:00 Hrs
Total Marks : 10
    5 x 1 = 5
  1. Which one of the following statements instantiates the mysqli class?

    (a)

    mysqli = new mysqli()

    (b)

    \($\)mysqli = new mysqli()

    (c)

    \($\)mysqli - > new.mysqli()

    (d)

    mysqli - > new.mysqli()

  2. which one is correct way, we can retrieve the data in the result set of MySQL using PHP?

    (a)

    mysql_fetch_row.

    (b)

    mysql_fetch_array

    (c)

    mysql_fetch_object

    (d)

    All the above

  3. How Can we Create a Database Using PHP and MySQL?

    (a)

    mysqli_create_db(“Database Name”)

    (b)

    mysqli_create_db(“Data”)

    (c)

    create_db(“Database Name”)

    (d)

    create_db(“Data”)

  4. _______IS a function, helps to execute the SQL query statements in PHP scripting language

    (a)

    mysqli_closet( )

    (b)

    mysqlLconnect_error( )

    (c)

    mysqli_query( )

    (d)

    mysqli_connect( )

  5. _______Function is used to close an existing opened database connection between PHP scripting and MySQL Database Server.

    (a)

    mysqli_close( )

    (b)

    mysqli_connect error( )

    (c)

    mysqli_query( )

    (d)

    mysqli_connect( )

  6. 5 x 1 = 5
  7. RDMS stands_________

    A PHP Error was encountered

    Severity: Warning

    Message: A non-numeric value encountered

    Filename: material/details.php

    Line Number: 1002

    ()

    Relational Database Management System

  8. SQL stands __________

    A PHP Error was encountered

    Severity: Warning

    Message: A non-numeric value encountered

    Filename: material/details.php

    Line Number: 1002

    ()

    Structure query language

  9. MySQLi extension was introduced version__________

    A PHP Error was encountered

    Severity: Warning

    Message: A non-numeric value encountered

    Filename: material/details.php

    Line Number: 1002

    ()

    5.0.0

  10. ______is extension in PHP scripting language which gives access to the MYSQL database.

    A PHP Error was encountered

    Severity: Warning

    Message: A non-numeric value encountered

    Filename: material/details.php

    Line Number: 1002

    ()

    MySQLi

  11. Connect function requires ___________ number of parameters to connect to database server.

    A PHP Error was encountered

    Severity: Warning

    Message: A non-numeric value encountered

    Filename: material/details.php

    Line Number: 1002

    ()

    four

*****************************************

Reviews & Comments about 12th Standard Computer Applications Unit 8 Connecting PHP and MYSQL One Mark Question with Answer Key

Write your Comment