CBSE CS and IP

CBSE Class 11 & 12 Computer Science and Informatics Practices Python Materials, Video Lecture

Interface of Python with SQL Database (1 Mark Questions)


  1. Which function is used to check the successful connection:
    • connect()
    • execute()
    • is_connect()
    • fetchall()
  2. Mention one difference between fetchone() and fetchall() method.
  3. is_connected() is the MYSQL function to :
    • establish a connection to a mysql database from python.
    • verify whether the python application is connected to mysql database.
    • traverse through records in mysql database.
    • None of the above

No comments:

Post a Comment