wayground logo

Free Printable Worksheets

Font size

S
M
L
XL
Worksheets

Notepad

Total questions: 10

Worksheet time: 5mins

Name
Class
Date
1.

Hey there! Can you guess the main reason for developing a notepad GUI using Tkinter?

a)

To play games

b)

To create animations

c)

To edit and save text documents

d)

To browse the internet

2.

Hey there! Can you help Advait figure out which tool in a carpenter's workshop is usually used to measure angles?

a)

Ruler

b)

Protractor

c)

Compass

d)

Tape Measure

3.

How can a student create a new magical document in a notepad GUI?

a)

By clicking the "Save" button

b)

By clicking the "Open" button

c)

By casting a spell with Ctrl+N

d)

By pressing Ctrl+S

4.
What event is commonly used to trigger actions like opening and saving files in a notepad GUI?
a)
b)
c)
d)
5.
Which method can be used to open a file and display its content in a notepad GUI?
a)
open_file()
b)
read_file()
c)
file_contents()
d)
filedialog.askopenfilename()
6.

Viaan, Aarush, and Aanya are collaborating on a school project to create a digital portfolio. How can they securely store their project files?

a)

By encrypting the files before saving

b)

By uploading the files to a secure cloud storage service

c)

By using a password-protected USB drive

d)

All of the above

7.

Avyaan, Akhil, and Eesha are exploring the world of web development! Which method do they use to showcase a stunning pop-up message?

a)

show_popup()

b)

messagebox.showinfo()

c)

pop_message()

d)

display_alert()

8.

Hey there! Can you tell me how to reverse the last action in a notepad GUI?

a)

By pressing Ctrl+Z

b)

By clicking the "Undo" button

c)

By using the edit_menu.undo() method

d)

By using the text.edit_undo() method

9.

Hey there! Can you help Anika with this exciting challenge? What does the insert() method do in the Text widget of a notepad GUI?

a)

To add a new widget

b)

To insert an image

c)

To add text at a specific spot

d)

To insert a label

10.

Neha, Myra, and Shaan are working on a fun project using Python's tkinter library. They are creating a mini Notepad application. When they click on the "Open" menu item and select a file, what will happen?

a)

The selected file's path will be displayed.

b)

A new window will pop up.

c)

The contents of the selected file will be shown in the Text widget.

d)

A new file with the selected file's name will be created.