E-57 ASSIGNMENT QUESTIONS
E-57 ASSIGNMENT QUESTIONS
Simple If:
1. Wap to print the square of a number only if it is even.
2. Wap to check whether the character is vowel or not.
3. Wap to print Ascii value of a character only if it is upper case.
4. Wap to print the cube of a number only if it is divisible by 9 or 6.
5. Wap to check whether the given integer is 3 Digit number.
6. Wap to check whether the last digit of a given number is 5.
7. Wap to check whether the given data is float.
8. Wap to check whether the data is single value data.
9. Wap to check whether the given character is digit or not.
10.Wap to check whether the given integer is multiple of 3.
If else:
11.Wap to check whether the data is mutable or not.
12.Wap to check whether the given character is digit or not.
13.Wap to check whether the given character is special or not.
14.Wap to check whether a list consists of middle value or not.
15.Wap to check whether the number is even or odd.
16.Wap to check whether the given data is mutable or immutable.
17.Wap to check whether 2 values are pointing to the same memory
or not.
18.Consider a tuple of length 2 and check whether the tuple is
homogenous or not.
19.Wap to check whether the string is palindrome or not.
20.Wap to check whether the number is positive or negative.
Elif:
21. Wap to check whether the char is uppercase, lowercase, digit or
special char.
22. Wap to check whether the given integer is single digit or two
digits or three digits or more than three digits.
23.Wap to check the given points are lying in which quadrant.
24. Wap to find the greatest of 3 numbers.
25. Wap to find the smallest of 3 numbers.
26.Wap to check the relation between two integer numbers.
27. Consider a character input if it is uppercase convert it into
lowercase, if it is lowercase convert it into uppercase, if it is digit print
the reminder when it is divided by 3 else if it is special character print
it’s ASCII value.
28.Wap to print ‘Fizz’ if the given number is multiple of three print
‘buzz’ if the given number is multiple of 5 and print ‘Fizzbuzz’ if the
number is multiple of both 3 and 5.
Nested if:
29.Wap to login into the Instagram with valid username and
password.(enter password only if the user name is valid)
30. Wap to print the middle value of a list only if it is string.
31.Wap to check whether the character is vowel or consonant.
32.Wap to find the greatest of 4 numbers.
33. Wap to print the value as it is only if the length of the value is
even.
34.Wap to print the last value of a list only if it is palindrome string
starting with vowel.
35.Wap to print the reversed string only if it is starting with
vowel ,ending with consonant and having a middle value.
37.Wap to find the smallest of 4 numbers.
38. Write a program to print middle Character of the given string only
if it is upper Case Character.