PYTHON  DATABASE CONNECTIVITY

PYTHON DATABASE CONNECTIVITY

12th Grade

10 Qs

quiz-placeholder

Similar activities

Introduction to MySQL

Introduction to MySQL

11th - 12th Grade

15 Qs

Linux-2 Quiz 2 -- LAMP

Linux-2 Quiz 2 -- LAMP

1st - 12th Grade

15 Qs

BASIS DATA XII (PSAS II2023)

BASIS DATA XII (PSAS II2023)

12th Grade

15 Qs

MySQL y cmd de Windows 2

MySQL y cmd de Windows 2

12th Grade

10 Qs

12th comp app lesson 9

12th comp app lesson 9

12th Grade

8 Qs

CA - Chapter 3 Book back

CA - Chapter 3 Book back

12th Grade

10 Qs

SQL

SQL

10th - 12th Grade

11 Qs

Mastering SQL with Python and MySQL - B

Mastering SQL with Python and MySQL - B

12th Grade

15 Qs

PYTHON  DATABASE CONNECTIVITY

PYTHON DATABASE CONNECTIVITY

Assessment

Quiz

Computers

12th Grade

Medium

Created by

PRASAD N

Used 8+ times

FREE Resource

10 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Mandatory arguments required to connect any database from pyton

username, password, hostname, port , database name

user name, password

user name, password, host name

user name, password, host name, database name

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which method of cursor class is used to fetch records from the table

cur.fetchall()

cur.fetchone()

cur.fetchmnay()

cur.fetch()

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the full form of SQL

Structured Quick Language

Structured Query Language

Structured Query Linking

Structured Query List

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

In sql, which command is used to check host name?

select current_user;

select currentuser();

select curret_user();

select current_user()

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

SQL command for list databases.

show all;

show all databases;

show databases;

show database;

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

select the correct statement in python to check SQL connectivity status.

if con_is.connected():

if con.is_connected():

if con_isconnected()

if con.is_connected

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

select the correct statement to install sql connector library

pip install mysql

pip install mysql.connect

pip install mysql-connector

pip install mysql-connect-python

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?