JAWAHARLAL NEHRU TECHNOLOGICAL UNIVERSITY HYDERABAD

JAWAHARLAL NEHRU TECHNOLOGICAL UNIVERSITY HYDERABAD MCA 2021 PYTHON PROGRAMMING Previous Question Paper (July/August - 2021 - R20)

MCA | 2021 | I | R20 | July/August - 2021

Answer PaperPaper Code: 871ACMaximum Marks: 75Time: 3 Hours

Answer any five questions. All questions carry equal marks.

Main

115 marks
a

What are the features of Python.

7 marks

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.
b

Discuss about Mapping and sets in python with example program.

8 marks

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.

215 marks
a

Describe several Built-in attributes related to File objects.

8 marks

Answer

Sign in to view the complete answer paper.

b

Explain any two built-in file functions with clear syntax, description and example.

7 marks

Answer

Sign in to view the complete answer paper.

3

What is multithreading? How python supports multithreading? Explain with a code snippet.

15 marks

Answer

Sign in to view the complete answer paper.

415 marks
a

Discuss about standard exceptions in python with example program.

7 marks

Answer

Sign in to view the complete answer paper.

b

How to create Label widget in Python? Explain with example.

8 marks

Answer

Sign in to view the complete answer paper.

5

Explain Object Relational Managers (ORMs) and its modules with example.

15 marks

Answer

Sign in to view the complete answer paper.

6

List and explain about various operators used in python with example. List out the procedure operations.

15 marks

Answer

Sign in to view the complete answer paper.

715 marks
a

Discuss about Global Interpreter Lock.

7 marks

Answer

Sign in to view the complete answer paper.

b

What is the need of Tkinter module in python? Explain in detail.

8 marks

Answer

Sign in to view the complete answer paper.

8

Explain about advanced web server and web clients.

15 marks

Answer

Sign in to view the complete answer paper.

About this paper

This page contains the solved question paper with answers of PYTHON PROGRAMMING from JAWAHARLAL NEHRU TECHNOLOGICAL UNIVERSITY HYDERABAD for MCA 2021 I, July/August - 2021, R20.

For the question paper without answers, switch to the Question Paper tab.

Other papers in PYTHON PROGRAMMING

Loading Question Papers

Fetching data from database...