Layouts and Events

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

    Layout management decides the:

    • AProgramming language used
    • BPosition and size of each widget
    • CNumber of events
    • DDatabase connection
    Show answer

    Answer: B

    Layout management decides where each widget is placed and how big it is.

  2. Question 2

    The three layout methods of Tkinter are:

    • Aframe() and label() and entry()
    • Btitle() and mainloop() and geometry()
    • Cget() and set() and insert()
    • Dpack() and grid() and place()
    Show answer

    Answer: D

    Tkinter organises widgets using pack() and grid() and place().

  3. Question 3

    The methods used to organize widgets in Tkinter include:

    • Agrid()
    • Bpack()
    • Cplace()
    • DAll of the above
    Show answer

    Answer: D

    All three methods are layout managers.

  4. Question 4

    The pack() method places widgets in:

    • AA simple vertical or horizontal order
    • BRows and columns
    • CExact coordinates
    • DRandom order
    Show answer

    Answer: A

    pack() stacks widgets in a simple vertical or horizontal order.

  5. Question 5

    The pack() method in Tkinter is used to:

    • AAlign widgets vertically or horizontally
    • BOrganize widgets in rows and columns
    • CSet widget sizes manually
    • DCreate pop-up windows
    Show answer

    Answer: A

    pack() aligns widgets vertically or horizontally.

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