MySQL Python Connectivity

MySQL Python Connectivity

Assessment

Quiz

Computers

12th Grade - University

Practice Problem

Hard

Created by

Er PGT

Used 19+ times

FREE Resource

Student preview

quiz-placeholder

13 questions

Show all answers

1.

OPEN ENDED QUESTION

20 sec • 1 pt

Your Name

Evaluate responses using AI:

OFF

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Full form of API

Application Process Interchange

Application Programs Interchange

Application Process Interface

Application Programming Interface

3.

FILL IN THE BLANK QUESTION

20 sec • 1 pt

Python needs a MySQL driver to access the MySQL database. State True/False

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Connector Library to connect MySQL with Python IDLE is

pymysql

mysql.connector

both a and b

none of these

5.

FILL IN THE BLANK QUESTION

30 sec • 1 pt

import mysql.connector as mys

Here mys is called

6.

FILL IN THE BLANK QUESTION

1 min • 1 pt

import mysql.connector as mys


mydb = mys.connect( host="localhost", user="root",

password="root"

)


mycursor = mydb.cursor()


mycursor.execute("CREATE DATABASE KVSEC3")

AFTER EXECUTING THE ABOVE CODE. What will be done

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

To display all the databases of MySQL with the help of cursor mycursor , command will be

mycursor.execute("SHOW DATABASES")

mycursor.execute("DESC DATABASES")

mycursor.executes("SHOW DATABASES")

mycursor.execute("SHOW ALL DATABASES")

Create a free account and access millions of resources

Create resources

Host any resource

Get auto-graded reports

Google

Continue with Google

Email

Continue with Email

Classlink

Continue with Classlink

Clever

Continue with Clever

or continue with

Microsoft

Microsoft

Apple

Apple

Others

Others

Already have an account?