You are on page 1of 2

PRACTICAL QUESTIONS

CLASS – XI 2021-22
TERM – I

You are required to write the programs in your practical copy along with their outputs and submit to me
by 30th November 2021.

1. WAP to display a menu for calculating Area or Perimeter of a Circle.


[ ( A = 3.14159 * R2 ) ( P = 2 * 3.14159 * R ) ]

2. WAP to print whether a given character is an uppercase or a lowercase or a digit or any other
character.

3. Write a program in Python to input name and basic salary of an employee. Find the gross pay of the
employee as per the following allowances and deductions. Use meaningful variables.

Dearness Allowance = 25% of the Basic Pay.


House Rent allowance = 15% of Basic Pay.
Provident Fund = 8.33% of Basic Pay.
Net Pay = Basic Pay + Dearness Allowance + House Rent Allowance
Gross Pay = Net Pay – Provident Fund

4. A cloth showroom has announced the following festival discounts on the purchase of items, based on the
total cost of the items purchased.

Total Cost Discount ( in percentage )


Less than Rs.2000 5%
Rs. 2001 to Rs. 5000 25%
Rs. 5001 to Rs. 10000 35%
Above Rs. 10000 50%

Write a program to input the total cost and to compute and display the amount to be paid by the customer
after availing the discount.

5. WAP to perform the following calculations :


(a) Calculation of Total and Average Marks
Total = English + Physics + Chemistry + Maths + IP
Average = Total / 5
(b) Displaying the grade ( A/B/C/D ) based on the following :

Average Grade
>= 85 A
>= 70 B
>= 50 C
>= 40 D
Otherwise Fail

6. WAP to check whether any number is palindrome or not.

7. WAP to calculate the Sum-of-Digits of any number(FOR LOOP).


8. WAP to find the sum of all odd digits of a number
9. WAP to check whether any number is Armstrong number or not.

10 Write a menu driven program to perform the following :


1. To print the series 0, 3, 8, 15, 24 . . . n terms ( value of ‘n’ is to be an input by the user.)
2. To find the sum of the series given below :
S = ½ + ¾ + 5/6 + 7/8 + . . . . + 19/20

11. Write a menu driven program to accept a number from the user and check whether it is a ‘BUZZ’ number or
to input a number and print whether the number is a ‘SPECIAL’ number or not or to input a number and
display all the prime factors of the number.

12. Write a program in Python to draw the following pattern(WHILE LOOP) :

1
4 4
9 9 9
16 16 16 16
13. Write a program in Python to draw the following pattern(WHILE LOOP) :

1
23
456
7 8 9 10
14. Write a program in Python to draw the following pattern(WHILE LOOP) :

A
AB
ABC
ABCD
15. Write a program in Python to draw the following pattern(WHILE LOOP) :
* * ** * * * *
*** ***
** **
* *
** **
*** ***
********

16. Write a program to input a list of integers and display the sum and average of all the perfect numbers in the
list.

17. L is a non empty list of integers. Print the smallest and largest integers of L along with their index.

18. Python Program to Generate a Dictionary that Contains Numbers (between 1 and n) in the Form (x, x*x).

19. Python Program to Check if a Given Key Exists in a Dictionary or Not

20. Python Program to Create a Dictionary with Key as First Character and Value as Words Starting with that
Character.

You might also like