Tkinter Basics

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

    The main purpose of a GUI in Python programming is to:

    • ACreate a user-friendly interface for interacting with software
    • BManage files in Python
    • CHandle network operations
    • DStore and retrieve data from databases
    Show answer

    Answer: A

    A GUI lets users interact with software through visual elements.

  2. Question 2

    Python's built-in GUI toolkit is:

    • AwxPython
    • BTkinter
    • CpyQt
    • DKivy
    Show answer

    Answer: B

    Tkinter is the standard GUI toolkit that comes pre-installed with Python.

  3. Question 3

    Which of these belongs to a command-line interface rather than a GUI?

    • AButtons
    • BMenus
    • CTyped commands
    • DText boxes
    Show answer

    Answer: C

    Command-line interfaces rely on typed commands while GUIs use visual elements.

  4. Question 4

    GUIs are especially valuable to:

    • ANon-technical users
    • BCompiler writers
    • CNetwork engineers
    • DDatabase designers
    Show answer

    Answer: A

    GUIs are easier to understand and operate especially for non-technical users.

  5. Question 5

    GUIs improve usability by:

    • AHiding all output
    • BReducing screen size
    • CRemoving buttons
    • DProviding visual feedback
    Show answer

    Answer: D

    GUIs give visual feedback and reduce the need to remember complex commands.

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