0% found this document useful (0 votes)
15 views

Class 11 Practice Question

..... I love it Questions
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
15 views

Class 11 Practice Question

..... I love it Questions
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 5

Practice Question

1.Write a Python program to accept two integers


and check whether they are equal or not.
Test Data : 15 15
Expected Output :
Number1 and Number2 are equal

2.Write a Python program to check whether a


given number is even or odd.
Test Data : 15
Expected Output :
15 is an odd integer
3.Write a program in python to input a three-
digit number and if the sum of digit is even
then print the product of number else print
the square of the sum?

4.Write a Python program to check whether a


given number is positive or negative.
Test Data : 15
Expected Output :
15 is a positive number

5.Write a Python program to find whether a


given year is a leap year or not.
Test Data : 2016
Expected Output :
2016 is a leap year.
6.Write a program to input a sentence and
capitalize each word present in it?

7.Write a Python program to read the age of a


candidate and determine whether he is eligible
to cast his/her own vote.
Test Data : 21
Expected Output :
Congratulation! You are eligible for casting you
r vote.

8.Write a Python program to read the value of an


integer m and display the value of n is 1 when
m is larger than 0, 0 when m is 0 and -1 when
m is less than 0.
Test Data : -5
Expected Output :
The value of n = -1
9.Write a program in python to input two
different number and print the table of the
sum upto 10 times.

10. Write a Python program to accept the


height of a person in centimeters and
categorize the person according to their height.
Test Data : 135
Expected Output :
The person is Dwarf.
11. Write a program to input a number and
check whether number is arms strong or not?
Ex: 153=13+53+33

12. Write a Python program to find the largest


of three numbers.
Test Data : 12 25 52
Expected Output :
1st Number = 12, 2nd Number = 25,
3rd Number = 52
The 3rd Number is the greatest among three

13. Write a Python program to accept a


coordinate point in an XY coordinate system
and determine in which quadrant the
coordinate point lies.

14. Check if the String is Symmetrical or


Palindrome
15. Print i’th Character From String in Python
16. Find the Length of a String
17. Number Spaces in String.
18. Print Even Length Words in a String
19. Print First Half of the String in Uppercase
and the Next Half in Lowercase
20. Capitalize the Alternative Characters of the
String
21. First and Last Characters of Each Word in
a String
22. Count the Number of Digits, Alphabets,
and Other Characters in a String
23. Check if a String Starts With the Alphabet
and Has Digits
24. Count the Number of Vowels in a String
25. Write a program to input a sentence and
find out how many times word “the ”is present
in it?
26. Remove All Duplicate Words From a Given
String
27. Print the Character with Maximum
Frequency in a String
28. Write a program to input a name and print
the factorial of the number?
29. Print the Frequency of Each Character in
String
30. Create Random Strings Until a Given
String is Generated
31. Find the Words That Are Greater Than
Given Length k
32. Write a program in python to input a 5-
digit number and print the factorial of the
number.
33. Write a program in python to input three
different number and print the largest
number?
34. Write a program in python to input two
number and find the difference between two
Number? (Note: Difference should be Positive)
35. Write a program to input a sentence and
find out how many words are present in it?
36. Write a program to print a Fibonacci
Series:
1, 1, 2, 3, 5, 8, 13, 21, ………….n

You might also like