0% found this document useful (0 votes)
39 views3 pages

Informatic Practices Class 11 Worksheet

Uploaded by

anamikaub
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
39 views3 pages

Informatic Practices Class 11 Worksheet

Uploaded by

anamikaub
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 3

GULF INDIAN SCHOOL , KUWAIT

Class XI –Informatics Practices HOLIDAY HOMEWORK(2024-2025)

Name: ___________________________ Class:_____________ Roll No:_____________

Q1.Write the Python script to accept the number of days and display the
result after converting it into the number of years,number of months and
the remaining number of days.
Q2. Write the python script to input employee code,employee name and
basic salary of an employee ,calculate da,hra,pf,gross salary and Net
salary.Print all the calculated values. Formula given :
da=25% of basic salary
hra=15% of basic salary
pf=9% of basic salary
gross salary=basic salary+da+hra
net salary=gross salary - pf
Q3.A jewellery shop charges 20% making charges on gold price for
purchasing any ornament. However, the shopkeeper offers a special
discount 30% to their customers on making charges.Write the python script
to input gold price/gm and weight of the ornament.Calculate and
display actual cost of the ornament,actual making charges,discount on
making charges,amount to be paid by the customer.
[Sample input: gold price/gm = 5200
weight of the ornament=10.4
Sample output:
Actual cost=54080
Actual making charges=10816
Discount on making charges=3244.8
Amount to be paid by the customer=61651.2]
using if statements
Q4.Program to input three unequal numbers and display the second
smallest number.
Q5. An air conditioned bus charges fare from the passengers based on
the distance travelled as per tariff given below:

Distance travelled(km) Fare(Rs)

upto 10 8 Rs/km

11-20 9 Rs/km

21-30 11 Rs/km

>31 14 Rs/km

1
Write the Python script to input the distance travelled by a
passenger.Calculate and display the fare to be paid.
Q6.A CBSE school displays a notice on the school notice board regarding
admission in Class XI for choosing the streams according to the marks
obtained in English,Maths and Science in Class 10 Examination.

Marks obtained in different subjects Stream

average of English,Maths and Science>=80% Pure science

average of English and Science>=80% , Bio science


Maths>=60%

average of English ,Maths and Science<60% Commerce


Write the Python script to input the marks in English,Maths and Science
and display the appropriate stream allotted to the candidate.
Q7.The Electricity Board charges for electricity from their consumers
according to the units consumed (per month) as per the following tariff :

Units consumed Charges

Up to 100 units 5.20 Rs /unit

100-300 units 6.50 Rs /unit

300-500 units 7.40 Rs /unit

>500 units 8.30 Rs /unit

Write the Python script to input the customer name ,consumer number ,
month and units consumed. Calculate and display the electricity bill with
the details.
Q8.A cloth showroom announced the following festival discounts and
assured gifts on the purchase of items,based on the total cost of the items
purchased:

Total Cost(Rs) Discount(%) Assured Gift

<=2000 6 Wall Clock

2001-5000 8 School Bag

5001-10000 10 Electric Iron

>10000 15 Wrist Watch

Write the Python script to input the total cost of the item purchased.
Calculate and display the amount to be paid along with the assured
gifts.

2
using for loop
Q9. Program to display the factors of a two digit number entered.
Q10.Program to display the sum of any ten numbers entered by the user.
Q11.Program to input ten different numbers. Display the greatest and
smallest numbers among them.
Q12.Program to display the first ten numbers of the series 1,2,4,7,11,...
Q13.Program to display the first ten numbers of the series 2,5,10,17,...
using while loop
Q14. Program to display the first ten odd numbers starting from a number
entered by the user.
Q15. Program to input a number and check whether it is a ‘Niven number
‘or not.(A number is said to be Niven when it is divisible by the sum of the
digits. Eg:- number -126,sum of digits=1+2+6=9 and 126 is divisible by 9).
Q16. Program to input a number and check whether it is a ‘Spy number
‘or not.(A number is said to be Spy if the sum of its digits equals to the
product of its digits.Eg:-number-1124,sum of digits=1+1+2+4=8,product of
digits=1*1*2*4=8)
Q17.Program to input a number and check whether it is a ‘Perfect
number ‘or not.(A number is said to be perfect ,if the sum of its factors
including1 and excluding the number itself is equal to the original
number.Eg:-number -6 ,factors -1+2+3=6)
Q18.Program to input a number and check whether it is an ‘Automorphic
number ‘or not.(An automorphic number is the number which is
contained in the last digits(s) of its square.Eg:-number -25 ,its square is 625
and 25 is present as the last two digits.)
List Manipulation
Q19.Given a list ,L1=[“Practice”,”makes”,”a”,”man”,”perfect”].
Write suitable python statements to perform the following tasks:
a)Erase string “a” from the list.
b)Add an element “person” at the end of the list.
c)Slice the list from index 1 to 3.
d)Return the index of the string “makes”.
e)Arrange the list elements in alphabetical order.
f)Consider another list L2=[“ that”,[ “is “,”my”], “way”].Update the list L1 by
adding the list L2 at the end of L1.
g)What will be the length of the updated list?
h)What effect will be done on the list L , if the following code is executed?
del L1[4:6]
print(L1)
i)What will be the output of the following print statement?
print(L1[0][1] in L1[4][2])
j)What will be the output of the following print statement?
print(L1[0][2:5]+" " +L1[4])

………………………………………………………………………………………………

You might also like