Programming in Python MCA paper Nov 2021
- Subject Code: - PGCA 1951
- Subject Name: - Programming in Python
- Date of Examination: - Nov 2021
- Class: - MCA 1st
- Exam Mode: - Online
Instructions to Candidates
- Attempt any FIVE question(s), each question carries 14 marks.
QUESTIONS
- Write a function in Python, INSERTQ(A,data) and DELETEQ(A) for performing insertion and deletion operations in a Queue. A is the list used for implementing queue and data is the value to be inserted.
- How can you traverse, insert and delete elements from an array using inbuilt functions. Elaborate using Python code.
- Write a Python program to delete the first occurrence of the given word in a List, where words can repeat.
- Write a Python program to check whether a string is a palindrome or not using recursion.
- Write a Python program to sort a list according to the length of the elements.
- Define Exception. How can you catch a specific type of exception in Python? Elaborate, How can you assign a name to the Exception object in Python? List and explain different types of exceptions in Python.
- Write an example of a class in Python. Explain concept of Inheritance with example in Python. How can it achieve data abstraction? Discuss.
- What are the various String operators in Python? Illustrate.
- How can you create or use calendar class in Python? Write code for creating calendar using Python.
- Write a Python program to order Tuples using an external list given during run time.
- What is need of dictionaries? Write a Python program to read list of Dictionaries from file.
- What is the need of creating modules in Python? How they are different from functions? Illustrate using Python code. How will you search path for a module? Write advantages of Python packages.
- Why do we need environment variables in setting up Python?
- Differentiate between Associative and Non Associative Operators.
- What is the need of Data type conversion? Write Python code to differentiate between implicit and explicit data type conversion.
Comments
Post a Comment