Postgraduate Pg Master Computer Applications Mca Semester 2 2024 May Python Programming2020 Pattern
Postgraduate Pg Master Computer Applications Mca Semester 2 2024 May Python Programming2020 Pattern
Ent
First Year M.CA (Management)
LIBRARY
IT-21 :PÝTHON PROGRAMMING UDudojat
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) 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).
P OPPO 10000
iPhone 14 60000
LIBRARY
{62041-2I