python question pAPER
python question pAPER
Section C: (3 × 10 = 30 Marks)
Answer any three of the following questions.
(Each question carries 10 marks)
1. Write a Python program to create a class called
Student that includes:
o Attributes: name, roll_number, and
marks.
o Methods to:
Accept the student's details.
student’s information.
2. Explain the object-oriented programming (OOP)
concepts in Python. Write a Python program to
demonstrate inheritance by defining a Person
class with attributes like name and age, and an
Employee class that inherits from Person and adds
a salary attribute.
3. Write a Python program that accepts a sentence
from the user and:
o Count the number of vowels in the sentence.
result.
Section D: (1 × 20 = 20 Marks)
Answer the following question.
(Each question carries 20 marks)
1. Case Study:
You are required to create a Student Management
System using Python. The system should:
o Allow the user to add, view, update, and
Section D: (1 × 20 = 20 Marks)
Answer the following question.
(Each question carries 20 marks)
1.Case Study:
Create a student management system using
Python. The system should:
o Allow the user to add student details
student.
o Delete a student’s record.