0% found this document useful (0 votes)
17 views

Postgraduate Pg Master Computer Applications Mca Semester 2 2024 May Python Programming2020 Pattern

Uploaded by

Sunil Kkhatate
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
17 views

Postgraduate Pg Master Computer Applications Mca Semester 2 2024 May Python Programming2020 Pattern

Uploaded by

Sunil Kkhatate
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 2

MAPIAfb)) 2024

Total No. of Questions : 5] SEAT No.:


PB-832 [Total No. of Pages : 2
Mangemeny&
[6204-21 of

Ent
First Year M.CA (Management)
LIBRARY
IT-21 :PÝTHON PROGRAMMING UDudojat

(Revised 2020)(Semester -I)


Time: 2% Hours) Max. Marks : 50
Instructions to the candidates:
1) All questions áre compulsory.
2) Figures to the right indicates full marks.
3) Assume _iuiable data if necessary.

Q) a) Write python program to reverse a number and find the sum of digit in
reverse number prompt the uses for input.
b) How would you determine when to use atnodule in your code. Justify
with suitable example.
OR

a) Explain Decorator concept with suitable example.


b) Write a function average() which willreturn the average of the numbers
inputed by the user..

Q2) a) What is multithrcading? Inplement multithreading with suitable example.|5|


b) Write a Python progràm that defines a custom exception that takes uses
input. If the user enters a negative number, raise the custom exception
with an appropriate error message. Implement exception hand!ling to catch
and handle this ustom eXCeption.
OR

a) Write a Python program that creates two thread. Onethread should print
even numbers from 2 to 10 & the other shokíd print odd numbers from
Ito 9.Ensure that the threads run conçurrently &use Synchronization.
b) What is file in Python? Write apython program that seads a text file
named "sample txt" and prints its contentsto the console.

PIO.
Q3) a) Write apvthon program to validate PAN CARD
CNpression.
number using regular
b) What are constructors and destruetors in python classes? Explain the
urpose of the'...... init nd... dal .....methods in class.
Give an Cxample of a class iha constructors & destructor.
OR
\Write apython prògranthat illustrate how to use super () to call a
nethod trom @parentclasswithin a subelass.
b) Write apythonprograDm to validate strong password (conditions, should
include oecapitalletter, one numeric character &one special character).

04) a) Writea Python Program using MangoDB database to create a collection


"Badminton Tournanments" with fields (player-id, p-tnamne, age, phone no)
and display all registration. |5]
b) What do you understand by inmmutability. Discuss with suitable example.
OR
a) Explain shallow copy with suitable exapie.
b) Write a Python program using MangoDB to create learners collection
having ficld id, name, course & mobile noand display alllearners name.

Q5) a) Givedata trame as belews


Product - id Prod-name Price
P Samsung M32 14000
|+ Nord12 16000

P OPPO 10000
iPhone 14 60000

i) Compute total price of all products


i) Compute the maximun profitfrom given products.
2x2 array.[5)
b) Create a 6x62D numpy array and retrieve bottom rightcorner
OR
mean of unique items
a) Create a series from numpy array and find aax and
of series.
nmpy array and dictionary? Also
b) How to create a series from a list
index.
demonstrate hov to create aseries with labeled ofMa
aragiien

LIBRARY
{62041-2I

You might also like