Search Header Logo

SQL & Python Connectivity

Authored by anshu sharma

Computers

12th Grade

Used 35+ times

SQL & Python Connectivity
AI

AI Actions

Add similar questions

Adjust reading levels

Convert to real-world scenario

Translate activity

More...

    Content View

    Student View

15 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Full form of API

Application Process Interchange

Application Programs Interchange

Application Process Interface

Application Programming Interface

2.

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

3.

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")

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Correct the error if any

mycursor = mydb.cursor()


mycursor.execute("CREATE TABLE customers (name VARCHAR(25), 'address' VARCHAR(55))")

mycursor.execute('CREATE TABLE customers (name VARCHAR(25), 'address' VARCHAR(55))')

mycursor.execute("CREATE TABLE customers (name VARCHAR(25), address VARCHAR(55))')

mycursor.execute("CREATE TABLE customers (name VARCHAR(25), address VARCHAR(55));")

mycursor.execute("CREATE TABLE customers (name VARCHAR(25), address VARCHAR55))")

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

After inserting the data we need to issue

rollback

set autocommit

mycur.commit(1)

mycur.commit()

6.

FILL IN THE BLANK QUESTION

30 sec • 1 pt

To close a connection (CON) we Use

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which command is used for counting the number of rows in a database?

row

rowcount

count

row_count

Access all questions and much more by creating a free account

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?