BHILAI INSTITUTE OF TECHNOLOGY
::MCA – Autonomous, Exam Nov-Dec 2020::
Subject:Python Lab.
Subject Code : 261193CA Branch : M.C.A. Semester : First
Time : 9:30am- 10:30 am (Writing work) – 1 Hr Date : 20.05.2021 (Thursay)
Question set #1 (Class Rno 1 to 5)
1. Write a Python program to print the sum of digits and reverse of the number.
2. Write a Python program to count number of consonants in a sentence.
Question set #2 (Class Rno 6 to 10)
3. Write a Python program to find whether a number is a prime or not.
4. Write a Python program to Insertion ,deletion in list.
Question set #3 (Class Rno 11 to 20)
5. Write a Python program to print check whether a number is palindrome or not?
6. Write a Python program to create a list and find Sum of elements of that list.
Question set #4 (Class Rno 21to 25)
7. Write a Python program to check whether a number is an Armstrong number or not.
8. Write a Python program to create a tuple and find Sum of elements of that tuple.
Question set #5 (Class Rno 26 to 30)
9. Write a Python program to sort elements of a list.
10. Write a Python program to input two strings and concatenate them.
Question set #6 (Class Rno 31 to 35)
11. Write a Python program to search an integer in a list of integers using Linear Search.
12. Write a Python program to input principal amount, rate of interest and time and calculate simple interest.
Question set #7 (Class Rno 36 to 40)
13. Write a Python program to create a tuple and to find Greatest and Smallest element of tuple.
14. Write a Python program to greatest of 5 numbers.
Question set #8 (Class Rno 41 to 45)
15. Write a Python program to find factorial of a number.
16. Write a Python program to find compound interest
Question set #9 (Class Rno 46 to 48)
17. Write a Python program to find Greatest and Smallest element of list.
18. Write a Python program to count number of vowels in a sentence.