JAWAHARLAL NEHRU TECHNOLOGICAL UNIVERSITY HYDERABAD

JAWAHARLAL NEHRU TECHNOLOGICAL UNIVERSITY HYDERABAD MCA 2022 PYTHON PROGRAMMING Previous Question Paper (October/November - 2022 - R20)

MCA | 2022 | I | R20 | October/November - 2022

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

Answer any five questions. All questions carry equal marks.

Main

115 marks
a

What are various internal types in Python? Explain.

8 marks

Answer

Python is a dynamically typed language where every value is an object belonging to a specific internal type. These types define the data's behavior and the operations that can be performed on them.

  • Numeric Types: Include int (arbitrary precision integers), float (double-precision floating-point numbers), and complex (numbers with real and imaginary parts denoted by j).
  • Sequence Types: Ordered collections of items. These include str (immutable sequences of Unicode characters), list (mutable sequences), and tuple (immutable sequences).
  • Mapping Type: The dict type represents a collection of key-value pairs, providing efficient lookups.
  • Set Types: set (mutable, unordered collection of unique elements) and frozenset (immutable version of a set).
  • Boolean Type: The bool type represents truth values, limited to True and False.
  • NoneType: Represents the absence of a value, containing only the single object None.
b

Discuss about different types of operators supported by Python with examples.

7 marks

Answer

Python supports several categories of operators to perform operations on variables and values:

  • Arithmetic Operators: Used for mathematical calculations. Examples: +, -, *, /, // (floor division), % (modulus), and ** (exponentiation). Example: 5 // 2 results in 2.
  • Comparison Operators: Used to compare values. Examples: ==, !=, >, <, >=, <=. Example: 10 > 5 returns True.
  • Logical Operators: Used to combine conditional statements. Examples: and, or, not. Example: (x > 5 and x < 10).
  • Bitwise Operators: Perform operations on binary representations. Examples: &, |, ^, ~, <<, >>.
  • Assignment Operators: Used to assign values to variables. Examples: =, +=, -=, *=. Example: x += 3 is equivalent to x = x + 3.
  • Membership Operators: Check for existence in a sequence. Examples: in, not in. Example: 'a' in 'apple' returns True.
  • Identity Operators: Compare memory locations. Examples: is, is not. Example: x is y returns True if both variables point to the same object.
215 marks
a

Explain about related modules in Python.

8 marks

Answer

Sign in to view the complete answer paper.

b

What are special features of strings? Explain with examples.

7 marks

Answer

Sign in to view the complete answer paper.

315 marks
a

List and explain various module built-in functions.

8 marks

Answer

Sign in to view the complete answer paper.

b

How exceptions are created? Explain in detail.

7 marks

Answer

Sign in to view the complete answer paper.

415 marks
a

Define file object. Explain in detail about file objects in Python.

8 marks

Answer

Sign in to view the complete answer paper.

b

List and explain standard exceptions with examples.

7 marks

Answer

Sign in to view the complete answer paper.

515 marks
a

Explain about special symbols and characters in Python.

8 marks

Answer

Sign in to view the complete answer paper.

b

Describe accessing a thread from Python. Also describe how life is without thread.

7 marks

Answer

Sign in to view the complete answer paper.

615 marks
a

Explain about core methods and functions of RE module.

8 marks

Answer

Sign in to view the complete answer paper.

b

Describe producer consumer problem and queue module.

7 marks

Answer

Sign in to view the complete answer paper.

715 marks
a

Explain about Tk interface extensions (Tix).

8 marks

Answer

Sign in to view the complete answer paper.

b

Explain in detail about advanced Web clients.

7 marks

Answer

Sign in to view the complete answer paper.

8

Explain the following:

15 marks
a

Related modules of DB programming

8 marks

Answer

Sign in to view the complete answer paper.

b

Various commands in SQL.

7 marks

Answer

Sign in to view the complete answer paper.

About this paper

This page contains the question paper of PYTHON PROGRAMMING from JAWAHARLAL NEHRU TECHNOLOGICAL UNIVERSITY HYDERABAD for MCA 2022 I, October/November - 2022, R20.

For the solved question paper with answers, switch to the Answer Paper tab.

Other papers in PYTHON PROGRAMMING

Loading Question Papers

Fetching data from database...