Programming in Python BCA paper Nov 2021

  • Subject Code: - UGCA 1914
  • Subject Name: - Programming in Python
  • Date of Examination: - Nov 2021
  • Class: - BCA 3rd
  • Exam Mode: - Online

Instructions to Candidates

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

QUESTIONS

  1. What is role of Path Variables in installing Python? Discuss different applications and features of Python language. What are the advantages of Python over C/C++ Language?
  2. What are the common built-in data types in Python? What is the difference between list and tuples in Python? Write suitable Python code to illustrate.
  3. Define the need of Multithreading in a programming language. How can it improve performance of the Program? How do you achieve multithreading in Python? Write a Python Program to illustrate the benefit of Multithreading.
  4. What is a lambda function? Give an example of when it’s useful in a program and when it’s not. Write in detail about declaration of functions and their types in Python.
    1. What are the different attributes of a Python class? How do they help in accessing an object?
    2. Write a Python program to check whether the string is Palindrome or not.
    3. Write a Python Program to Parse a String to a Float or Integer.
    1. Write a Python program to Count the frequencies in a list using dictionary.
    2. Write a Python program to convert time from 12 hour to 24 hour format.
    3. Write a Python Program to print all prime factors of a given number.
    1. Write a Python program to Count the Number of occurrences of a key-value pair in a text file.
    2. Write a Python program to reverse the content of a file and store it in another file.
  5. What advantages do Numpy arrays offer over (nested) Python lists? Explain inheritance and Polymorphism in Python with an example.

ANSWERS:

Q1.

Top

Comments

Popular posts from this blog

Programming in Python MCA paper Nov 2021

Advanced JAVA MCA paper May 2021

PC Assembly and Troubleshooting BCA paper Nov 2021