Documenti di Didattica
Documenti di Professioni
Documenti di Cultura
import numpy as np
k= np.arange(20,50,3)
q=k.reshape(5,2)
print(q)
c) Revathi is trying to draw a line chart for some sales figure of different product. She 1
wants to plot different type of lines such as solid, dashed, dotted etc. for lines of
different product. Suggest her what argument should she use with the plot () function.
d) Write a python program to extract all odd numbers from an array. 2
Page 1 of 6
f) Explain difference between creating array using arange() and linspace() with example 2
g) Write a NumPy program to create a 3 x 3 identity matrix, i.e. diagonal elements are 1, 3
the rest are 0. Replace all 0 to random number from 10 to 20
OR
Write a NumPy program to create a 4 x 4 identity matrix, i.e. diagonal elements are 1,
the rest are 0. Replace all 0 to random number from 1 to 10
Answer the following questions:
2 a) What is data visualization? 1
b) Find the output of following program: 1
import pandas as pd
columns=['max_speed', 'shield'])
print(df.loc['cobra', 'shield'])
c) If pivot() function is used with dataframes for a column and it raises an error one possible 1
reason of the error is (choose correct alternate out of following):
i. applymap()
ii. pipe()
iii. applyrow()
iv. apply()
Page 2 of 6
h) Find the output of the following code: 3
import pandas as pd
data = [{'a': 1, 'b': 2},{'a': 5, 'b': 10, 'c': 20}]
# With two column indices, values same as dictionary keys
df1 = pd.DataFrame(data, index=['first', 'second'], columns=['a', 'b'])
#With two column indices with one index with other name
df2 = pd.DataFrame(data, index=['first', 'second'],columns=[‘a’,’b1’])
print(df1)
print(df2)
i) Find the output of the following code: 4
import pandas as pd
import numpy as np
s1 = pd.Series(['100', '200', 'python', '300.12', '400'])
s2 = pd.Series(['10', '20', 'php', '30.12', '40'])
print("Data Series:")
print(s1)
print(s2)
df = pd.concat([s1, s2], axis=1)
print("New DataFrame combining two series:")
print(df)
Section B
3 a) What is Software Engineering? 1
b) is the process of checkinq the developed software for its correctness and error free 1
working
A. Specification
B. Design/Implementation
C. Validation/Testing
D. Evolution
c) What is Git? 1
d) Differentiate between a Commit and a Push request on a version control system. 2
OR
List any two differences between Incremental model and Spiral model in developing
complex software projects.
e) What are the fundamental activities of a software process? Also Write the basic 3
principles of Water Fall Model.
f) What is scrum? What are the responsibility of a scrum master? 3
g) Consider an online shopping portal of Acart India ltd. A customer can view the products 4
on the portal while browsing. He may register on the portal. For purchase he/she must
Page 3 of 6
register on the portal. When he purchases any product after viewing it, his registration
must be verified by the system. After successful verification the payment is processed
and an external online payment service is used to process the payment. Draw a use case
diagram for this scenario.
OR
Consider railways reservation system where a registered passenger can book a ticket.
Passenger can also get himself registered if not registered. While booking a ticket system
first checks the availability of births and optionally if passenger wants, may allot lower
births. In booking process before payment and booking, registration is verified and
payment is processed through external online payment service. Draw a use case diagram
for this scenario.
Section C
4 a) Write the Django command to start a new app named ‘abc’ in an existing project? 1
b) The COUNT function in SQL returns the number of ______________ 1
3 Fname Varchar 30
4. Address Varchar 50
Page 4 of 6
g) On the basis of following table answer the given questions; 3
Table: CLUB
COACH_ID COACHNAME AGE SPORTS DATOFAPP PAY SEX
Page 5 of 6
fix the problem. Help Anjali by telling her the precautions she should take when she
receives these types of emails.
e) What are the benefits of e-Waste recycling? 2
f) What do you understand by Computer ethics? 3
OR
Explain the role of online social media campaigns, crowdsourcing and smart mobs in
society.
***End of Paper***
Page 6 of 6