
CC103 - Part 3

Quiz
•
Others
•
University
•
Hard
ALVIN CERTEZA
FREE Resource
40 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What does the following code do? import tkinter as tk root = tk.Tk() label = tk.Label(root, text="Hello, World!") label.pack() root.mainloop()
Displays a label with text inside a window
Opens a text file
Creates a button
Closes a window
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the purpose of mainloop() in Tkinter? root.mainloop()
Exits the application
Creates a widget
Starts the GUI event loop
Destroys the root window
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What does the pack() method do? button.pack()
Destroys a widget
Adds a widget to the grid
Arranges a widget in the window
Changes a widget’s text
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
How do you create a button that closes the window when clicked? import tkinter as tk root = tk.Tk() button = tk.Button(root, text="Exit", command=root.destroy) button.pack() root.mainloop()
Closes the system
Creates an exit dialog
Closes the window
Minimizes the window
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which geometry manager allows specifying row and column?
pack()
grid()
place()
align()
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which of the following correctly adds an entry widget? entry = tk.Entry(root) entry.pack()
Adds a dropdown
Adds a label
Adds a text box for input
Adds a button
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
How can you get the content of an Entry widget? entry.get()
entry.value()
entry.text()
entry.content()
entry.get()
Create a free account and access millions of resources
Similar Resources on Wayground
42 questions
Edafología (Clase 4)

Quiz
•
University
40 questions
ITP QUIZ #1: Chapter One, The Nature of Psychology

Quiz
•
University
36 questions
Unit 7 Chinese

Quiz
•
University
40 questions
ICT4

Quiz
•
University
39 questions
Computer Basics Quiz

Quiz
•
University
35 questions
pre & post tes blok 7 1

Quiz
•
University
36 questions
PROCESOS BIOLOGICOS 2SEMESTRE 3 PARCIAL

Quiz
•
University
36 questions
b2 full

Quiz
•
University
Popular Resources on Wayground
10 questions
Video Games

Quiz
•
6th - 12th Grade
10 questions
Lab Safety Procedures and Guidelines

Interactive video
•
6th - 10th Grade
25 questions
Multiplication Facts

Quiz
•
5th Grade
10 questions
UPDATED FOREST Kindness 9-22

Lesson
•
9th - 12th Grade
22 questions
Adding Integers

Quiz
•
6th Grade
15 questions
Subtracting Integers

Quiz
•
7th Grade
20 questions
US Constitution Quiz

Quiz
•
11th Grade
10 questions
Exploring Digital Citizenship Essentials

Interactive video
•
6th - 10th Grade
Discover more resources for Others
10 questions
Would you rather...

Quiz
•
KG - University
20 questions
Definite and Indefinite Articles in Spanish (Avancemos)

Quiz
•
8th Grade - University
7 questions
Force and Motion

Interactive video
•
4th Grade - University
10 questions
The Constitution, the Articles, and Federalism Crash Course US History

Interactive video
•
11th Grade - University
7 questions
Figurative Language: Idioms, Similes, and Metaphors

Interactive video
•
4th Grade - University
20 questions
Levels of Measurements

Quiz
•
11th Grade - University
16 questions
Water Modeling Activity

Lesson
•
11th Grade - University
10 questions
ACT English prep

Quiz
•
9th Grade - University