💻
Class 12 Computer Science — Chapter 6: Interface Python with SQL
6 practice questions · 2 Easy · 2 Medium · 2 Hard
Free NCERT-aligned multiple-choice practice for Class 12 Computer Science, Chapter 6 (Interface Python with SQL). Practise timed Easy, Medium and Hard quizzes with instant explanations — built for CBSE Board exams, JEE Main and NEET UG. Here are a few sample questions; sign in free to practise all 6.
Sample questions
Q1Easy
Common Python module for MySQL:
A.mysql.connector✓ correct
B.os only
C.http
D.json
Why
Or pymysql, sqlite3 for SQLite.
Q2Medium
cursor.fetchall() returns:
A.All rows of result as a list✓ correct
B.Only first row
C.Column names
D.Query string
Why
fetchone, fetchmany, fetchall.
Q3Hard
Parameterised queries help prevent:
A.SQL injection attacks✓ correct
B.Slow disks
C.Memory leaks
D.Cosmic rays
Why
Use placeholders, not string concat.
Practise all 6 questions free
Timed quizzes, instant scoring, streaks and XP. Sign in with Google — no card needed.
Start this chapter free →