CLASS XI – Computer Science
By: Amit Kumar Verma
PYTHON
PROGRAMMING QUESTIONS
1. Write a program to print Factorial of a Number.
2. Write a program to print the Fibonacci series.
3. Write a program to check whether a Number is a Palindrome.
4. Write a program to find Sum of Digits of a Number.
5. Write a program to read an integer and print its multiplication table.
6. Write a program to print Sum of first N natural numbers.
7. Write a program to find the given Numbers is Armstrong Number or not.
( 1,153,370,371,407)
8. Write a program to generate the sequence: -5,10, -15,20, -25 ------up to n terms.
9. Write a program to check entered number is whether prime or not.
10.Write a program to print occurrence of a particular digit in a number.
11. Write a program to convert number from decimal to binary.
12. Write a program to convert number from Decimal to Octal.
13. Write a program to print following Pyramid:
*****
****
***
**
*
14. Write a program to print character pyramid as given below:
A
BC
DEF
GHIJ
KLMNO
15. Write a program to print following Pyramid:
*
* *
* * *
* * * *
* * * * *
16. Write a program to print following Pyramid:
*
**
***
****
*****
*****
****
***
**
*
17. Write a program to print following Pyramid:
**********
**** ****
*** ***
** **
* *
18. Write a program to print following Pyramid:
1
123
12345
1234567
123456789
19. Write a program to print following Pyramid:
1 1
12 21
123 321
1234 4321
1234554321
20. Write a program to print following Pyramid
ABCDEEDCBA
ABCD DCBA
ABC CBA
AB BA
A A
21. Write a program to find sum of the square of all natural numbers from 1 to N.
Series: 12 + 22 + 32 + 42 +..N2
22. Write a program to find the sum of Natural Number/Factorial of Number of all
natural numbers from 1 to N.
Series: 1/1! + 2/2! + 3/3! + 4/4! + ... N/N!
23. Write a program to find perfect number given by user.
24. Write a program to input the value of x and n and print the sum of the following
series.
1+x+x2+x3+x4+. .......... xn
25. Write a program to input the value of x and n and print the sum of the following
series
1-x+x2-x3+x4-. .......... xn
26. Write a program to input the value of x and n and print the sum of the following
series
27. Write a program to input the value of x and n and print the sum of the following
series
28. Write a program to input the value of x and n and print the sum of the following
series
29. Write a program to input the value of x and n and print the sum of the following
series
30. Write a program to find (calculate) the sum of series 1+11+111+1111+... till N
terms
By: Amit Kumar Verma