Class 12 Computer Science · Chapter 4 · Test 2
Layouts and Events
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
Layout management decides the:
- AProgramming language used
- BPosition and size of each widget
- CNumber of events
- DDatabase connection
Show answerHide answer
Answer: B
Layout management decides where each widget is placed and how big it is.
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 answerHide answer
Answer: D
Tkinter organises widgets using pack() and grid() and place().
Question 3
The methods used to organize widgets in Tkinter include:
- Agrid()
- Bpack()
- Cplace()
- DAll of the above
Show answerHide answer
Answer: D
All three methods are layout managers.
Question 4
The pack() method places widgets in:
- AA simple vertical or horizontal order
- BRows and columns
- CExact coordinates
- DRandom order
Show answerHide answer
Answer: A
pack() stacks widgets in a simple vertical or horizontal order.
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 answerHide 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.