PYTHON  DATABASE CONNECTIVITY

PYTHON DATABASE CONNECTIVITY

12th Grade

10 Qs

quiz-placeholder

Similar activities

Mysql Connectivity

Mysql Connectivity

12th Grade

10 Qs

Database MySQL - Command Prompt

Database MySQL - Command Prompt

12th Grade

10 Qs

KONEKSI BASIS DATA

KONEKSI BASIS DATA

12th Grade

10 Qs

SQL

SQL

11th - 12th Grade

12 Qs

Desarrollo de una Aplicación Web Básica

Desarrollo de una Aplicación Web Básica

12th Grade

12 Qs

RDBMS & SQL QUERIES

RDBMS & SQL QUERIES

12th Grade

15 Qs

MySQL

MySQL

12th Grade

10 Qs

MySQL revision tour

MySQL revision tour

11th - 12th Grade

10 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?