0% found this document useful (0 votes)
3 views7 pages

Python Programming

The document outlines the syllabus and exam structure for the MCA (Management) Semester 1 Python Programming course for the years 2024 and 2025. It includes a series of programming questions and tasks related to Python, MongoDB, and Django, covering topics such as data structures, functions, classes, and web development. Each question set requires students to solve multiple problems, demonstrating their understanding of Python programming and related technologies.

Uploaded by

krajesh61950
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)
3 views7 pages

Python Programming

The document outlines the syllabus and exam structure for the MCA (Management) Semester 1 Python Programming course for the years 2024 and 2025. It includes a series of programming questions and tasks related to Python, MongoDB, and Django, covering topics such as data structures, functions, classes, and web development. Each question set requires students to solve multiple problems, demonstrating their understanding of Python programming and related technologies.

Uploaded by

krajesh61950
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

MCA (MANAGEMENT) SEMISTER 1 ST

PYTHON PROGRAMMING

YEAR MONTH PAGE NUMBER


2024 NOVEMBER 2
2025 APRIL 5
& Click on any page number to jump directly to that paper.
2023

2024

All Subject, All Stream NOTES IN SIMPLIFIED AND


HANDWRITTEN FORMAT IN EASY LANGAUGE 11

CONTACT US:
m vidhyanitil2@[Link] VidyaNITI SCANIBl
@ VidyaNITI_Education
EDUCATI O N
MEE
NOV 2024
Total No. of Questions : 5] SEAT No. :

PC-3244 [Total No. of Page :3


[6383]-1001
M.C.A. (Management )
IT-11 : PYTHON PROGRAMMING
(2024 Pattern) (Semester -I)

Time : 2½ Hours] [Max. Marks : 50


Instructions to the candidates:
1) All questions are compulsory.
2) Figures to the right indicate full marks.

Q1) Solve any Two : [2 × 5 = 10]


a) Create a dictionary containing any 5 elements in the form of key,
value pair, and write python code to perform the following operations
on it.
i) To display all the keys.
ii) To add new key value pair.
iii) To delete specific element from the dictionary.
iv) To modify value of a particular key.
b) Write a program which swap every odd - even position character in
the string ([Link]: 'abcdef' out put: 'badcfe').
c) Write a program to create the separate list by taking the first letter of
each word from the original string using list comprehension.
Input list : ['Ajay', 'Vijay', 'Ganesh', 'Paresh', 'Mahesh']
Out put list : ['A', 'V', 'G', 'P', 'M']
d) Write a program to create a set by accepting n elements (0-9 or A-Z or a-
z) input from the user.
i) Display the set elements
ii) Length of set
iii) Count number of digits, lowercase letters, upper case letters in a
set.

P.T.O.
Q2) Solve any Two : [2 × 5 = 10]
a) Write a function to accept string from user and it will return reverse
each word of string.
b) Write a generator function my - range (start, stop, step) which will
accept three arguments as start, stop, and step and generate a given
range.
c) Write user defined exception program in python which will find the
factorial of a number. If number is less than zero it should raise the
exception as 'Invalid Input'.
d) Explain the use of any five functions from the random module with
suitable example.

Q3) Solve any Two : [2 × 5 = 10]


a) Create a class student having attributes 'First Name', 'Last Name',
'Qualification' and methods 'update Qualification', 'Display details',
and a constructor to initialize the values. Write main program to
demonstrate the use of student class.
b) Describe the concept of Delegation and containership with suitable
example.
c) Write a program to validate email address using regular expression.
d) Write a multitreaded program, where one thread prints square of a
number and another thread prints cube of numbers. Make use of thread
synchronization.

Q4) Solve any One : [1 × 10 = 10]


a) Write a mongo DB program to create a "Books" collection having
fields : Title, Author, Publisher, Price. Write a code to proform
following operations :
i) Insert 5 documents into Books collection.
ii) Retrieve books whose publisher is 'pearson'.
iii) Retrieve books whose price is between 400 to 600.
iv) Retrieve books in the descending order of price.
v) Update the price of book by 10% whose title is 'Python'.
vi) Update the title of a book whose author is 'Guido' and publisher
is 'BPB'.

[6383]-1001 2
vii) Delete books whose price is greater than 500.
b) Write a mongo DB program to create a 'student' collection having
fields : Roll No, Name, Course, Marks, Grade point. Write a code to
perform following operations:
i) Insert 5 documents into Student collection.
ii) Find students having marks between 80 to 90.
iii) Update name of a student whose roll [Link] 5.
iv) Display top 3 students according to their grade points.
v) Display students having highest grade points.
vi) Find all students having course 'MCA'.
vii) Display all student's in the descending order of marks.

Q5) Solve any Two : [2 × 5 = 10]


a) Design Django web page for student registration to a course and display
it.
b) Write a code to send Date and Time from views py to template file.
c) Write a short note on Django Rest Framework (DRF).
d) How do you map a view to a URL in Djargo. Explain with suitable
example.



[6383]-1001 3
APR 2025
Total No. of Questions : 5] SEAT No. :
PD-2837 [Total No. of Pages : 3
[6432]-1001
M.C.A.
MANAGEMENT
IT - 11 : Python Programming (PPR 501 MJ)
(2024 Pattern) (Semester - I)
Time : 2½ Hours] [Max. Marks : 50
Instructions to the candidates :
1) All questions are compulsory.
2) Figures to the right indicate full marks.

Q1) Solve any two : [2 × 5 = 10]


a) Write a Python code for list.
i) create a list of animal consisting of following animals-lion, tiger,
cow, elephant, zebra.
ii) delete zebra from the list.
iii) print all alternate element from the given list
iv) sort the list in descending order.
v) add horse to the list.
b) Write a Python program to create a set by accepting h elements
(0-9 or A-Z or a-z) input from the user.
i) display the set elements and length of the set SI.
ii) count number of digits, lowercase letters, uppercase letters in a set.
c) Write a program to create the separate list of digits from the original list
which contains digits & alphabets using list comprehensions.
(Input list = ['a', 'b', 2,43, 'Hi', 900, 'xyz'], Output list = [2, 43, 900])
d) Write a Python program to add two matrices using list. accept elements
for the matrices from the user.

P.T.O.
Q2) Solve any Two : [2 × 5 = 10]
a) Write a function to generate Fibonacci sequence of upto first n term
using recursion.
b) Create a generator which will generate the next prime number from the
number passed. For example if the number passed is 14, then the next
Prime number is 17.
OR
c) Write a user defined exception program in Python which will except age
as input from the user and check whether the user is eligible for driving
licence or not. If age < 18 it should raise the exception as 'Not eligible for
driving licence'.
d) What is Package? explain the different ways to import the modules or
packages.
Q3) Solve any Two : [2 × 5 = 10]
a) Write a Python program to class of bankdemo having attributes bank-
account_no, Name, balance write method to deposit, withdraw & check
balance of account.
b) Explain concept of operator overloading with suitable example.
c) Write a python program to validate strong password.
d) Write a multithreaded progarm, where one thread print 1 to 10 in ascending
order and another thread print 1 to 10 in descending order. Make use of
thread synchronization.

Q4) Solve any One : [10]


a) Write a mongoDB program to create a "Student_info" collection having
fields:
Roll No, Name, Course, total marks, percentage write a code to perform
following operations
i) Insert 5 documents.
ii) Find the students getting percentage between 70 to 80.
iii) update Roll no for students named as "Rahul"
iv) display top 5 students according to percentage.
v) display students having highest percentage
vi) find all students of course MCA.
vii) sort all students in descending order of their percentage.

[6432]-1001 2
b) Write a python program using mongoDB, to create "movies" collection
with fields. (title, writer, year, actor, director) write a code to perform
following operations.
i) insert 5 documents.
ii) get all movies released before 2010
iii) sort the movies according to director
iv) get all movies with actor set to "Rajnikant"
v) get all documents where director include "R. Kapoor"
vi) update writer of movie "Devra"
vii) delete movie "Devra"

Q5) Solve any Two : [2 × 5 = 10]


a) Write steps & code to create and render view in a Django.
b) What is the purpose of [Link] file in Django porject and explain the basic
URL configuration.
c) What is the purpose of Django template? design Django template for
student registration to course.
d) Write a Django view that filter's student who are enrolled in the MCA
course & have marks greater than 75. display result on page.

JJJ

[6432]-1001 3

You might also like