PT1/IP11/24-25
DELHI PUBLIC SCHOOL VADODARA
Academic Session 2024-25
Periodic Test 1
Class : XI Time : 90 min
Subject : Informatics Practices (065) M.M. : 40
General Instructions: Total No. of Pages : 02
1) All questions in this paper are compulsory to attempt.
2) Attempt in a sequential order.
3) All parts of questions should be attempted at one place.
Section – A
1. What are comments in Python ? Explain Different types of comments in Python 3
2. Python is an interpreted language. What does this statement mean ? 2
3. Write any four rules for naming the identifiers in Python. 2
4. Write any two minus points of Python. 2
5. Write corresponding Python assignment statements for the following. 2
a. Assign 10, 20, 30 to the variables P, Q and R respectively.
b. Assign the average of above three variables in variable T.
6. Can nongraphic characters be used in Python ? If yes, give example. 2
7. Write a program to calculate compound interest. ?(CI= amt-principle) 2
8. Write output for the following expression ? 2
a. 50 – 10 * 10 / 5 b. print(3*”Yes” +5*”#”)
9. Read the following code. 2
name=input("Enter your name ")
age=input("Enter your age")
print("Hello ", name)
print("you are ",age," years old")
In this code, if “Neeta” is entered as name and 42 is entered as age, it prints following output.
Hello Neeta
You are 42 years old
Rewrite the above code to print following output.
Hello Neeta, you are 42 years old
1
Section – B
10. Rewrite the following code underlining the corrections (if any). 3
LENGTH = float(input(“Enter length ”)
breadth = float(“Enter breadth ”))
area = length * breadth
print(“Area of rectangle ” = area)
11. Write the output for the following code. 3
p=50
p, q = p+10 , p+20
p, q, r = q+20 , p+10 , q-p
print( p, q, r)
12. Explain the difference between 2
(a) Division operator (/) and Floor Division operator (//) with an example.
(b) “3”+”5” and 3 + 5
13. Write output for the following statements 3
a. print(20 > 10 and 40 < 60)
b. print(type(20.5)
c. print(7*((8/5)//2)
14. Write a Python expression for the following mathematical expression. 2
a) | e2 +x|
b) (a2 + b2 + 2ab)
15. State the output for the following print statement. 2
str1="Artificial "
str2="Intelligent"
print("Welcome to ",str1,sep="#",end="\n")
print(str2)
Section – C
16. Mr Sharma has invested Rs. 27500 in 200 shares of XYX co. lyd. And 52500 in 250 shares of ABC Co Ltd.
Write a program to calculate average investment cost per share. 3
17. Write a program to accept a 4 digit number from user and print the sum of all the digits . 3
e.g number entered is 347 so 3+4+7=14
-----End-----