Question Bank Unit Test II Python
Question Bank Unit Test II Python
2 Marks Questions
1. Define class and object in python.
2. Define Data Hiding concept? Write two advantages of Data Hiding.
3. Describe any two data conversion function(2marks)
4. Explain Local and Global variable (2marks)
5. Write use of lambda function in python.
6. List different object oriented features supported by Python.
7. What is data abstraction and data hiding
8. List different modes of opening file in Python
4 Marks Questions
9 Create a parent class named Vehicle with a method fuel_type(). Then, create a
child class ElectricCar that extends Vehicle and overrides the fuel_type() method.
Instantiate an object of ElectricCar and call the fuel_type() method.
10 Explain how to use user defined function in python with example.
11 Describe 'Self' Parameter with example.
12 Write a program for importing module for addition and substraction of two
numbers
13 Explain package Numpy with example
14 Write a python program to generate five random integers between 10 and 50 using
numpy library.
15 Write program to implement concept of inheritance in python.
16 Design a class student with data members : name, roll no., department, mobile
no. Create suitable methods for reading and printing student information.
17 Explain any four Python's Built-in Function with example.
18 Describe various modes of file object? Explain any two in detail.
19 Illustrate with example Method overloading
20 Explain multiple inheritance and write a python program to implement it.
21 Explain any six set function with example.
22 Explain different functions or ways to remove key : value pair from Dictionary.
23Design a class student with data members; Name, roll number address. Create
suitable method for reading and printing students details.
24 Describe following Standard Packages i) Numpy ii) Pandas