Tkinter Review

Tkinter Review

9th - 12th Grade

7 Qs

quiz-placeholder

Similar activities

Penilaian Harian KD.3.1

Penilaian Harian KD.3.1

8th Grade - University

10 Qs

Access - Lesson 14

Access - Lesson 14

9th - 12th Grade

10 Qs

ICT_LU3-Computer Software_League2

ICT_LU3-Computer Software_League2

10th - 12th Grade

10 Qs

Adobe Animate Symbols

Adobe Animate Symbols

9th Grade

10 Qs

kuis komponen penyusun UI/UX

kuis komponen penyusun UI/UX

10th Grade

10 Qs

Email Quiz

Email Quiz

9th Grade

10 Qs

Поняття об'єкта, його властивості і методи

Поняття об'єкта, його властивості і методи

10th Grade

10 Qs

Avaliação 1T - JavaScript

Avaliação 1T - JavaScript

9th - 12th Grade

10 Qs

Tkinter Review

Tkinter Review

Assessment

Quiz

Computers

9th - 12th Grade

Medium

Created by

Lauren Tan

Used 60+ times

FREE Resource

AI

Enhance your content in a minute

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

7 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

15 mins • 1 pt

Which of the commands below would create a button object in a tkinter window named root that links to a function called doubleMe?

button1 = Button(root, text="Double me")

button1 = Button(text="Double me")

button1 = Button(root, command = doubleMe)

button1 = Button()

2.

MULTIPLE CHOICE QUESTION

15 mins • 1 pt

next_btn = Button(window, text=">", font=("Arial",20), command=nextCard)

next_btn.grid(column=2, row=4)


What is the role of the statement underlined?

place widget next_btn in row 4 and column 2

creating the new button - next_btn

draw the grid lines on screen

to call grid() to divide the button into a grid

3.

MULTIPLE CHOICE QUESTION

15 mins • 1 pt

In the following line of code, which is is a METHOD?

canvas1.create_line(0, 0, 200, 100)

create_line

canvas1

0

200

4.

MULTIPLE CHOICE QUESTION

15 mins • 1 pt

In the following line of code, which is is an OBJECT?

canvas1.create_line(0, 0, 200, 100)

create_line

canvas1

0

200

5.

MULTIPLE CHOICE QUESTION

15 mins • 1 pt

In the following line of code, which is is an ARGUMENT?

canvas1.create_line(0, 0, 200, 100)

create_line

canvas1

Canvas

200

6.

MULTIPLE CHOICE QUESTION

15 mins • 1 pt

What is the difference between a method and a function?

A method can only be used on a class of objects where as a function doesn't need a specific object to run it.

A function can only be used on a class of objects where as a method doesn't need a specific object to run it.

A method must have arguments and a function may or may not have arguments (depending on the situation)

A function must have arguments and a method may or may not have arguments (depending on the situation)

7.

MULTIPLE CHOICE QUESTION

15 mins • 1 pt

What are two methods that place a widget on your root window?

pack and grid

pack and set

grid and set

set and get