Search Header Logo

PYTHON DATABASE CONNECTIVITY

Authored by PRASAD N

Computers

12th Grade

Used 8+ times

PYTHON  DATABASE CONNECTIVITY
AI

AI Actions

Add similar questions

Adjust reading levels

Convert to real-world scenario

Translate activity

More...

    Content View

    Student View

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

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?