The document outlines an end-term examination for the second semester of an MCA program scheduled for June 2024, featuring various questions related to Python programming. It includes topics such as Python features, data structures like dictionaries and tuples, decorators, exception handling, and basic list operations. Additionally, it covers concepts in Object-Oriented Programming and array manipulation functions in NumPy and pandas.
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF or read online on Scribd
0 ratings0% found this document useful (0 votes)
8 views2 pages
MCA 106 Python Programming-External June 2024
The document outlines an end-term examination for the second semester of an MCA program scheduled for June 2024, featuring various questions related to Python programming. It includes topics such as Python features, data structures like dictionaries and tuples, decorators, exception handling, and basic list operations. Additionally, it covers concepts in Object-Oriented Programming and array manipulation functions in NumPy and pandas.
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF or read online on Scribd
You are on page 1/ 2
Please write your exam roll no.) Exam Roll No.
END TERM EXAMINATION
SECOND SEMESTER [MCA] __ JUNE-2024
Subject.
(Note; Attempt all questions as directed. Internal Choice is indicated. _
Qi Attempt any Four of the following: [4x5=20]
i) Mention & explain the python features in brief.
ii) Explain the Identifiers, Keywords, Statements, Expressions, and
Variables in Python programming language with examples.
iii) | What is the Dictionary in Python?
iv) Discuss the relation between tuples and lists, tuples and
dictionaries.
v) What are the three types of import statement in Python? Discuss,
vi) What are packages? Give an example of package creation in Python,
vii) Write python program to swap two variables.
viii) What is an exception? Explain with few examples.
ix) Explain what is meant by namespaces and scoping.
Q2 Explain the concept of decorators in Python functions. How do decorators
enhance the functionality of existing functions? [10]
oR
Write a program that generates 5 random numbers in the range 10
to 50. Use a seed value of 6. Make a provision to change this sced
value every time you execute the program by associating it with the
time of execution (5)
b) i) In the following statement, what do >5, >7 and =8 signify [2.5]
print (f” (n:>5}{re :>7}{r8 =>8}')
ii) What will be the output of the following code segment? [2.5]
Q3
Celino = 9812345678
print ( fname: 15}:{celino:10})
Q4 a) Create a list of tuples. Each tuple should contain an item and its
price in float. Write a program to sort tuples in descending order by
price. 5]
b) Write a program to implement stack data structure using “list”.
Show the output for 5 numbers to illustrate the stack principle of
LIFO. 5]
OR
Q5 Explain about Basic list Operations, Indexing, Slicing, & Built-in List
Functions and Methods. How are positive and negative indices used to
access substrings? [10]
Q6 Describe the principles of encapsulation, inheritance, and polymorphism
in Object Oriented Programming. [10]
OR
Q7 _ Describe about Handling Exceptions with examples. Explain the syntax
and usage of the try-except block in Python for catching and handling
exceptions. [10]
P.T.O.
MCA-\86Qs
Q9
(24
Describe common array manipulation functions in NumPy, such as
numpy.reshape(), numpy.transpose(), numpy.concatenate(), and
numpy.split() [10]
OR
(10)
Explain series in pandas. How to create copy of series in pandas?
Mca-ies