🧪 Python MCQ Quiz Hub

Python MCQS - GUI in python

Choose a topic to test your knowledge and improve your Python skills

1. Which of the following tool provides a GUI in python




2. Tkinter tool in python provide the




3. GUI stands for




4. What is widget in Tkinter GUI in python




5. Which of the following is clickable in GUI programming ?




6. How we import a tkinter in python program ?




7. Which of the following is not correct way to import the tkinter in program ?




8. From which keyword we import the Tkinter in program?




9. Which widget are used to get the data from the user ?




10. What is the use of the Entry widget in tkinter python ?




11. what is Tk() in tkinter python ?




12. Essential thing to create a window screen using tkinter python?




13. How we install tkinter in system ?




14. Which of the following command are used to install the tkinter ?




15. Which of the correct way to set the geometry of the window ?




16. To hold the screen what we use ?




17. What is the use of the mainloop() in Python Tkinter ?




18. Which of th following is used to call a function by the Button widget in tkinter python ?




19. Which of the following function are used to get the data from the Entry field in Python Tkinter ?




20. To get the multiple line user data, which widget we use ?




21. For user Entry data, which widget we use in tkinter ?




22. title() is used for




23. What is the right way to set the title of the window ?




24. Which of the following is used to put the widget at the screen ?




25. What is the use of the pack() function for the tkinter widget ?




26. How pack() function works on tkinter widget ?




27. How the place() function put the widget on the screen ?




28. How the grid() function put the widget on the screen ?




29. What is the use of the place() function in tkinter Python ?




30. What we use to change the back ground color any widget ?




31. For what purpose, the bg is used in Tkinter widget ?




32. fg in tkinter widget is stands for ?




33. To change the color of the text in the Button widget, what we use ?




34. Config() in Python Tkinter are used for




35. To change the property of the widget after the declaration of widget, what e use ?




36. What is the correct way to use the config() function in tkinter ?




37. Screen inside another screen is possible by creating




38. What is the Syntax to create a Frame ?




39. In which of the following field, we can put our Button?




40. Creating line are come in which type of thing ?




41. Which of the following is correct ?




42. Which of the following we can draw using canvas in tkinter ?




43. use of the angle attribute are on which widget ?




44. Minimum number of argument we require to pass in a function to create a line ?




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




46. To delete any widget from the screen which function we use ?




47. What is the correct syntax of destroy in tkinter ?




48. Which of the following we can able to delete using destroy() function ?




49. Minimum number of argument we pass in a function to create a rectangle using canvas tkinter ?




50. Correct way to draw a line in canvas tkinter ?