Dr.
Virendra Swarup Public School
CLASS:-11
SUBJECT:-Informatics Practices(065)
WORKSHEET-1 – Python
NAME:- DATE:-
Application based Questions
1. Which of the following is not a valid variable and why?
a. abc
b. 1abc
c. ab cd
d. s.i
e. simple_interest
2. Which among the following is not a valid integer and why?
a. 12.35
b. 12,345
c. 12,345
d. 12345
3. Correct the following program that adds up 2 integers 12 and 75 using variables. Underline
each correction.
4. Give the output of the following program:
Lab Activity
1. Write a program to find the sum and difference between 25 and 16 using variables in different
lines.
2. Write a program to find the product of 5, 7 and 12 using variables.
3. Write a program to find the product of the sum and difference between 17 and 2 using
variables.
4. Write a program to find the average of 36,45 and 53 using variables of adequate data type.
5. Write a program using variables to find the sum of three numbers say 15, 36 and 45 and
subtract the result from 100 using variables.
6. Write a program using variables to find the area and perimeter of a rectangle of length 12cm
and breadth 8cm.
7. Write a program using variables to find the profit and profit percent of a certain transaction
where S.P.=₹ 10000 and C.P.=₹ 7000.
8. Write a program using variables to find the cost of 17 pencils if the cost of one pencil=₹ 2.50.
Output should be:
Cost of 1 pencil=₹2.5
Cost of 17 pencils=₹42.5
9. Write a program using variables to find the area and circumference of a circle whose radius is
12cm.
Note that :
Area of a circle= π r2
Circumference of a circle = 2 π r
Where r is the radius of the circle and π is 3.142.
10. Write a program to assign 5 and 6 to variables a and b respectively and interchange them.
Thus after interchanging, a and b will be 6 and 5 respectively.
11. Write a program to initialize three variables a, b and c with 234, 456 and 712 and store the
sum of the last digits of the variables into d and display it.