0% found this document useful (0 votes)
9 views2 pages

Class XI Computer Science Holiday Homework

The document outlines a series of holiday homework assignments for Computer Science, focusing on basic Python programming tasks. These tasks include input/output operations, arithmetic calculations, geometric calculations, and control structures. The assignments aim to enhance programming skills through practical exercises involving various mathematical and logical concepts.

Uploaded by

saviomartin208
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)
9 views2 pages

Class XI Computer Science Holiday Homework

The document outlines a series of holiday homework assignments for Computer Science, focusing on basic Python programming tasks. These tasks include input/output operations, arithmetic calculations, geometric calculations, and control structures. The assignments aim to enhance programming skills through practical exercises involving various mathematical and logical concepts.

Uploaded by

saviomartin208
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
You are on page 1/ 2

Holiday homework

Computer Science

1. Input a welcome message and display it.

2. Write a Python program to accepts two integers and print their sum.

3. Write a program to accept the radius of a circle from the user and display its area and Perimeter.

(Area=πr2 and Perimeter=2πr).

4. Write a Python program to accept length and width of a rectangle and compute its perimeter and

area.

5. Write a Python program to find whether a given number is even or odd?

6. Write a Python program to find largest among three numbers.

7. Write a Python program to perform arithmetic calculation. This program accepts two operands and

an operator then displays the calculated result.

8. Write a Python Program to calculate factorial of given number using for loop.

9. Write a program to accept a number from the user and display whether it is a palindrome number or

not.

10. Write a program to display the following pattern :

1 2

1 2 3

1 2 3 4

1 2 3 4 5
11. Enter two numbers and swap them without taking the temporary variable.

12. Enter a number and power then compute the power using an exponential operator.

13. Enter two numbers and perform the floor division.

14. Enter two angles of a triangle and find the third angle.

15. Enter any three sides of a rectangle and find the fourth side.

16. Accept a number, then do the following using shorthand operator:

a. Increment the number by 5

b. Decrement the number by 2

c. Multiply the number with 3

d. Divide the number by 4

17. Conversion programs:

a. Centimeter to Meter and Kilometer

b. Days into Years, Months and weeks

c. Grams to Kilograms

d. Milliliters to liters

18. Write a Python program to find the sum of all even numbers from 1 to 100.

19. Write a Python program to find the sum of the digits of a given number.

20. Write a Python program to generate a list of squares of numbers from 1 to n.

You might also like