New ! Computer Applications MCQ Practise Tests



12th Standard English Medium Computer Applications Subject Connecting PHP and MYSQL Book Back 1 Mark Questions with Solution Part - I

12th Standard

    Reg.No. :
  •  
  •  
  •  
  •  
  •  
  •  

Computer Applications

Time : 01:00:00 Hrs
Total Marks : 5

    1 Marks

    5 x 1 = 5
  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

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

Reviews & Comments about 12th Standard English Medium Computer Applications Subject Connecting PHP and MYSQL Book Back 1 Mark Questions with Solution Part - I

Write your Comment