Download as pdf or txt
Download as pdf or txt
You are on page 1of 1

PM SHRI KENDRIYA VIDYALAYA NABARANGPUR

HOLIDAY HOME WORK

CLASS XII COMPUTER SCIENCE

1. What are the advantages of functions in programming.

2. List various types of errors that occur in programming and explain with the

help of examples.

3. What do you understand by dynamic typing features of python.

4. Explain the working of partition() with string and how it’s different from split()

Demonstrate using examples.

5. Write program to read a string and find the no of vowels in it.

6. Write a python function to count the number of characters(character frequency)

in a string and store it in a dictionary. The function accepts string as an argu-

ment and return the dictionary.

Consider the following string

S=”google.com”

Expected output is {'g': 2, 'o': 3, 'l': 1, 'e': 1, '.': 1, 'c': 1, 'm': 1}

7. Explain the difference between sort() and sorted() while using lists.

8. Solve the programming questions from XI SEE paper.

9. Write all programs in lab record.

You might also like