New ! Computer Applications MCQ Practise Tests



Connecting PHP and MYSQL 1 Mark Book Back Question Paper With Answer Key

12th Standard

    Reg.No. :
  •  
  •  
  •  
  •  
  •  
  •  

Computer Applications

Time : 00:15:00 Hrs
Total Marks : 8

     Multiple Choice Question

    8 x 1 = 8
  1. Which is the correct function to execute the SQL queries in PHP ?

    (a)

    mysqli_query(“Connection Object”,”SQL Query”)

    (b)

    query(“Connection Object”,”SQL Query”)

    (c)

    mysql_query(“Connection Object”,”SQL Query”)

    (d)

    mysql_query(“SQL Query”)

  2. Which is the correct function Closing Connection in PHP ?

    (a)

    mysqli_close(“Connection Object”);

    (b)

    close(“Connection Object”);

    (c)

    mysql_close(“Connection Object”);

    (d)

    mysqli_close(“Database Object”);

  3. Which is the correct function to establish Connection in PHP ?

    (a)

    mysqli_connect(“Server Name “,”User Name”,”Password”,”DB Name”);

    (b)

    connect(“Server Name “,”User Name”,”Password”,”DB Name”);

    (c)

    mysql_connect(“Server Name “,”User Name”,”Password”,”DB Name”);

    (d)

    mysqli_connect (“Database Object”);

  4. Which is the not a correct MySQL Function in PHP ?

    (a)

    Mysqli_connect() Function

    (b)

    Mysqli_close() Function

    (c)

    mysqli_select_data() Function

    (d)

    mysqli_affected_rows() Function

  5. How many parameter are required for MYSQLi connect function in PHP ?

    (a)

    2

    (b)

    3

    (c)

    4

    (d)

    5

  6. How many parameter are required for MYSQLi query function in PHP ?

    (a)

    2

    (b)

    3

    (c)

    4

    (d)

    5

  7. Which version of PHP supports MySQLi fuctions ?

    (a)

    Version 2.0

    (b)

    Version 3.0

    (c)

    Version 4.0

    (d)

    Version 5.0

  8. How many parameter are required for MYSQLi Close function in PHP ?

    (a)

    1

    (b)

    2

    (c)

    3

    (d)

    5

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

Reviews & Comments about 12th Standard Computer Applications English Medium - Connecting PHP and MYSQL 1 Mark Book Back Question Paper and Answer Key 2022 - 2023

Write your Comment