BCA / B.Tech 5 min read

BCA || Python 2025 Paper | MDSU Exam Paper

BCA || Python 2025 Paper | MDSU Exam Paper

Part-A

1. What does the following program print?

def add (x, y):

return x + y

print (add (10,5))

2.Define the term "variable" in the context of python programming
3.What is the difference between is and operators in Python?
4. Name any two immutable data types in Python.
5. What is the default return type of the input() function in Python?
6. What is the output of this code?

Ist [2, 4,6]
Ist. append (8)
print (1st)

7.What is the purpose of the self keyword in Python classes?
8.Which Python module is used for working with directories?
9.What is the function of the len () method in Python?
10.State any two features of Python for network programming.

Part-B

11. What is XML? Explain its role in data exchange.
12. Write a Python program to check if a given number is even or odd.
13. How does Python support web service integration?
14. Differentiate between a list and a tuple in Python.
15. What are modules in Python and how do you import them?

Part-C

16. Write a python program to calculate the factorial of a number using recursion

OR

Explain how python handles text processing. 

17. Write a program to count the occurrences of each word in a given text

OR

Discuss how python is used for network, programming. Write a program to create a simple TCH client server application

18. Explain classes and objects in Python with examples, emphasizing inheritance and polymor phim

OR

Explain how python can be integrated with java to leverage the functionalities of both languages?

Write a Python program using the JPype library to invoke a simple java method that adds two mambers and returns the result.