Cambridge School, Indirapuram
Class XI – Informatics Practices
Program File Questions – Python
Python fundamentals, if else, elif
1. WAP to input P,R, and T from user. Calculate simple interest and print it on the screen.
2. WAP to find out area of circle. Input the value of R from user.
3. WAP which accept temperature in Fahrenheit and print it in centigrade.
Formula => [c=5/9*(T-32)]
4. Write a program to create a simple calculator performing only four basic operations.
5. WAP to input two numbers from user. The program will print the largest number.
6. WAP to input name and age of the person. Check whether the person is major/minor. Print
suitable message along with his/her name.
7. WAP to input the sales amount from the salesman, calculate and print the commission amount
earned by salesman. The commission percentage will be 12% if the sales amount is >20000
otherwise the percentage will be 10%.
8. WAP to input percentage of the student. Check whether that student is pass or fail. (<33 is fail)
9. WAP to input the student name and marks in 5 subjects. Calculate total and percentage. Then
find out the grade of the student as per the given criteria:
Percentage Grade
>=80 A
>=60 <80 B
>=33 <60 C
<33 F
10. WAP to input the name, age and gender(‘M’/’F’/’O’). Find out the voting booth of the person as
per the given criteria:
if age>=18 then only he/she is eligible to vote otherwise can’t vote. Then check gender of
eligible person, if gender is ‘M’ then voting booth will DPSI otherwise voting booth will be CSI.
Print suitable message in user friendly format.
11. WAP to input the name and house of a student. Check the house of the student if it is “Aravali”
or “Dhauladhar”, Print a message “Come to school on 15 May at 9.00 am” otherwise print “No
practice”.
12. Display the appropriate message as per the colour of signal at the road crossing.
13. Write a python program to check whether the entered character is an alphabet or not.
14. Write a program to input a character and check whether it is a vowel or not.
Cambridge School, Indirapuram
Class XI – Informatics Practices
Program File Questions – Python
LOOPS
1. Program to input a number from user. Print its table.
2. Program to print reverse counting from 10-1.
3. Program to print all the odd numbers starting from 1-n.
4. Program to print the sum of all the odd numbers starting from 1-n.
5. Program to input n different numbers from user. Program will print the sum of those numbers.
for example : if the n is 3, then ask any three numbers from user and suppose user enters 1,3, 5
then the output should be : 9 (1+3+5)
6. Program to input age of n people. Program will count and print the frequency of the people as
per the given criteria:
Children <18
Adult >=18 <60
Sr. Citizen >=60
For example: if the value of n is 5 i.e. you will ask age of 5 people. For ex. the values for the age
are : 50,60,12,67,18 then output should be:
Frequency of Children – 1
Frequency of Adult – 3
Frequency of Sr. citizen – 1
7. Program to input ‘n’ numbers from user and print the largest number among them.
LISTS, DICTIONARIES
1. Program to input a string from user. The program will count and print the frequency of vowels
letters present in the string.
2. Program to input a string from user. Check whether it is Palindrome or Not.
3. Program to input 5 values in the list. Program will print the sum of those values.
4. Program to input 10 values in the list. Print the sum of odd and even values individually.
5. Program to input n values in the list. Input the value and search in the list. If the value exists
print its index otherwise print “Doesn’t exist”.
6. Program to input n values in the list. Arrange the list in descending order and print the result.
7. Program to input n values in the list. Check whether the list is sorted or not.
8. Program to input n values in the list. Swap the first half with the second half of the list.
9. Program to input Rno, name, marks in five subjects(in list form) in a dictionary. The program will
calculate and add the percentage in the dictionary. Print the entire dictionary on the screen.
10. Program which will store details on ‘n’ books in a list. Details of a book(bid,bname,price) will be
stored in dictionary format. After getting details, program will find and print the details of those
books where price is more than 500.