0 ratings0% found this document useful (0 votes) 168 views10 pagesPython SPM
Copyright
© © All Rights Reserved
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
‘Total No. of Questions : 5] SEAT No. :
PA-2556 [Total No, of Pages 6
[5948-201
M.C.A.- I (Management )
IT-21: PYTHON PROGRAMMING
(2020 Pattern) (Semester - 1)
Time : 2% Hours] (Max. Marks :50
Instructions to the candidates:
1D) All questions are compulsory.
2) Figures to the right indicate full marks.
3) Answer all sub questions at one place.
Q1) Choose the correct option. (4 mark each) (10)
a) Ifzo0=[‘lion’, tiger’), what will be zoo*2?
i) [‘lion’, ‘lion’, ‘tiger’, ‘tiger’]
ii) [‘lion’]
iii) [‘tiger’]
iv) [‘lion’, ‘tiger’, ‘lion’, ‘tiger"]
b) For dictionary d = {plum : 0.66, pears : 1.25, oranges : 0.49} which of
the following statement correctly updates the price of oranges to 0.52?
) d foranges] = 0.52 ii) d0.49]=0.52
iti) d(2]=0.52 iv) d [plum] = 0.52
c) Whatis the correct syntax for creating single valued tuple?
d @ i) (.)
iti) (a,) iv) {a}
d) The length of sys, argv is
i) Only filename
ii) Total number of arguments including pythan command
iii) Total number of arguments including filename
iv) Total number of excluding the file name
e) Which of these definitions correctly describes a module?
i) Denoted by triple quotes for providing the specification of certain
program elements.
ii) Defines the specification of how it is to be used.
ii) Design and implementation of specific functionality to be
incorporated into a program.
iv) Any program that reuses code
PTO.f) To include use of functions which are present in random library, we must
use the option
i) random. h ii) random, random
ii) import, random iv) import random
2) ___is a string literal denoted by triple quote for providing the
specifications of certain program elements.
i) client i) docstring
ii) modularity iv) Interface
h) The correct way of inheriting a derived class from base class is:
i) Class Derived (Base): ii) Class Base (Devired):
iii) Class (Base) Derived: iv) Class
i) The + operator is overloaded using the method
i) =plus--() ii) ~-add--()
iil) | —sum--() iv) -total~()
i) Thesyntax for using super( ) in derived class__init_()method definition
looks like
i) init~super()
ii) Super( ).~-init--(derived class parameters)
iil) Super( )
iv) Super ( ).init-- (base class parameters)
k) The character__and___ matches the start and end of the string,
respectively.
i) Sands i) *and&
ii) and? iv) Sand$
} Considera five 21-12-2016. zip. The regular expression pattern to extract
date from filename is
i) ((0-9] {2} - [0-9] {2} \- [0-9] {4
i) ((0-9] {1} & [0-9] {2} \- [0-9] ap
iii) ((0-9] {2} [0-9] {1} \- [0-9] ¢4
iv) ({0-9] {2} \- [0-9] {2} \- [0-9] {2
[5948]-201 2p)
a
n
‘When will the else part of the try-except-else be executed?
i) When an exception occurs
i) Always
iil) When there is no exception
iv) When an exception occurs in try block.
When is the finally block executed?
i) only if some conditon that has been specified is satisfied
ii) always
iil) When an exception occurs
iv) When there is no exception
Which of the following is not a valid attribute of the file object file-handler.
i) file-handler.closed ii) file-handlersize
iil) file-handler.mode iv) file-handler. name
Which of the following command is used in mango shell to show all the
databases.
Show database ii) Show dbs
ii) 1s dbs iv) Show dbs. all
The function that returns its arguments with a modified shape and the
method that modifies the arry itself respectively in Numpy are
i) resize, reshape ji) reshape?, resize
iii) reshape?2, resize2 iv) reshape, resize
Which of the following is used for line graph?
i) plt.tine() ii) plt. plot ()
iil) pt. bar () iv) pit, scatter ()
[5948]-201 30
Q2) a)
b)
°)
Q3) a)
b)
°)
d)
‘Which of the following statement is false?
i) ndarray is also known as the axis array
ii) innumpy, dimensions are called axes
iit)" numpy main object is the homogeneous multidimensional array
iv) _ndarry dataitemsize is the buffer containing the actual elements of
the array
The method used in pandas to return top 5 rows
i) top () ii) top - rows (5)
iil) row (5) iv) head ()
Write a program that accept the string from user and display the same
string after removing vowels from it. BI
Explain possitional and keyword arguments in function. Use suitable
example, BI
Describe instance variable, static variable and local variables in python
object oriented programming with example. i]
OR
Compare List and tuple with suitable example. BI
Explain lambda with example. BI
Create class called, library with data attributes like Ace-number publisher,
title and author, the methods of the class should include i]
i) Read ()-Acc- number, title, author, publisher.
ii) Compute ()- to accept the number of day late, calculate and display
the fine charged at the rate of Rupees 5/- per day.
ii) Display the data
Develop a program to print the number of lines, words and characters
present in the given file? Accept the file name from user. Handle necessary
exceptions. RI
Mlustrate CRUD operations in MongoDB with example BI
Compare SQL Database with No SQL Database. RI
Write aprogram to check whether entered string & number is palindrome
or not, BI
OR
[5948]-201 4b)
04) a)
b)
[5948]-201
Develop a pythan program to remove the comment character from all the
lines in the given file. Accept the file name from user ri
Write a pythan program to perform following operations. on MongoDB
Database. 15]
i) Create collection “EMP” with fields:
Emp-name, Emp- mobile, Emp, sal, Age
ii) Insert 5 documents.
iil) Find the employees getting salary between 5000 to 10000,
iv) Update mobile number for the employee named as “Riddhi”
v) Display all employees in the order of “Age”
Write a pythan program to find the factorial of a given number using
recursion 13]
Write a program to demonstrate: (4
i) Creating a Thread without using any class
ii) Creating a Thread by extending Thread class.
Write a Pythan program to check the validity of a password given by
user \4
The password should satisfy following criteria:
i) Contain at least | letter between a and z
ii) Contain at least 1 number between 0 and 9
iil) Contain at least | letter between A and Z
iv) Contain at least 1 character from $, #, @.*
v) Minimum length of password : 8
vi) Maximum length of password : 20
Explain Generators in python with suitable example. RI
oRb)
Q5) a)
b)
©)
a
Write a program for synchronization of threads using RLOCK. Accept
the two numbers from user and caleulate factorial of both numbers
simultaneonly ia
Write a pythan program 14]
i) To remove all leading ‘zeros’ from an IP address,
ii) To find all 5 character long words in a string Accept string from
user
Explain decorators in pythan with suitable example RI
Explain numpy integer indexing, array indexing. boolean array indexing
and slicing with example. I41
Draw bar graph using matplotlib and decorate it by adding various elements.
RI
Prepare the pandas dataframe from esv file. RI
perform following operations.
i) Fillall ‘NaN’ values with the mean of respective column.
ii) Display last 5 rows.
Explain constructors in pythan with example. i
OR
Write a program to illustrate numpy array attributes/funetions. (41
i) ndarray. shape
ii) np. zeros ()
iil) np. eye ()
iv) np. random. random () [4
Read data from esv five and create dataframe. Perform following,
operations.
i) Display list ofall columns.
ii) Display data with last three rows and first three columns RI
Draw line graph using matplot lib and decorate it by adding various
elements. Use suitable data.
Explain multiple inheritance in python with suitable example, RI
> > +>
[5948]-201 6‘Total No. of Questions : 5] SEAT No. :
PA-2557 [Total No. of Pages : 4
[5948]-202
M.C.A. -I (Management)
IT -22: SOFTWARE PROJECT MANAGEMEN
(2020 Pattern) (Semester - 1)
Time : 2 Hours} [Max. Marks :50
Instructions to the candidates:
1D) All questions are compulsory.
2) Draw neat labeled diagrams wherever necessary.
Q1) Multiple choice questions (MCQ) [20x
a) Which of the following is not an attribute of a project.
i) Projects are unique
ji) Projects are developed
iil) Projects have primary customer or sponsor
iv) Project refinements
b) Following is (are) the responsibility (ies) of the project managers
i) Budgeting & cost control ii) Allocating resources
iil) Tracking project expenditure iv) All of the above
©) Which is/are ways to deal with risk?
i) Mitigate ii) Contingency
iit) Transfer iv) Allofthe above
4) COCOMO predicts
i) Effort ii) Effort & Schedule
iit) Cost & Effort iv) Cost & Schedule
©) Which mode you select for the project size 450 KLOC?
i) Organic ii) Semidetached
iit) Embeded iv) None of them
1) Function count is developed by
i) Bary Bohem i) Alan Albrecht
iit) Pressman iv) None of them
2) Which of the following is not the level of CMM?
i) Defined ii) Analysis
iil) Managed iv) Optimizing
h) An Agile approach values
i) Process over people ii) People over process
ii) Plan over process iv) Plans over people
PLO.d
%
D
0)
p)
According to Agile manifesto
i) Individuals & interactions over people & technique
ii) Individuals & interactions over project & tools
iil) Individuals & interactions over processes & tools
iv) Individuals & interactions over products & tools
The product backlog is ordered by.
i) Small items at the top to large items at the bottom
ii) Safer items at the top to riskiea items at the bottom
iil) Least Valuable items at the top to most valuable at the bottom.
iv) Whatever is deemed most appropriate by the product owner
You can define agile team as “scrum team” & “technical team”
i) Tre ii) False
ii) Cannot determine iv) None of these
In scrum, when is sprint over?
i) When all the sprint backlog items are completed
ii) When the product owner suggests
iil) When the time box expires
iv) When the final testing is completed
Which of the following is considered in a story point estimate?
i) Only time to develop & test ii) Only effort to develop & test
iil) Only time to develop iv) Time & effort to develop
enables team to learn from the mistakes done in the previous
iteration,
i) Pair grooming
ii) Estimation during release planning
iil) Estimation during iteration planning
iv) Retrospective
What is an bum down graph?
i) A sprint plan which is burn to celebrate successful completion of
sprint
ii) Produce review meeting
iil) A graph to measure human Burnout effort due to fast pace of sprint
iv) The trend of work remaining across time in a spri
, a release or a
product.
In order to, the scope, project managers should compare
performance reports with the project requirements.
i) Fix ii) Control
iil) Manage iv) Settle
[5948-202 2y
s)
»
92) a)
b)
The reason for holding regular Retrospective is,
i) Itallows the team to take necessary break from work
ii) It gives management information to use in team member's
performance reviews
iil) Itallows learning which can be used to improve team performance
during project
iv) It prevents deviation from the process which the team has been
following
Git is a
’) Localized version control system
ii) Distributed version control system
iil) Centralized version control system
iv) None of the above
What is the main purpose of imposing limits on work in progress?
i) Tooptimize through put ii) Tominimize resource allocation
iil) To visualize lead time iv) To balance workflow
Tracking project issues in an Agile project is the primary responsibility of
the.
i) Tester ii) Project leader
iit) Functional Manager iv) Developer
Uk based KPO company working on “License Management System”
They are using number of expensive and licenced software tools. More
than 5000 team members are sharing these tools. You have been deputed
as project manager to ensure that a project finishesh within original budget,
with the required scope of work and within the required timescales, and
to ensure that throughout this process all the stakeholders, especially the
client , are satisfied with the project results. 61
Prepare Risk management process based on below points
i) Riskidentification
ii) Risk Analaysis
iil) Risk mitigation
Explain the benefits of Agile project management in brief, [4]
OR
Explain Agile reports in brief. [41
[5948]-202Q3) a)
b)
94) a)
b)
5) a)
b)
Consider a project with the following functional units. [6]
i) Number of user inputs =15
ii) Number of user outputs =12
iil) Number of user equities =07
iv) Number of user files =20
v) Number ofexternal interfaces. = 05
In addition to the above, system requires significant,
- Data communication (5)
- Performance is very critical (4)
- Designed code may be moderately reusable (2)
Other complexity factors are treated as Average.
Compute the functional point for the project.
What are the various agile principles? i]
OR
Differentiate agile project management Vs traditional project management.
141
Explain the roles of Scrum Master, produce owner, and development
team inagile. 16]
OR
What are the various techniques to estimate story points in agile? [6]
Write short note (any one) [4]
i) Agile tools
ii) Git hub
Explain the process to plan & execute iteration in agile. [61
OR
How to facilitate retrospective process in agile management with suitable
example. [6]
Write short note (any one) [4]
i) Overview of project management framework
ii) Capability Maturity Mode.
> <> <>
[5948-202 4