0 of 15 Questions completed
Questions:
You have already completed the quiz before. Hence you can not start it again.
You must sign in or sign up to start the quiz.
You must first complete the following:
Quiz complete. Results are being recorded.
0 of 15 Questions answered correctly
Your time:
Time has elapsed
You have reached 0 of 0 point(s), (0 )
Earned Point(s): 0 of 0 , (0 )
0 Essay(s) Pending (Possible Point(s): 0 )
Show Question
1
Show Question
2
Show Question
3
Show Question
4
Show Question
5
Show Question
6
Show Question
7
Show Question
8
Show Question
9
Show Question
10
Show Question
11
Show Question
12
Show Question
13
Show Question
14
Show Question
15
Review / Skip
Answered
Correct
Incorrect
Question 1 of 15
Which of the following is not the module provided by Python for GUI programming?
Question 2 of 15
What is the use of the mainloop() function?
Question 3 of 15
Which of the following is not the widget provided by Tkinter?
Question 4 of 15
Which of the following is the correct code to set the size of the window as 200 x 100?
Question 5 of 15
What is the code to draw a line in Canvas?
Question 6 of 15
Which of the following is the correct way to set the name of the GUI application as ‘Gui’?
Question 7 of 15
What does the property cursor mean in Python GUI?
Question 8 of 15
Which of the following commands help in adding items to the list box?
Question 9 of 15
Find the code that gives the below GUI.
Question 10 of 15
Which of the following is the code to create a widget that lets the user enter an integer from 1 to 10?
Question 11 of 15
Which of the following is true about the GUI shown below?
Question 12 of 15
Which of the following is code to create a slider that allows you to slide any of the values from 1 to 10?
Question 13 of 15
Which of the following widgets can be used to take input from the user?
Question 14 of 15
Which of the following correctly works to create the following GUI?
from tkinter import *
win=Tk()
cb_var1 = IntVar()
cb1=Checkbutton(win, text='Sign In', variable=cb_var1,onvalue=1,offvalue=0).grid(row=0, sticky=W)
cb_var2 = IntVar()
cb2=Checkbutton(win, text='Sign Up', variable=cb_var2,onvalue=1,offvalue=0).grid(row=1, sticky=W)
win.mainloop()
Correct
Incorrect
Correct answer
from tkinter import * win=Tk() var = IntVar() cb1=Radiobutton(win, text='Sign In', variable=var,onvalue=1,offvalue=0).grid(row=0, sticky=W) cb2=Radiobutton(win, text='Sign Up', variable=var,onvalue=1,offvalue=0).grid(row=1, sticky=W) win.mainloop()
Correct
Incorrect
Correct answer
from tkinter import * win=Tk() cb_var1 = IntVar() cb1=Radiobutton(win, text='Sign In', variable=cb_var1,onvalue=1,offvalue=0).grid(row=0, sticky=W) cb_var2 = IntVar() cb2=Radiobutton(win, text='Sign Up', variable=cb_var2,onvalue=1,offvalue=0).grid(row=1, sticky=W) win.mainloop()
Correct
Incorrect
Correct answer
from tkinter import * win=Tk() cb_var1 = IntVar() cb1=Checkbutton(win, text='Sign In', variable=cb_var1,onvalue=1,offvalue=0).grid(row=0, sticky=W) cb2=Checkbutton(win, text='Sign Up', variable=cb_var1,onvalue=1,offvalue=0).grid(row=1, sticky=W) win.mainloop()
Correct
Incorrect
Correct answer
Question 15 of 15
Which of the following codes can be used to get an error message as “This is a message”?