Professional Documents
Culture Documents
Computer Science: Bengali Sr. Sec. School
Computer Science: Bengali Sr. Sec. School
Computer Science: Bengali Sr. Sec. School
SCHOOL
COMPUTER SCIENCE
Class - XI- B
Roll Number – 14
Page no. 1
INDEX
S. NO. DESCRIPTION PAGE TEACHER SIGN.
NO.
1. A User Defined Function to convert a Number entered 4-5
by the users into its corresponding number in words.
2. Create a Dictionary ‘ODD’ of odd numbers between 1 6-7
and 10, where the key is the decimal numbers and the
Value is the corresponding numbers in words.
3. A program to calculate average marks of ‘n’ students 8-9
using a function where ‘n’ is entered by the user.
4. A menu driven program to perform various list 10 - 16
operations.
5. A program using a user defined function to check if a 18 – 19
string is palindrome or not.
6. A program with a user defined function with string as 20 - 21
a parameter which replaces all vowels in the string
with ‘*’.
7. A program with user defined function to count the 22 – 23
number of times a character (passed as argument)
occurs in the given string.
8. Create a user defined module basic math user defined- 24 – 25
functions.
9. A Program to find prime numbers between 2 to 50 26 – 27
using nested for loops.
10. Program to print the pattern of a number input by the 28 – 29
user.
11. A Program to Find the sum of all the positive number 30 – 31
entered by the user. As soon as a user enters a
negative number, stop taking any further input from
the user and display the sum.
12. A program to enter name of employees and their 32 – 33
salaries as input and store them in a dictionary.
13. Program to increment the elements of a list. The list is 34 – 35
passed as an argument to a function.
14. A program that simulates a traffic light. 36 – 37
Page no.3
1. A User Defined Function to convert a Number entered by
the users into its corresponding number in words.
Output 1.1 -
Output 1.2 -
Output 1.3 -
Output 1.4 –
Page no.4
Source Code –
Page no.5
2. Create a Dictionary ‘ODD’ of odd numbers between 1 and
10, where the key is the decimal numbers and the Value
is the corresponding numbers in words.
Output –
(a.) Display the Keys
Page No.6
Source Code –
(a.)
(b.)
(c.)
(d.)
(e.)
(f.)
(g.)
(h.)
Page no.7
3. A program to calculate average marks of ‘n’ students
using a function where ‘n’ is entered by the user.
Output -
Page no.8
Source Code –
Page no.9
4. A menu driven program to perform various list
operations.
Output 4.1 –
Page no.10
Source Code –
Page no.11
Output 4.2 –
Page no.12
Source Code –
Page no.13
Output 4.3 –
Output 4.4 –
Page no.14
Source Code –
Page no.15
Output 4.5 –
Output 4.6 –
Page no.16
5. A program using a user defined function to check if a
string is palindrome or not.
Output 5.1 –
Output 5.2 –
Output 5.3 –
Page no.18
Source Code –
Page no.19
6. A program with a user defined function with string as a
parameter which replaces all vowels in the string with ‘*’.
Output 6.1 –
Output 6.2 –
Output 6.3 –
Page no.20
Source Code –
Page no.21
7. A program with user defined function to count the
number of times a character (passed as argument) occurs
in the given string.
Output 7.1 –
Output 7.2 –
Output 7.3 –
Page no.22
Source Code –
Page no. 23
8. Create a user defined module basic math user defined-
functions.
Output 8.1 –
Output 8.2 –
Page no.24
Source Code –
Page no.25
9. A Program to find prime numbers between 2 to 50 using
nested for loops.
Output –
Page no.26
Source Code –
Page no.27
10. Program to print the pattern of a number input by the
user.
Output 10.1 –
Output 10.2 –
Page no.28
Source Code –
Page no.29
11. A Program to Find the sum of all the positive number
entered by the user. As soon as a user enters a negative
number, stop taking any further input from the user and
display the sum.
Output –
Page no.30
Source Code –
Page no.31
12. A program to enter name of employees and their
salaries as input and store them in a dictionary.
Output –
Page no.32
Source Code –
Page no.33
13. Program to increment the elements of a list. The list
is passed as an argument to a function.
Output –
Page no. 34
Source Code –
Page no.35
14. A program that simulates a traffic light.
Output 14.1 –
Output 14.2 –
Output 14.3 –
Output 14.4 –
Page no.36
Source Code –
Page no.37