17MCA26 Python Programming Laboratory syllabus for MCA



A d v e r t i s e m e n t

Module-1 Laboratory Experiments 0 hours

Laboratory Experiments:

1.Write a program to sum all the elements from n1 to n2 where n1 and n2 are positive integers

2. Input an array of n numbers and find separately the sum of positive numbers and negative numbers.

3. Write a program to search an element using linear search

4. Write a program to search an element using binary search.

5. Write a program to simulate stack.

6. Using a stack evaluate an arithmetic expression.

7. Write a program to multiply two matrices.

8. Write a program to find the roots of a quadratic equation

9.Write a program to Insert a number in a sorted array.

10. Write a Python Program to check whether the given string is palindrome or not using built in string manipulation methods.

11. Write a Python Program to read a word and prints the number of letters, vowels and percentage of vowels in the word using dictionary

12. Write a Python Program to check a given sentence is a pangram or not using function/Module.

13.Write a Python Event driven Program for file operations Press 1: to open file in read mode 2: open the file in write mode 3: current position of the file pointer #4: Reposition the pointer at the beginning 5: exit.

14.Write an Object oriented Python program to create two Time objects: currentTime, which contains the current time; and breadTime, which contains the amount of time it takes for a bread maker to make bread. Then we'll use addTime to figure out when the bread will be done. Write the printTime function to display the time when the bread will be done by the bread maker.

 

Note 1: InthepracticalExaminationeachstudent has to pick onequestionfroma lot of all14 questions.

Note 2: Change of program is not permitted in the Practical Examination.

Last Updated: Tuesday, January 24, 2023