Tkinter Review
Quiz
•
Computers
•
9th - 12th Grade
•
Medium
Lauren Tan
Used 60+ times
FREE Resource
Enhance your content in a minute
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
Similar Resources on Wayground
0 questions
Python Programming 17.09.2021
Quiz
•
0 questions
Python Level 2 - Lesson 8
Quiz
•
0 questions
Python Basic Calculator Revision
Quiz
•
0 questions
Python Tkinter To-Do List Manager Quiz
Quiz
•
0 questions
Tkinter
Quiz
•
0 questions
Quiz 1
Quiz
•
0 questions
Introduction to tkinter
Quiz
•
0 questions
Tkinter
Quiz
•
Popular Resources on Wayground
5 questions
This is not a...winter edition (Drawing game)
Quiz
•
1st - 5th Grade
25 questions
Multiplication Facts
Quiz
•
5th Grade
10 questions
Identify Iconic Christmas Movie Scenes
Interactive video
•
6th - 10th Grade
20 questions
Christmas Trivia
Quiz
•
6th - 8th Grade
18 questions
Kids Christmas Trivia
Quiz
•
KG - 5th Grade
11 questions
How well do you know your Christmas Characters?
Lesson
•
3rd Grade
14 questions
Christmas Trivia
Quiz
•
5th Grade
20 questions
How the Grinch Stole Christmas
Quiz
•
5th Grade
