CBSE 12 Holiday Homework
CBSE 12 Holiday Homework
2.
3.
4.
5.
Give the difference between global and local variable? Give python code to
illustrate both.
6.
7.
8.
How are lists different from strings when both are sequences?
9.
10.
11.
What do you mean by abstraction and encapsulation? How they are related?
12.
13.
What are mutable and immutable types? List immutable and mutable types
of Python.
Page 1 of 5
14.
15.
16.
17.
18.
19.
What are instance variables? How are they different from class variables?
20.
What are the differences between instance methods and static methods?
21.
What do you mean by name mangling? Support your answer with relevant
example.
22.
23.
24.
27.
What is the role of __del__( ) method in a class? Explain with the help of an
example.
What is the role of __init__( ) method in a class? Explain with the help of an
example.
Define inheritance. Explain the different type of inheritance with example
code.
What is method overriding? What is its significance?
28.
29.
30.
31.
32.
33.
34.
25.
26.
Page 2 of 5
35.
36.
37.
38.
A*(B+C*D)+E
ii.
a b
AND a c AND
OR
39.
40.
41.
42.
43.
44.
45.
A list contains Item_code, Item_name, qty and price. Sort the list in
Page 3 of 5
46.
47.
48.
Page 4 of 5
49.
50.
Create a binary file Student containing students records having their name,
roll no., and marks in Computer science. Write procedures to perform the
following:
(i) Display all names along with their
marks.
(ii) Insert a student record at the
appropriate rollno.
(iii) Delete a particular student.
Page 5 of 5