0% found this document useful (0 votes)
0 views

List of Practical Questions (1)

Uploaded by

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

List of Practical Questions (1)

Uploaded by

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

Computer Science

List of Practical Questions for class XI


1. WAP to accept your name and height (in inches), convert it into feet and inches and display it in the
following format:
Hello I am <nm>, and my height is <ft>feet and <inc> inches.
Here nm, ft and inch are the variables holding name, height in feet and inches.
2. WAP to accept Principal, Time and Rate. The program should display the Compound Interest
calculated using the following formula:
A=(1+R/100)T
CI=A-P
3. WAP to calculate the Radius of the sphere whose area(4πr2) is entered by the user.
4. WAP to accept 3 coefficients of a quadratic equation and display its roots.
Suppose the equation is : ax2+bx+c, where a, b and c is entered by the user, then the roots of the
equation is calculated as:
Root1=(-b+√b2-4ac)/2a
Root2=(-b-√b2-4ac)/2a
5. WAP to take two inputs, day and month from the user. The program should calculate which day of
the year the given date is. Take days for all the month as 30 for simplicity. For eg., if the user enters
day=3 and month=2, then the output must be :
Day of the year: 33
6. WAP that accepts the number X and using appropriate Menu perform the following tasks:
a. Total number of digits in it. e. New number Y, which contains LSD
b. Reversed number. at Hundreds place, total number of
c. Whether it is palindrome or not. digits at tens place and MSD at ones
d. Sum of all digits. place.

7. WAP that accepts some numbers and display the following data. The process should continue when
the user enters 0:
a. Sum of all the even number c. Average of the numbers entered.
entered. d. Largest and smallest number
b. Total number of odd numbers entered.
entered. e. All the numbers that ends with 4.
8. WAP that accepts a number and displays its factorial in the following format.
Suppose user enters 5, the output should be:
5 ! = 5 X 4 X 3 X 2 X 1 = 120
9. WAP that displays the following pattern:
c. e.
a.

d. f.
b.
10. WAP that accepts a string and capitalize every alternate character. The program should display the
original and new strings.
11. WAP that accepts emailIDs of n users. Create two lists that stores user ID and domain names
separately.
12. WAP that accept a line and display each word on separate lines.
13. WAP to accept an address containing pincode. Extract the pincode from the address and display
them. The process should continue till the user presses ‘Y’ or ‘y’.
14. WAP that accepts a string. Extract all the digits from the string.
If there are digits, display:
a. Sum of all the digits entered.
b. Print:
i. Original string
ii. Digits
iii. Sum of digits
If there are no digits,
a. Print <original string > has no digits.
15. WAP that accepts WAP that accepts a list & determine whether the no is present in 1 st half or the 2nd
half of the list.
16. WAP that accepts WAP that accepts a list & interchanges the 1st half elements with the 2nd half
elements of the list.
17. WAP to create a list of strings. The list must create a new list same as he first with its 1 st character
removed.
18. WAP to accept a list of numbers & perform left shift.
19. WAP to accept a list of numbers & perform right shift.
20. WAP to accept the nested tuple and print mean of each nested tuple. The program must then display the
mean of each mean calculated.
21. WAP to accept roll number, name and marks of n students. Store the data in the form of Dictionary in
which keys are roll number and values are in the form of list of name and marks. The program must then
ask the roll number and display its corresponding marks.
22. Given a dictionary:
X={ k1 : v1 , k2 : v2 , k3 : v3 }
Create another dictionary with opposite mapping. Ie.
Y={ v1 : k1 , v2 : k2 , v3 : k3 }
23. WAP to accept the string and display total number of occurrences of each character.
24. A dictionary D1 has values in the form of list of numbers write a program to create a new dictionary D2
having same keys as D1 one but values are as sum of list of values.
25. WAP to perform to perform sorting on list of numbers.

Important Instructions Regarding Practical File


1. Every student will make his/her practical and Project file separately.
2. Footer section must contain his/her roll number and name (left aligned) and Page number (Right
aligned)
3. The practical file must have beautiful FRONT PAGE and INDEX(typed)
4. All students must make the INDEX in the following format:

INDEX

SNO Topic No of Page No Date of Submission Signature


Programs
1 Data Handling 2
2 Flow of control 3
3 Strings 5
4 Lists 5
5 Tuples 5
6 Dictionaries 5
Total Programs 25
5. Every student will make the project in the group of two. Same project may be continued in class XII.
6. Once the project is selected no one is allowed to change it without the teacher’s consent, otherwise
the project will be rejected and ZERO marks will be awarded for the same.
7. The project file must have beautiful FRONT PAGE, ACKNOWLEDGEMENT and CERTIFICATE .
8. The format of ACKNOWLEDGEMENT and CERTIFICATE is as follows:
26.

You might also like