Practical Based Question
• Write a program to obtained principal amount, rate of interest and time from user and compute simple
interest.
• Write a program to obtain x, y, z from user and calculate expression: 4x4 + 3y3 + 9z +6.
• Write a program that read a number of second and prints it in from: mins and seconds, e.g. 200 second
are print as 3 mins and 20 second.
• Write a program to take a 3-digit number and print the reversed number. That is, if the input given is
251, the program print 152.
• A year is a leap year if it is divisible by 4, except that year divisible by 100 are not leap year unless they
are also divisible by 400. Write a program that asks the user for a year and prints out whether it is a leap
year or not.
• Write a program to input length of three sides of triangle. Then check if these sides will form a triangle
or not. (Rule is: a + b>c; b +c >a; c + a >b)
• Write a program that takes an integer input from the user and checks whether the number is palindrome
or not.
• Program to read a string and display it in reverse order – display one character per line.
• Write a program to print the Fibonacci series till n terms, where n is entered by the user.
• Write a program that read a line and prints its frequency chart like:
1. Number of Uppercase letters
2. Number of Lowercase letter
3. Number of Alphabets
4. Number of Digits
• Write a program to search for a given element from a list and display its index value.
• Write the function Name And their description for the following task:
1. Function to add a list element at the end of the existing list.
2. Function to remove all the elements of the dictionary.
3. Function to count the number of characters in string.
4. Function to find the ASCII code of given character.
5. Function to find index value of an element of the list.
• Write the difference between following terms-
1. Compiler Time And Run time Error.
2. ‘/’ and ‘//’ (With Suitable Example)
3. List And Tuple (With Definition and example)
4. Find() function and index() function with example.
1. Write the sort note input and output device with their fig.
2. Write the main rule of python variable with suitable example.
3. Discuss AND, OR, NOT, and XOR gate with fig. and truth table.
4. Write the main properties of string and list in python.
5. Discuss the nested element in list and tuple.
6. Discuss the system software.
7. Drow the Circute diagram of following expression:
1. X’Y’Z’ +XY+(XY)’ 2. X(Y+Z) + ZXY + X’Y’ + x’(YX)’
8. Discuss the following term:
1. Application Software [Link] Processor
3) Compiler 4) Cache Memory
9. Prove the De-morgan Theorem By Truth table.
10. Write the sort note the following term..
1) Virus 2) Worms 3)Cookies 4). Cybercrime
5) Cyber Stalking 6)