MCA (MANAGEMENT) 2020 PATTERN Sem2 Answer
MCA (MANAGEMENT) 2020 PATTERN Sem2 Answer
:
P6983 [5865] - 201
[Total No. of Pages : 5
F.Y.M.C.A. (Management)
IT21-PYTHON PROGRAMMING
(2020 Pattern) (Semester - II)
Time : 2½ Hours] [Max. Marks : 50
Instructions to the candidates:
1) All Questions are compulsory.
2) Figures to the right indicate full marks.
3) Answer all subquestions at one place.
[5865] - 201 2
xv) If zoo = [‘lion’, ‘tiger’], what will be zoo×2?
a) [‘lion’, ‘lion,’ ‘tiger,’ ‘tiger’]
b) [‘lion’]
c) [‘tiger’]
d) [‘lion,’ ‘tiger’, ‘lion,’ ‘tiger’]
xvi) What is correct syntax for creating single valued tuple?
a) (a) b) (,)
c) (a,) d) {a}
xvii) _______ is a string literal denotated by triple quote for providing the
specifications of certain program elements.
a) client b) docstrng
c) modularity d) interface
xviii) The command that is used to install a third-party module in python is
a) pip b) import
c) py d) install
xix) The character_____ and ____matches the start and end of strng,
respectively.
a) $ and $ b) * and &
c) ^ and • d) ^ and $
xx) The most important object defined in Numpy is an N-dimensional array
type called?
a) narry b) Ndarry
c) ndrray d) NdArray ( )
Q2) a) Write a program to check the number entered by user is even or odd.
Program should accept integer digits only. [3]
b) Illustrate types of arguments used in python function with example. [3]
c) Discuss the polymorphism concept in python create suitable python
classes. [4]
OR
[5865] - 201 3
a) Write a python program for the following. [3]
i) Create list of fruits
ii) Add new fruit in list.
iii) sort the list.
iv) delete last fruit name from list.
b) Write a python function to check the given number is even or odd.
Handle suitable exceptions. [3]
c) Explain constructor concept in python with example. [4]
Q3) a) Write a python program to create an employee. txt file and store employee
name and address. [2]
b) Write a python program to create “employee” collection with fields”
(ID, name, address, phone email and dept) in mongoDB. Prform the
following operations. [5]
i) Display all employees in “Accounts” department
ii) Delete employee with ID - 210345
iii) Update phone with new phone for employee ID -123
c) What is tuple?
What is the difference between list and tuple? [3]
OR
a) What is set? Explain with example. [3]
b) Write a program to retrieve and display employee details from “Employee”
collection stored in mangoDB database. [3]
c) Write a program to update the employee details stored in “Employee”
collection stored in Mangodb database. [2]
d) Write python program to read “employee” . txt” file and display alternate
employee record. [2]
Q4) a) Write a program for extracting email address from a given webpage. [4]
b) What is synchronization in threading? Explain with example. [4]
c) What is module? Explain with example. [2]
OR
a) Write a program to validate URL using regular expression. Explain every
special character of the regular expression used in this program. [4]
b) Write a multithreading program, where one thread prints square of a
number and another thread prints factorial of a number. Also display the
total time taken for the execution. [4]
c) What is anonymous function in python? Demonstrate with example. [2]
[5865] - 201 4
Q5) a) Create 5×5 2D numpy assay and retrieve top left corner 2×2 array from it.
[2]
b) Write a program to illustrate slicing in numpy array. [2]
c) Create paundas dataframe using two dimensional list. Perform following
operations. [4]
i) Count number of rows.
ii) Count missing values in first column.
iii) Display number of columns in data frame.
d) Explain the terms w.r.t. oops in python. [2]
i) -- lnit-- ii) Self
OR
a) Create 3×3 numpy array and display column wise mean and median.[2]
b) Create a series from numpy array and find max and mean of unique
items of series. [2]
c) Given data frame as below: [4]
ID Name HRA TA DA
1001 Mohan 12000 6000 10000
1002 Sachin 13000 5000 9000
1003 Virat 11000 4000 8000
i) Compute sum of each column.
ii) Compute mean of each integer column.
iii) Compute median of each integer column.
d) Explain overloading in python with example. [2]
ooo
[5865] - 201 5
Total No. of Questions : 5] SEAT No. :
P6984 [Total No. of Pages : 4
[5865]-202
F.Y.M.C.A. (Management)
IT 22 : SOFTWARE PROJECT MANAGEMENT
(2020 Pattern) (Semester - II)
Time : 2½ Hours] [Max. Marks : 50
Instructions to the candidates:
1) All questions are compulsory.
2) Draw neat labeled diagrams wherever necessary.
[5865]-202 1 P.T.O.
g) Which command creates an empty git repository in the specified
directory?
i) git init ii) git vog
iii) git reset iv) none of the above
h) Which mode you select for the project size 450 KLOC?
i) Organic ii) Semi-detached
iii) embeded iv) None of them
i) Which of the following git command that download your repository
from github to your computer?
i) git fork ii) git commit
iii) git close iv) git push
j) COCOMO predicts_______.
i) Effort ii) Effort & schedule
iii) Cost & effort iv) Cost & schedule
k) The working culture of an Agive team is________.
i) Collective ii) Collaborative
iii) Connective iv) Contemplative
l) _______enables team to learn from the mistakes dose in the previous
iteration.
i) Pair grooming
ii) Estimation during release planning
iii) Estimation during iteration planning
iv) Retrospective
m) You can define agile team as “scrum team” and “technical
team”_________.
i) True ii) False
iii) Can not determine iv) None of the above
n) Tracking project issues in an agile project is the primary responsibility of
the________.
i) Tester ii) Project reader
iii) Functional manager iv) Developer
o) What is the main purpose of imposing limits on work in project?
i) To optimize throughput ii) To minimize resource allocation
iii) To visualize lead time iv) To balance workflow
[5865]-202 2
p) Select the option that suits the manifesto for agive software development.
i) Working software ii) Individual and Integration
iii) Customer collaboration iv) All of the above mentioned
q) Delphi method is used for_______.
i) Judgemental forecast ii) Time series forecast
iii) Associative model iv) All are the correct
r) Git is a_________.
i) Localised version control system
ii) Distributed version control system
iii) Centralized version control system
iv) None of the above
s) In scrum, when is sprint over?
i) When all the sprint backlog items are completed
ii) When the product owner suggests
iii) When the time box expires
iv) When the final testing is completes
t) Which of the following is not the level of CMM?
i) Defined ii) Analysis
iii) Managed iv) Optimizing
[5865]-202 3
Q4) a) Demonstrate value-driven development with suitable example. [6]
OR
Explain the roles of scrum master, product owner and development team.
Q5) a) Explain release planning and iteration (Sprint) planning in brief. [6]
OR
Explain the process to plan and execute iteration in agile with suitable
example.
b) Write short note (any one). [4]
i) Role of project manager.
ii) Software configuration management.
[5865]-202 4
Total No. of Questions : 5] SEAT No. :
P6985 [5865] - 203
[Total No. of Pages : 4
[5865] - 203 1
P.T.O.
7) Node. js is written in ____.
a) C, C++, Javascript b) C, Python, Javascript
c) C, C++, Java d) C, C++, PHP
8) The Node. js modules can be exposed using:
a) expose b) module
c) exports d) all of the above
9) Which method of fs module is used to open a file?
a) fs. open (path, flags [,mode], call back)
b) fs. openFile (path, flags [,mode], call back)
c) fs. openPath (path, flags [,mode], call back)
d) none of the above
10) Which of the following is the correct syntax for writing AngularJS
expressions?
a) (expression) b) {{expression}}
c) {{{expression}}} d) [expression]
11) Which of the following syntax is used to create a module in AngularJS?
a) var myModule = angular.module ( );
b) var myModule = new Module ( );
c) module (“app”, [ ]);
d) none of the above
12) Using ____ you can share data between controller and view.
a) $ Scope b) Services
c) Factory d) $ Rootscope
13) ____ directive is used to start an angularJs application.
a) ng-init b) ng-app
c) ng-controller d) ng-model
14) ____ is not a validation directive in angularJS.
a) ng-app
b) ng-required
c) ng-minlength
d) ng-pattern
15) Variable name in PHP starts with.
a) !(Exclamation) b) $(Dollar)
c) &(Ampersand) d) #(Hash)
[5865] - 203 2
16) Which of the following is used to display the output in PHP?
a) Echo b) Write
c) Print d) Both (a) & (c)
17) Which of the following is the correct way to create a function in PHP?
a) Create myFunction( )
b) New-function myFunction( )
c) Function myFunction( )
d) Create function myFunction( )
18) Which of the following function is used to set cookie in PHP?
a) Createcookie ( ) b) Makecookie ( )
c) Setcookie ( ) d) None of the above
19) PHP stands for
a) Hypertext Preprocessor b) Pretext Hypertext Preprocessor
c) Personal Home Processor d) None of the above
20) What will be the output of the following program?
<?php
$ var 1 = “Hello”;
$ var 2 = “World”;
echo $var1, $var2;
?>
a) HelloWorld
b) Hello, World
c) Hello World
d) Hello + World
[5865] - 203 3
Q3) a) What is Node. js? Explain its working & features? [5]
b) Create a login form, both username & password fields are mandatory,
after entering the values transfer user control to next web page showing
message as “You have login successfully”. (Use ng-href & ng-required).[5]
OR
a) Explain routing in AngularJS with suitable example. [5]
b) Write a program to show current date and time using user defined module
in node. js. [5]
Q4) a) Explain video & svg tag in HTML 5 with suitable example. [4]
b) Write a pHp script to demonstrate multidiamensional arrays. [4]
c) What is cookie & session in PHP [2]
OR
a) What is HTML5. Explain its features and advantages. [4]
b) Write a PHP script to create a database using MYSQL. [4]
c) What is Define function in PHP. [2]
Q5) a) What is pseudo classes in CSS explain with suitable example. [4]
b) Write a PHP script to design a form for exam registration. Insert 5 records
in database and display all the inserted records on new page. [6]
OR
a) What are the objectives of CSS architecture. [4]
b) Write a PHP script to design a form to reschedule the journey dates of
flights and display the updated information on new web page. [6]
[5865] - 203 4
Total No. of Questions : 5] SEAT No. :
P6986 [5865] - 204
[Total No. of Pages : 4
Q1) Write correct option or filling the blanks of following questions (each ½ mark).
[10]
1) Full form of OQL is _____.
a) Object Oriented Language b) Object Query Language
c) Object Quantum Language d) Object Query Logic
[5865] - 204 1
P.T.O.
8) Which of the constraint can be enforced one per table _____.
a) Primary key
b) Not null
c) Foreign key
d) Check
14) The ability to query data as well as insert, delete alter is offered by
a) TCL (Transaction Control language)
b) DCL (Data Control Language)
c) DDL (Data Definition Language)
d) DML (Data manipulation Language)
[5865] - 204 2
16) Which statement is used to revoke an authorization.
a) Revoke b) Modify
c) Alter d) Commit
Q2) Draw the E-R Diagram for the following system & explain notation &
Relationship XYZ hospital is a multispeciality hospital that includes a names
of department, rooms, Doctors, nurses, compounders of other working staff.
Patient having different kind of ailments come to the hospital of get checkup
done from the concerned doctors. If required they are admitted in the hospital
of discharged after treatment. The aim of this case study is to design and
develop a database for the hospital to maintain the records of various
department, rooms and doctors in the hospital. It also maintains records of
the regular patients, patient admitted in the hospital, the checkup of patient
done by the doctors, the patients that have been operated and patient
discharged from the hospital. [10 ]
OR
What is meant by lock? Explain two phase locking protocal for concurrency
control with example. [10]
[5865] - 204 3
Q3) a) Describe the data base 3-tier schema architecture? [5]
b) Write short note on mobile database. [5]
OR
a) What is need of the Database? Write characteristics of DBMS. [5]
b) Write the characteristics of OODDMS. [5]
Q4) a) Write the log based recovery techniques with example? [5]
b) Write short note on Grant and revoking privilege with example. [5]
OR
a) What is Database Backup of types of backup? [5]
b) Write short note on mandatory Access control. [5]
Q5) Explain the Inter query of Intraquery parallelizm in details with example. [10]
OR
Explain different between homogeneous and hetrogeneous database with
example. [10]
[5865] - 204 4
Total No. of Questions : 5] SEAT No. :
P6987 [5865] - 205
[Total No. of Pages :8
ii) The order in which machines are required for completing job is called as
a) Machine order b) Job order
c) Processing order d) Working order
iv) Problems based on the phenomenon of decision making under risk are
referred to as______.
a) Numerical problem b) Complex problem
c) Probabilistic problem d) None of above
[5865] - 205 1
P.T.O.
vi) As simulation is not an analytical model, therefore the result of simulation
must be viewed as
a) Unrealistic b) Exact
c) Approximation d) Simplified
vii) If in a LPP, the solution of a variable can be made infinity large without
violating the constraints, the solution is _______.
a) Infeasible b) Unbounded
c) Alternative d) None of the above
viii) In sequencing if smallest time for a job belongs to machine A then that
job has to placed towards ______ in the sequence.
a) right b) left
c) centre d) none of the Above
xvi) The minimin criterion is used when consequences are given in the form
of ______
a) Probabilities b) Table
c) Opportunity loss d) Payoff
xvii) Each player should follow the same strategy regardless of the other
player’s strategy in which of the following games?
a) Constant strategy b) Mixed strategy
c) Pure strategy d) Dominance strategy
xix) ________ are the entities whose values are to be determined from the
solution of the LPP.
a) Objective function b) Decision variables
c) Constraints d) Opportunity costs
[5865] - 205 3
Q2) a) Solve the following LPP [6]
Maximize Z 2 x1 x3
Subject to
x1 x2 x3 5
x1 2 x2 4 x3 8
x1 , x2 , x3 0
OR
Maximize Z 3x1 2 x2
Subject to constraints:
x1 x2 4
x1 x2 2
x1 , x2 0
[5865] - 205 4
Q3) a) The following information regarding a project is given [6]
Time in days
Activity Immediate Most Most Most
Predecessor optimistic likely pessimistic
A - 4 6 8
B A 5 7 15
C A 4 8 12
D B 15 20 25
E B 10 18 26
F C 8 9 16
G E 4 8 12
H D,F 1 2 3
I G,H 6 7 8
b) Consider the following profit table along with given probabilities of each
state. [6]
States
N1 N2 N3
Probabilities
Strategies 0.3 0.6 0.1
S1 20 18 9
S2 25 15 10
S3 40 10 12
Calculate
i) EMV
ii) EVPI
iii) VPI
OR
[5865] - 205 5
a) For the data given in the table below, draw the network, crash
systematically the activities and determine the optimal project duration
and cost. [6]
Time(week) Cost in Rs. (000)
Activity Normal Crash Crash
1-2 2 1 10 15
1-3 8 5 15 21
2-4 4 3 20 24
3-4 1 1 7 7
3-5 2 1 8 15
4-6 5 3 10 16
5-6 6 2 12 36
Each cycle costs his Rs. 7,000 and he sells them Rs. 10,000 each. Any
cycle that are left unsold at the end of the season must be disposed off
for Rs. 6,000 each. How many cycles should be in the stock so as to
maximize his expected profit?
[5865] - 205 6
b) The number of units of an item that are withdrawn from the inventory on
a day to day basis is a Markov chain process in which the requirements
for tomorrow depend on today’s requirements. A one-day transition matrix
is given below. [4]
Tomorrow
5 10 12
5 0.6 0.4 0.0
Today 10 0.3 0.3 0.4
12 0.1 0.3 0.6
OR
Find the elapsed time and idle times for machnies A and B.
b) The present market shares of three brands of soft drinks are 60%, 30%
and 10% respectively. The transition probability matrix is as follows:
[4]
[5865] - 205 7
Q5) a) Rainfall distribution in monsoon season as follows: [4]
Rain in cm 0 1 2 3 4 5
Probability 0.50 0.25 0.15 0.05 0.03 0.02
Simulate the rainfall for 10 days using following random numbers
67, 63, 39, 55, 29, 78, 70, 6, 78, 76. Find the average rainfall.
OR
a) A bakery keeps stock of a popular brand of cake. Previous experience
shows the daily demand pattern for the item with associated probabilities,
as given below: [4]
Daily demand 0 10 20 30 40 50
(number)
Probability 0.01 0.20 0.15 0.50 0.12 0.02
[5865] - 205 8