SQL & Python Connectivity

SQL & Python Connectivity

12th Grade

15 Qs

quiz-placeholder

Similar activities

ALGORITMA

ALGORITMA

8th Grade - University

17 Qs

2da Prueba_5to Aplicaciones_2023-2024

2da Prueba_5to Aplicaciones_2023-2024

12th Grade

10 Qs

Learning SQL

Learning SQL

11th - 12th Grade

15 Qs

Hardware: Edexcel GCSE Computer Science

Hardware: Edexcel GCSE Computer Science

9th - 12th Grade

20 Qs

Understanding MySQL and SQL Concepts

Understanding MySQL and SQL Concepts

12th Grade

10 Qs

MySQL Python Connectivity

MySQL Python Connectivity

12th Grade - University

10 Qs

SQL - preverjanje znanja - 2. pisna naloga - NUB - 4. letnik

SQL - preverjanje znanja - 2. pisna naloga - NUB - 4. letnik

12th Grade - University

10 Qs

 Executing SQL Commands With Python

Executing SQL Commands With Python

12th Grade - University

10 Qs

SQL & Python Connectivity

SQL & Python Connectivity

Assessment

Quiz

Computers

12th Grade

Medium

Created by

anshu sharma

Used 34+ times

FREE Resource

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

Create a free account and access millions of resources

Create resources
Host any resource
Get auto-graded reports
or continue with
Microsoft
Apple
Others
By signing up, you agree to our Terms of Service & Privacy Policy
Already have an account?