Wayground logo

Free Printable Worksheets

Font size

S
M
L
XL
Worksheets

Python Programming 17.09.2021

Total questions: 15

Worksheet time: 10mins

Name
Class
Date
1.

Config() in Python Tkinter are used to ____________

a)

destroy the widget

b)

place the widget

c)

configure the widget

d)

change property of the widget

2.

___________ method is used to draw a line in canvas tkinter

a)

canvas.create_line()

b)

line()

c)

create_line(canvas)

d)

create line()

3.

Creating line belongs to _________ category.

a)

GUI

b)

CGI

c)

Canvas

d)

scripting

4.

Essential thing to create a window screen using tkinter python is _________

a)

create a button

b)

To define a geometry

c)

create a file

d)

call tk() function

5.

The purpose of bg in Tkinter widget is to ____________

a)

To change the background of widget

b)

To change the direction of widget

c)

To change the size of widget

d)

To change the color of widget

6.

The keyword used to import the Tkinter in program is ________

a)

call

b)

from

c)

import

d)

use

7.

GUI stand for ___________

a)

Graph user interaction

b)

Global user interaction

c)

Graphical user interface


d)

Graphical user interaction

8.

How does the grid() function put the widget on the screen ?

a)

According to x,y coordinate

b)

According to left,right,up,down

c)

According to horizontal,vertical

d)

According to row and column wise

9.

The method(s) to import a tkinter in python program is/are ____________.

a)

import tkinter

b)

import tkinter as t

c)

from tkinter import *

d)

All the above

10.

The method to install tkinter in system is _________

a)

pip install python

b)

tkinter install

c)

tkinter pip install

d)

pip install tkinter

11.

It is possible to draw a circle directly in Tkinter canvas ?

a)

Yes

b)

No

c)

No(but possible by oval)

12.

The Minimum number of argument to be passed in a function to create a rectangle using canvas tkinter is (a)  

13.

Screen inside another screen is possible by creating __________

a)

Another window

b)

buttons

c)

labels

d)

frames

14.

The correct way to use the config() function in tkinter is _____________

a)

object.property

b)

config(property)

c)

object.config(property)

d)

config(object,property)

15.

The use of the mainloop() in Python Tkinter is __________

a)

To create a window screen

b)

To Destroy the window screen

c)

To exit window screen

d)

To Hold the window Screen