1. What does GUI stand for in programming? A. General User Interface B. Graphic User Interaction C. Graphical User Interface D. General User Interaction Answer & Solution Discuss in Board Save for Later Answer & Solution Answer: Option C Solution: GUI stands for Graphical User Interface, which provides visual elements for user interaction.
2. Which Python library is commonly used for creating GUI applications? A. PyUI B. UIlib C. Tkinter D. PyGUI Answer & Solution Discuss in Board Save for Later Answer & Solution Answer: Option C Solution: Tkinter is a widely used Python library for creating GUI applications.
3. What is the purpose of an event in GUI programming? A. Creating graphical elements B. Handling user interactions C. Designing user interfaces D. Displaying images Answer & Solution Discuss in Board Save for Later Answer & Solution Answer: Option B Solution: Events are used to handle user interactions like clicks and input in GUI applications.
4. What is the main window in a Tkinter application called? A. WindowFrame B. MainFrame C. RootWindow D. BaseWindow Answer & Solution Discuss in Board Save for Later Answer & Solution Answer: Option C Solution: The main window in Tkinter is referred to as the RootWindow.
5. How do you create a label widget in Tkinter? A. Label() B. LabelWidget() C. CreateLabel() D. WidgetLabel() Answer & Solution Discuss in Board Save for Later Answer & Solution Answer: Option A Solution: The Label() function is used to create a label widget in Tkinter.
6. Which widget is commonly used for user input in Tkinter? A. Text B. Input C. Entry D. UserInput Answer & Solution Discuss in Board Save for Later Answer & Solution Answer: Option C Solution: The Entry widget is commonly used for user input in Tkinter applications.
7. How do you create a button widget in Tkinter? A. Button() B. CreateButton() C. ButtonWidget() D. MakeButton() Answer & Solution Discuss in Board Save for Later Answer & Solution Answer: Option A Solution: The Button() function is used to create a button widget in Tkinter.
8. What is the purpose of the pack() method in Tkinter? A. To close the window B. To arrange widgets vertically C. To apply styles to widgets D. To handle user input Answer & Solution Discuss in Board Save for Later Answer & Solution Answer: Option B Solution: The pack() method arranges widgets vertically within their container.
9. How do you bind an event to a widget in Tkinter? A. bind(event, function) B. event.bind(widget, function) C. widget.bind(event, function) D. widget(event, function) Answer & Solution Discuss in Board Save for Later Answer & Solution Answer: Option C Solution: The widget.bind(event, function) syntax is used to bind an event to a widget in Tkinter.
10. Which geometry manager is used to organize widgets in a table-like structure in Tkinter? A. Grid B. Pack C. Place D. Table Answer & Solution Discuss in Board Save for Later Answer & Solution Answer: Option A Solution: The Grid geometry manager is used to organize widgets in a table-like structure in Tkinter.