Font size
Worksheetstkinter Python 3 GUI
Total questions: 49
Worksheet time: 32mins
Which is the correct way to use tkinter in python
program?
include tkinter *
import tkinter *
from tkinter import *
from tkinter include *
Which of the following function used to create window in
python tkinter.
window()
tk()
toolkit()
wd()
Which of the following function used to create window in
python tkinter.
window()
tk()
toolkit()
wd()
Which of the following attribute used to change the text
color of a Label widget in python tkinter
fg
foreground
bg
background
Which of the following attribute used to change the
background color of a Label widget in python tkinter
background
bg
fg
foreground
Which function is used to set the size of the tkinter
window?
setsize()
size()
geometry()
dimension()
Select the function is used to close the
tkinter window.
destroy()
delete()
stop()
remove()
What is the use of mainloop() function in tkinter window?
To create the window screen
To hold the window screen
To delete the window screen
To disable the window screen
In contrast to a terminal-based program, a GUI-based
program
user needs to wait for the options
completely controls the order in which the user enters inputs
can allow the user to enter inputs in any order
that decided by the window manager pack()
In MVC pattern, the model is responsible for
processing the program's data
managing the program's data
displaying the program's data
control the appearance of data
Is it possible to set the title for a window after creating it?
yes
no
How does the grid() function put the widget on the screen ?
According to x,y coordinate
According to left,right,up,down
According to horizontal,vertical
According to row and column wise
The method(s) to import a tkinter in python program is/are ____________.
import tkinter
import tkinter as t
from tkinter import *
All the above
Screen inside another screen is possible by creating __________
Another window
buttons
labels
frames
The correct way to use the config() function in tkinter is _____________
object.property
config(property)
object.config(property)
config(object,property)
The use of the mainloop() in Python Tkinter is __________
To create a window screen
To Destroy the window screen
To exit window screen
To Hold the window Screen
What is tkinter?
A Python GUI module
A Python Scripting module
It provides a scrollbar to the use so that the use can scroll the window up and down.
Scrollbar()
Spinbox()
Menu()
Entry()
Features of Python
Easy to learn and read
Portable
GUI programming
All of the above
Which command used to change the screen size?
window = Tk()
window.mainloop()
window.geometry("400x300")
Which of the following is easy to use from the user?
Command Line
GUI (Graphical User Interface)
__________ is an element of GUI.
Widget
GUI
Application
Which is the correct way to use tkinter in python
program?
include tkinter *
import tkinter *
from tkinter import *
from tkinter include *
Which of the following function used to create window in
python tkinter.
window()
tk()
toolkit()
wd()
Which of the following attribute used to change the text
color of a Label widget in python tkinter
fg
foreground
bg
background
Which of the following attribute used to change the
background color of a Label widget in python tkinter
background
bg
fg
foreground
______________ library provides fast and easy way to create GUI applications in Python.
Tkinter
IbtikarMaker
Graph
Choose the correct statement to display title.
window.title("My First Program")
window.title(My First Program)
window.title "My First Program"
Label , Button , Sliders are all examples of Widgets.
True
False
Which function is used to set the size of the tkinter
window?
setsize()
size()
geometry()
dimension()
What is the use of mainloop() function in tkinter window?
To create the window screen
To hold the window screen
To delete the window screen
To disable the window screen
It provides a scrollbar to the use so that the use can scroll the window up and down.
Scrollbar()
Spinbox()
Menu()
Entry()
window=Tk() is to create new interface .
true
false
The library that is responsible about creating GUI is
Turtle
TKinter
Maze
window.geometry("300x200") is to change the size of the GUI window into .
500 Height x 200 Width
300 Height x 800 Width
300 Height x 200 Width
It is not possible to set the title of the window after creating it
True
False
Which command used to change the screen size?
window = Tk()
window.mainloop()
window.geometry("400x300")
Which of the following function used to create window in
python tkinter.
window()
tk()
toolkit()
wd()
Which of the following attribute used to change the text
color of a Label widget in python tkinter
fg
foreground
bg
background
Choose the correct statement to display title.
window.title("My First Program")
window.title(My First Program)
window.title "My First Program"
Which function is used to set the size of the tkinter
window?
setsize()
size()
geometry()
dimension()
What is the use of mainloop() function in tkinter window?
To create the window screen
To hold the window screen
To delete the window screen
To disable the window screen
Tkinter is a (a) module
A new label
x = label(win, text="hi").pack()
in win return Label(text="hi")
To hold the screen what we use ?
mainloop() function
pause() function
Stop() function
None of the above
What is the correct way to use the config() function in tkinter ?
config(object,property)
object.config(property)
config(property)
object.property
What is the right way to set the title of the window ?
title(win,mytitle)
win.title(mytitle)
title(mytitle).win
None of the above
Which of the correct way to set the geometry of the window ?
geometry(x,y)
geometry(300x400)
geometry(300,400)
None of the above
Which of the following function are used to get the data from the Entry field in Python Tkinter ?
get()
Gettext()
Getdata()
All of the above
