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

Basic Programming Practice Questions

Uploaded by

b.paul1977
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)
4 views2 pages

Basic Programming Practice Questions

Uploaded by

b.paul1977
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

Basic Input/Output & Data Types:

1. Write a Python program to accept two integers from the user and print their sum.

2. Create a program that takes the radius of a circle as input and calculates its area.

3. Write a program to calculate the area of a rectangle, given its length and breadth.

", )

4. Develop a program to calculate the simple interest given principal, rate, and time

.
5. Create a program that checks if a given number is even or odd.
number = int(input("Enter a number: "))
if number % 2 == 0:
print(number, "is even.")
else:
print(number, "is odd.")

6. Write a program to calculate the percentage of marks obtained in five subjects.


7. Develop a program to convert centimetres to feet and inches.

8. Write a program to check if a given number is a multiple of 7.

You might also like