0% found this document useful (0 votes)
18 views5 pages

Student Marks Pass/Fail Program

The document contains a series of programming questions and tasks that require writing simple Python programs. Each question focuses on basic programming concepts such as input/output, arithmetic operations, conditionals, and calculations related to geometry and finance. The tasks range from creating a greeting message to calculating areas, checking voting eligibility, and determining grades.

Uploaded by

vedant ved
Copyright
© All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
18 views5 pages

Student Marks Pass/Fail Program

The document contains a series of programming questions and tasks that require writing simple Python programs. Each question focuses on basic programming concepts such as input/output, arithmetic operations, conditionals, and calculations related to geometry and finance. The tasks range from creating a greeting message to calculating areas, checking voting eligibility, and determining grades.

Uploaded by

vedant ved
Copyright
© All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd

Ques1.

Simple Greeting Program: Write a program to take your name as input and print a greeting message like,
"Hello, [Your Name]! Welcome to Python Programming."

Ans1.

Ques2. Product of Two Numbers: Write a program to input two numbers from the user and print their product.

Ans2.

Ques3. Simple Calculator: Create a program that takes two numbers and an operator (+, -, *, /) as input and
performs the respective calculation.

Ans3.
Ques4. Area of a Circle: Write a program to input the radius of a circle and calculate its area. Use the formula:
Area=π×radius2 (Take π=3.14).

Ans4.

Ques5. Area of a Rectangle: Write a program to input the length and breadth of a rectangle and calculate its area.

Ans5.

Ques6. Perimeter of a Rectangle: Write a program to input the length and breadth of a rectangle and calculate its
perimeter. Use the formula: Perimeter=2*(length + breadth)

Ans6.
Ques7. Voting Eligibility: Write a program to input a person’s age and check if they are eligible to vote (age >= 18).

Ans7.

Ques8. Odd or Even: Write a program to check whether a given number is odd or even.

Ans8.

Ques9. . Pass or Fail: Create a program to input marks of a student. If the marks are 33 or more, print "Pass";
otherwise, print "Fail."

Ans9.
Ques10. Grade Assignment: Create a program to assign grades based on marks: 1. Marks >= 90: Grade A 2. Marks >=
75 and < 90: Grade B 3. Marks >= 50 and < 75: Grade C 4. Marks < 50: Grade D

Ans10.

Ques11. Number Comparison: Write a program to input three numbers and find the largest number among them.

Ans11.

Ques12. Discount Eligibility: A shop gives a 10% discount if the total purchase amount is ₹5000 or more. Write a
program to input the total purchase amount and calculate the final amount after the discount (if applicable).

Ans12.
Ques13. Leap Year Check: Write a program to input a year and check whether it is a leap year.

Ans13.

Ques14. Average Calculation: Write a program to input three numbers and calculate their average.

Ans14.

Ques15. Simple Interest: Write a program to take input the principal, rate of interest and time from the user, and
calculate the simple interest and amount and print the result

Ans15.

You might also like