100% found this document useful (1 vote)
753 views2 pages

XI - Python Practical File List

1. The document is a practical list for the subject of Computer Science for Class 11 from Bloom Public School in New Delhi, India. 2. It contains 21 questions covering topics like introduction to Python, flow of control, mathematical series, number patterns, and algorithms to check number properties. 3. The questions involve writing programs to perform operations like swapping numbers, adding distances and times, working with complex numbers, checking number types, calculating factorials, and printing various patterns.

Uploaded by

Arman Rabbani
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
Download as pdf or txt
100% found this document useful (1 vote)
753 views2 pages

XI - Python Practical File List

1. The document is a practical list for the subject of Computer Science for Class 11 from Bloom Public School in New Delhi, India. 2. It contains 21 questions covering topics like introduction to Python, flow of control, mathematical series, number patterns, and algorithms to check number properties. 3. The questions involve writing programs to perform operations like swapping numbers, adding distances and times, working with complex numbers, checking number types, calculating factorials, and printing various patterns.

Uploaded by

Arman Rabbani
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
Download as pdf or txt
Download as pdf or txt
You are on page 1/ 2

BLOOM PUBLIC SCHOOL

Vasant Kunj, New Delhi


Practical List: 2018-19
Subject: Computer Science
Class: XI
Teacher: V.K. Remya

S.No. QUESTIONS

Introduction to Python
1. Write a program to swap the value of 2 numbers (using 3rd variable).
2. Write a program to swap the value of 2 numbers (without using 3rd variable).
3. Write a program to add two Distances (in feet & inches) and round of the result.
4. Write a program to add two Time (in hours, minutes & seconds) and round of the result.
5. Write a program to add, subtract, multiply & divide two complex numbers.

Flow of Control
6. Write a program to check if a number is even or odd.
7. Write a program to display the largest and smallest of three numbers.
Write a menu driven program to calculate area & perimeter of Circle, Square, Rectangle and
8.
Triangle based on user’s choice.
Write a program that inputs a student’s First Name, Last Name, Roll no., Class, Section and
marks in 5 subjects and calculates his/her Percentage, Maximum marks, Minimum marks
and Grade.
Percentage Grade
9. Above 85 A
75 - 85 B
55 - 75 C
35 - 55 D
Below 35 F
10. Write a program to calculate factorial of a number.
Write a program that inputs a number ‘n’ and power ‘p’ and calculate np. (without using **
11.
operator).
Write a programto display the first ‘n’ terms of the following mathematical series.
𝑛𝑥 𝑛(𝑛−1)𝑥 2
(i) 1, ,
1! 2!
𝑥 𝑥2 𝑥3
12. (ii) 1, , , …
2! 4! 6!
(iii) 𝐴𝑟𝑖𝑡ℎ𝑚𝑒𝑡𝑖𝑐 𝑃𝑟𝑜𝑔𝑟𝑒𝑠𝑠𝑖𝑜𝑛 ∶ 𝑎 + (𝑛−1)d
𝑎 (1−𝑟 𝑛 )
(iv) 𝐺𝑒𝑜𝑚𝑒tric Progression :
(1−𝑟)
Write a program to check if a number is a Perfect number.
13. (Perfect number is a positive integer that is equal to the sum of its positive divisors excluding the number itself.
For example: 6=1+2+3)
14. Write a program to display Fibonacci series. (upto n terms)
15. Write a program to check whether a number is Prime or not.
16. Write a program to calculate the sum of digits of a number.
17. Write a program to calculate reverse of a number.
18. Write a program to check if a number is palindrome.
Write a program to check if a number is Armstrong.
19. (An Armstrong number is an integer such that the sum of the cubes of its digits is equal to the number itself
For example: 153=13+53+33)
Write a program to check if a number is a Krishnamurty number.
20. (A Krishnamurthy number is a number whose sum of the factorial of digits is equal to the number itself.
For example: 145=1!+4!+5!)
21. Write a program to print ‘n’ rows of the following patterns.

(i) (ii) (iii)

(iv) (v) (vi)

(vii) (viii) (ix)

(x) (xi) (xii)

(xiii) (xiv) (xv)

You might also like