Python Databases and CRUD

38 MCQs

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.

  1. Question 1

    Connecting Python to a database allows programs to:

    • ADesign windows
    • BWork with stored data
    • CCreate widgets
    • DStyle layouts
    Show answer

    Answer: B

    A connection lets Python programs work with stored data.

  2. Question 2

    Before performing any data operation Python needs:

    • AA frame
    • BA label
    • CA grid
    • DA database connection
    Show answer

    Answer: D

    A database connection is required before any data operation.

  3. Question 3

    The sqlite3 library is:

    • AInstalled from a paid store
    • BPart of Tkinter
    • CBuilt into Python
    • DUsed only on Windows
    Show answer

    Answer: C

    sqlite3 is built into Python.

  4. Question 4

    sqlite3 is mainly used for:

    • ASmall databases
    • BVery large enterprise databases
    • CDrawing GUIs
    • DNetwork routing
    Show answer

    Answer: A

    SQLite suits small databases.

  5. Question 5

    sqlite3 stores a database in:

    • AMany folders
    • BThe cloud
    • CA network socket
    • DA single file on the system
    Show 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.

Create free account