JAWAHARLAL NEHRU TECHNOLOGICAL UNIVERSITY HYDERABAD
JAWAHARLAL NEHRU TECHNOLOGICAL UNIVERSITY HYDERABAD MCA 2021 PYTHON PROGRAMMING Previous Question Paper (July/August - 2021 - R20)
Answer any five questions. All questions carry equal marks.
Main
What are the features of Python.
Answer
Python is a high-level, interpreted, and general-purpose programming language known for its simplicity and readability. Its key features include:
- Simple and Easy to Learn: Python has a clean syntax that resembles English, making it accessible for beginners.
- Interpreted Language: Code is executed line-by-line, which simplifies debugging and testing.
- Dynamically Typed: Variable types are determined at runtime, so there is no need to declare types explicitly.
- Extensive Standard Library: It provides a vast collection of modules and functions for tasks like file I/O, networking, and data manipulation.
- Cross-Platform: Python code can run on various operating systems like Windows, macOS, and Linux without modification.
- Object-Oriented: It supports object-oriented programming (OOP) concepts such as classes, inheritance, and polymorphism.
- Embeddable and Extensible: Python can be integrated with other languages like C or C++ to extend its functionality.
Discuss about Mapping and sets in python with example program.
Answer
In Python, Mapping is represented by the dictionary type, which stores data in key-value pairs. Keys must be unique and immutable, while values can be of any type. Sets are unordered collections of unique, immutable elements, useful for membership testing and eliminating duplicates.
Example program:
# Mapping (Dictionary) example
student = {'name': 'Alice', 'age': 20, 'course': 'MCA'}
print('Student Name:', student['name'])
# Sets example
numbers = {1, 2, 3, 3, 4, 5} # Duplicate 3 will be removed
print('Set elements:', numbers)
# Adding to set
numbers.add(6)
print('Updated set:', numbers)Dictionaries allow efficient data retrieval using keys, whereas sets provide high-performance operations for mathematical set theory, such as union, intersection, and difference.
Describe several Built-in attributes related to File objects.
Answer
Sign in to view the complete answer paper.
Explain any two built-in file functions with clear syntax, description and example.
Answer
Sign in to view the complete answer paper.
What is multithreading? How python supports multithreading? Explain with a code snippet.
Answer
Sign in to view the complete answer paper.
Discuss about standard exceptions in python with example program.
Answer
Sign in to view the complete answer paper.
How to create Label widget in Python? Explain with example.
Answer
Sign in to view the complete answer paper.
Explain Object Relational Managers (ORMs) and its modules with example.
Answer
Sign in to view the complete answer paper.
List and explain about various operators used in python with example. List out the procedure operations.
Answer
Sign in to view the complete answer paper.
Discuss about Global Interpreter Lock.
Answer
Sign in to view the complete answer paper.
What is the need of Tkinter module in python? Explain in detail.
Answer
Sign in to view the complete answer paper.
Explain about advanced web server and web clients.
Answer
Sign in to view the complete answer paper.