Tkinter calc

Tkinter calc

12th Grade

8 Qs

quiz-placeholder

Similar activities

Tkinter quiz

Tkinter quiz

12th Grade

8 Qs

Antarmuka Grafis GUI

Antarmuka Grafis GUI

7th Grade - Professional Development

10 Qs

Tkinter Course - 1

Tkinter Course - 1

12th Grade - Professional Development

6 Qs

tkinter quiz

tkinter quiz

3rd Grade - University

5 Qs

Scale Widget Tkinter

Scale Widget Tkinter

12th Grade

5 Qs

Tkinter Python

Tkinter Python

9th - 12th Grade

10 Qs

tkinter 20/02/2022

tkinter 20/02/2022

4th Grade - Professional Development

5 Qs

Графічний інтерфейс модуль tkinter

Графічний інтерфейс модуль tkinter

9th - 12th Grade

9 Qs

Tkinter calc

Tkinter calc

Assessment

Quiz

Computers

12th Grade

Easy

Created by

Hazem Mohamed

Used 1+ times

FREE Resource

8 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What does the command parameter do in a tkinter button?

Defines the function to execute when clicked

The command parameter defines the button's label.
The command parameter sets the button's size.
The command parameter changes the button's color.

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What does lambda do in the context of tkinter buttons?

Allows adding a value to to function

Defines the layout of buttons in tkinter.

Lambda is a method for importing libraries in tkinter.

Used to create graphical interfaces in tkinter.

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Media Image

What does justify='center' do?

It adds padding around the text.
It centers the text within the entry field.
It increases the font size of the text.
It aligns the text to the left.

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Media Image

What's the difference between pady and ipday in tkinter?

pady adds external padding, ipady adds internal padding.
pady and ipady are the same and have no effect.
pady is used for horizontal spacing, ipady for vertical spacing.
pady adjusts font size, ipady adjusts color.

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Media Image

What's the benefit of the eval function?

Evaluating an expression

Enhancing widgets

Improved performance
Static code analysis

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What does this line do?

entry.delete(0, tk.END)

It retrieves the text from the entry widget.
It clears the text entry widget.
It adds text to the entry widget.
It changes the background color of the entry widget.

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which method inserts text into a tkinter Entry widget?

add
append
insert
write

8.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which statement is true about eval(expression) in the calculate() function?

It executes the expression as Python code

It prints the expression

It deletes the expression

All of them are correct