Professional Documents
Culture Documents
Python Question Bank
Python Question Bank
Subjective:
Short:
Long:
Subjective:
Short:
Long:
Subjective:
Short:
Long:
Unit-4:
Subjective:
Short:
1.Define class.
2.Define object.
3.What is inheritance?
4.List the types of inheritance.
5.Explain polymorphism in brief.
6.What are the advantages of object-oriented programming over procedure oriented
programming?
7.What is meant by method overriding?
8.Give the syntax for creating a class.
9.Give the syntax for creating a object.
10.Differentiate method and a function.
Long:
1.List the features and explain about different Object Oriented features supported by Python.
2.Explain the concept of method overriding with an example.
3.How to declare a constructor method in python? Explain.
4.Explain the features of Inheritance in python with an example.
5.Differentiate between an error and exception.
6.How to create a user defined exception?
7.How to handle an exception using try except block? Explain with the help of a program.
8.Compare and contrast procedure oriented programming and object-oriented programming.
9.Explain the different types of inheritance with suitable examples for each.
10.Enumerate the different techniques for Designing Classes.
Unit-5:
Subjective:
Short:
Long:
1.Compare and contrast the behavior of terminal based programs with the behavior of GUI-
based programs.
2.Write short notes on GUI programming with Python and also discuss about various
resources for GUI programming in Python.
3.Explain various operations of tkinter module.
4.Write a program to demonstrate Two dimensional Shapes.
5.Write a program to demonstrate of displaying text with Label Widgets.
6.Write a program to demonstrate of organizing Widgets with Frames.
7.Write a program to demonstrate of Button Widgets and Info Dialog Boxes.
8.Write a program to demonstrate of getting input with Entry Widgets.
9.Write a program to demonstrate of using Radio Buttons.
10. Write a program to demonstrate of using Check Buttons.