Wayground logo

Free Printable Worksheets

Font size

S
M
L
XL
Worksheets

Day 27 CustomTkinter - 1st July

Total questions: 10

Worksheet time: 5mins

Name
Class
Date
1.

What is the primary purpose of CTkTextbox in CustomTkinter?

a)

Single-line input

b)

Display images

c)

Multi-line text input and display

d)

Dropdown selection

2.

Which method is used to retrieve the text content from a CTkTextbox?

a)

.fetch()

b)

.get()

c)

.read()

d)

.input()

3.

What does textbox.get("0.0", "end") do?

a)

Deletes all the content

b)

Inserts a new line

c)

Retrieves all text from the beginning to the end

d)

Makes the textbox editable

4.

What will happen if you set state="disabled" on a CTkTextbox?

a)

It clears the text

b)

User cannot edit the textbox

c)

It resizes the textbox

d)

It hides the textbox

5.

Which of the following is used to clear all content in CTkTextbox?

a)

textbox.clear("all")

b)

textbox.remove()

c)

textbox.delete("0.0", "end")

d)

textbox.purge()

6.

What does corner_radius=15 do in the textbox widget?

a)

Sets corner color

b)

Adds padding

c)

Rounds the corners of the textbox

d)

Adds border width

7.

Which parameter changes the outline color of the CTkTextbox?

a)

corner_radius

b)

fg_color

c)

text_color

d)

border_color

8.

Which function is used in the code to insert a new line using a button?

a)

print_text()

b)

insert_line()

c)

add_line()

d)

new_text()

9.

What is the output of .get("0.0", "end") if the textbox is empty?

a)

Error

b)

None

c)

An empty string with a newline (\n)

d)

"Empty"

10.

What is the purpose of textbox.configure(state="normal") in the code?

a)

To change textbox size

b)

To update appearance

c)

To allow the textbox to be edited

d)

To delete the textbox