CC103 - Part 3

CC103 - Part 3

University

40 Qs

quiz-placeholder

Similar activities

MCQs on Fungal Characteristics

MCQs on Fungal Characteristics

University

45 Qs

ôn tập t.a

ôn tập t.a

University

35 Qs

C++ Programming Quiz

C++ Programming Quiz

University

42 Qs

L - cam 18 - p1 - test 1

L - cam 18 - p1 - test 1

University

36 Qs

Câu hỏi về Excel

Câu hỏi về Excel

University

42 Qs

Aviation Meterology

Aviation Meterology

University

41 Qs

𝓠𝓾𝓲𝔃𝔃𝓮 (𝓶𝓪𝓰𝓲𝓬𝓲𝓪𝓷)

𝓠𝓾𝓲𝔃𝔃𝓮 (𝓶𝓪𝓰𝓲𝓬𝓲𝓪𝓷)

University

45 Qs

zat-zat makanan

zat-zat makanan

University

35 Qs

CC103 - Part 3

CC103 - Part 3

Assessment

Quiz

Others

University

Practice Problem

Hard

Created by

ALVIN CERTEZA

FREE Resource

AI

Enhance your content in a minute

Add similar questions
Adjust reading levels
Convert to real-world scenario
Translate activity
More...

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()

Access all questions and much more by creating a free account

Create resources

Host any resource

Get auto-graded reports

Google

Continue with Google

Email

Continue with Email

Classlink

Continue with Classlink

Clever

Continue with Clever

or continue with

Microsoft

Microsoft

Apple

Apple

Others

Others

Already have an account?