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
- Attempt any FIVE question(s), each question carries 12 marks.
QUESTIONS
- 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?
- 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.
- 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.
- 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.
- What are the different attributes of a Python class? How do they help in accessing an object?
- Write a Python program to check whether the string is Palindrome or not.
- Write a Python Program to Parse a String to a Float or Integer.
- Write a Python program to Count the frequencies in a list using dictionary.
- Write a Python program to convert time from 12 hour to 24 hour format.
- Write a Python Program to print all prime factors of a given number.
- Write a Python program to Count the Number of occurrences of a key-value pair in a text file.
- Write a Python program to reverse the content of a file and store it in another file.
- What advantages do Numpy arrays offer over (nested) Python lists? Explain inheritance and Polymorphism in Python with an example.
Comments
Post a Comment