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

  1. Attempt any FIVE question(s), each question carries 14 marks.

QUESTIONS

    1. 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.
    2. How can you traverse, insert and delete elements from an array using inbuilt functions. Elaborate using Python code.
    1. Write a Python program to delete the first occurrence of the given word in a List, where words can repeat.
    2. Write a Python program to check whether a string is a palindrome or not using recursion.
    3. Write a Python program to sort a list according to the length of the elements.
  1. 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.
  2. Write an example of a class in Python. Explain concept of Inheritance with example in Python. How can it achieve data abstraction? Discuss.
    1. What are the various String operators in Python? Illustrate.
    2. How can you create or use calendar class in Python? Write code for creating calendar using Python.
    1. Write a Python program to order Tuples using an external list given during run time.
    2. What is need of dictionaries? Write a Python program to read list of Dictionaries from file.
  3. 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.
    1. Why do we need environment variables in setting up Python?
    2. Differentiate between Associative and Non Associative Operators.
    3. What is the need of Data type conversion? Write Python code to differentiate between implicit and explicit data type conversion.

ANSWERS:

Q1.

Top

Comments

Popular posts from this blog

Advanced JAVA MCA paper May 2021

Computer Networks BCA paper Nov 2021