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

Class Xi Computer Practical Assignment Current 1

Uploaded by

mahidaralami221
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)
3 views3 pages

Class Xi Computer Practical Assignment Current 1

Uploaded by

mahidaralami221
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

DURGAPUR PUBLIC SCHOOL

CLASS-XI SESSION(2026-2027)
SUBJECT-COMPUTER SCIENCE PRACTICAL ASSIGNMENT

1. Write a program in python to input a value in kilometers and convert it into miles
(1 km=0.621371 miles)
2. Write a program in python to input a student marks in three subject average of
hundred and print the total marks and percentage.
3. Write a program in python to read two numbers and print their quotient and remainders.
4. Write a program in python to access the height in centimeter and convert it into
feet and inches.
5. Write a program in python that accept the age and print if the person is eligible to vote or not.
6. Write a program in python to accept the year and check if it is a leap year or not.
7. Write a program in python to input a number and check whether it is positive,
negative or zero.
8. Write a program to find the grade of a student when grades are allocated as given in the table
below:

Percentage of Marks Grade

Above 90 % A

80% to 90% B

70% to 80% C

60% to 70% D

Below 60% E

9. Write a program in python to compute simple interest and compound interest.


10. Write a program in python to print whether a given character is an upper case, lower case, digit
or any other character.
11. Write a program in python to calculate the sum of the following series:-
S=(1)+(1+2)+(1+2+3+……………+n)
12. Write a program in python that reads the string and check whether it is a Palindrome string or not.
13. Write a program in python that takes a string with multiple words and then capitalizes the Ist letter
of each word and forms a new string out of it.
14. Write a program in python to compute (a+b)3 using the formula a3+b3+3a2b+3ab2.
15. Write a short program to print the following series:
(i) 1 4 7 10 ………. 40
(ii) 1 -4 7 -10 ………….. -40

16. Write programs using nested loops to produce the following pattern: (i)
(i) A (ii) 2
AB 4 4
ABC 6 6 6
ABCD 8 8 8 8
ABCDE
ABCDEF
17. Write a program in python to display the second largest elements of a given list.
18. Write a program in python to search an element from the given list.
19. Write a program in python to input list overlapping keys of two dictionaries.
20. Write a program to convert a number entered by the user into its corresponding number in words.
21. Write a program that input two tuple seq_a and seq_b and print True if every element in seq_a is
also an element of seq_b , else print False.
22. Write a program to check the mode of a tuple is actually an element with maximum occurrences.
23. Write a program to create a nested tuple to store roll number, name and marks of students.
24. Write a program that lists the over lapping keys of the two dictionaries if a key of d1 is also a key
of d2, the list it.

25. Find the output of the following code:-


(i) a, b, c = 1, 1, 2
d=a+b
e = 1.0
f = 1.0
g = 2.0
h=e+f
print(c = d)
print(c is d)
print(g == h)
print(g is h)

(ii) my_list = ['p', 'r', 'o', 'b', 'l', 'e', 'm']


my_list [2:3] = []
print (my_list)
my_list[2:5] = []

(iii) List1 = [ 13, 18, 11, 16, 13, 18, 13]


print ([Link](18))
print([Link](18))
[Link]([Link](13))
print(List1)

(iv) ntpl = ("Hello", "Nita", "How's", "life?")


(a, b, c, d) = ntpl
print ( "a is:", a)
print("b is:", b)
print("c is:", c)
print("d is:", d)
ntpl = (a, b, c, d)
print (ntpl[0][0] + ntpl[1][1], ntpl[1])

(v) Consider the following code and then answer the questions that follow:
myDict = {'a' : 27, 'b' : 43, 'c' : 25, 'd' : 30}
valA = ''
for i in myDict :
if i > valA :
valA = i
valB = myDict[i]
print (valA) # Line 1 (i) What output does Line 1 produce?
print (valB) # Line 2 (ii) What output does Line 2 produce?
print (30 in myDict) # Line 3 (iii) What output does Line 3 produce?
myLst = list(([Link]()))
[Link]() # Line 4 (iv) What output does Line 4 produce?
print (myLst[-1])

NOTE:- Practical work should be done in shoelace file. Ruled line Programs and white
page Output.

You might also like