Class 12 Computer Science · Chapter 4 · Test 4
Python Databases and CRUD
38 MCQs
38 questions · 30 min · 38 marks
Want to try first? Take the free Computer Science test: Networks Basics
Sample questions
The first 5 of 38. Try each one, then tap to see the answer.
Question 1
Connecting Python to a database allows programs to:
- ADesign windows
- BWork with stored data
- CCreate widgets
- DStyle layouts
Show answerHide answer
Answer: B
A connection lets Python programs work with stored data.
Question 2
Before performing any data operation Python needs:
- AA frame
- BA label
- CA grid
- DA database connection
Show answerHide answer
Answer: D
A database connection is required before any data operation.
Question 3
The sqlite3 library is:
- AInstalled from a paid store
- BPart of Tkinter
- CBuilt into Python
- DUsed only on Windows
Show answerHide answer
Answer: C
sqlite3 is built into Python.
Question 4
sqlite3 is mainly used for:
- ASmall databases
- BVery large enterprise databases
- CDrawing GUIs
- DNetwork routing
Show answerHide answer
Answer: A
SQLite suits small databases.
Question 5
sqlite3 stores a database in:
- AMany folders
- BThe cloud
- CA network socket
- DA single file on the system
Show answerHide answer
Answer: D
SQLite keeps the database in a single file.
More tests in Development of Graphical User Interface (GUI)
Practise with a free account
Save your scores, see which chapters need work, and keep a notebook of every question you got wrong.