Python Programming (2180711) MCQs

MCQs of Advance Topics II

Showing 1 to 10 out of 23 Questions
1.
Config() in Python Tkinter are used for
(a) destroy the widget
(b) place the widget
(c) change property of the widget
(d) configure the widget
Answer:

Option (c)

2.
Correct way to draw a line in canvas tkinter ?
(a) line()
(b) canvas.create_line()
(c) create_line(canvas)
(d) None of the above
Answer:

Option (b)

3.
Creating line are come in which type of thing ?
(a) GUI
(b) Canvas
(c) Both of the above
(d) None of the above
Answer:

Option (b)

4.
Essential thing to create a window screen using tkinter python?
(a) call tk() function
(b) create a button
(c) To define a geometry
(d) All of the above
Answer:

Option (a)

5.
fg in tkinter widget is stands for ?
(a) foreground
(b) background
(c) forgap
(d) None of the above
Answer:

Option (a)

6.
For user Entry data, which widget we use in tkinter ?
(a) Entry
(b) Text
(c) Both of the above
(d) None of the above
Answer:

Option (b)

7.
From which keyword we import the Tkinter in program?
(a) call
(b) from
(c) import
(d) All of the above
Answer:

Option (c)

8.
How pack() function works on tkinter widget ?
(a) According to x,y coordinate
(b) According to row and column vise
(c) According to left,right,up,down
(d) None of the above
Answer:

Option (c)

9.
How the grid() function put the widget on the screen ?
(a) According to x,y coordinate
(b) According to row and column vise
(c) According to left,right,up,down
(d) None of the above
Answer:

Option (b)

10.
How we import a tkinter in python program ?
(a) import tkinter
(b) import tkinter as t
(c) from tkinter import *
(d) All of the above
Answer:

Option (c)

Showing 1 to 10 out of 23 Questions