SQL & Python Connectivity

SQL & Python Connectivity

12th Grade

15 Qs

quiz-placeholder

Similar activities

PYTHON PROGRAMMING

PYTHON PROGRAMMING

9th - 12th Grade

20 Qs

L3 BTEC Unit 2 - SQL

L3 BTEC Unit 2 - SQL

11th - 12th Grade

10 Qs

SQL Python Connectivity #1

SQL Python Connectivity #1

12th Grade

12 Qs

 CRUD with DB Browser and SQLite

CRUD with DB Browser and SQLite

12th Grade - University

15 Qs

Examen de Programación III

Examen de Programación III

12th Grade

20 Qs

030_SQL Injection – CompTIA Security+ SY0-701 – 2.3

030_SQL Injection – CompTIA Security+ SY0-701 – 2.3

9th - 12th Grade

20 Qs

SQL Quiz

SQL Quiz

9th - 12th Grade

15 Qs

SQL in FinTech Quiz

SQL in FinTech Quiz

12th Grade

20 Qs

SQL & Python Connectivity

SQL & Python Connectivity

Assessment

Quiz

Computers

12th Grade

Medium

Created by

anshu sharma

Used 33+ 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?