Model 1
Model 1
Model 1
General Instructions:
1. This question paper contains five sections, Section A to E.
2. All questions are compulsory.
3. Section A have 18 questions carrying 01 mark each.
4. Section B has 07 Very Short Answer type questions carrying 02 marks each.
5. Section C has 05 Short Answer type questions carrying 03 marks each.
6. Section D has 03 Long Answer type questions carrying 05 marks each.
7. Section E has 02 questions carrying 04 marks each. One internal choice is given in
Q35 against part c only.
8. All programming questions are to be answered using Python Language only.
2. David has created the Series College but forget to give the index values 1
[‘S1’,’S2’,’S3’,’S4’].
Which one of the following will set the index values to Series School.
i. index=[‘S1’,’S2’,’S3’,’S4’]
ii. index=(‘S1’,’S2’,’S3’,’S4’)
iii. College.index=[‘S1’,’S2’,’S3’,’S4’]
iv. College.index=(‘S1’,’S2’,’S3’,’S4’)
i. DayName.size
ii. DayName.ndim
iii. DayName.column
iv. DayName.shape
4. Raju was checking a python project. While accessing the column from the 1
data frame, he can specify the column name. In case column does not exist,
which type of error it will raise:
2
i. Index Error
ii. Column Error
iii. Key Error
iv. Runtime Error
6. Choose the correct statement from the options given below to read from a 1
CSV file in a dataframe DF1 is :
i. <DF1>.read_csv(<file>)
ii. <file>.read_csv(<DF1>)
iii. <DF1>=pandas.read(<file>)
iv. <DF1>=pandas.read_csv(<file>)
8. Which argument must be set with plotting functions for legend( ) to display 1
the legends ?
i. data
ii. label
iii. columns
iv. sequence
10. Which of the following function is used to save figure created after plotting 1
data?
i. figsave( )
ii. savefig( )
iii. save( )
iv. savefigure( )
11. Which of the URL is a platform for supporting the open data initiative of the 1
Government of India?
i.www.opendata.gov.in
ii. www.govdata.in
iii. www.data.gov.in
iv. www.open.gov.in
3
14. Which SQL statement do we use to find the total number of records present 1
in a table?
i. distinct( )
ii. max( )
iii. sum( )
iv. count(*)
16. Thomas is confused in using date functions in SQL. To get the current date, 1
______________ function is used.
i. DATE( )
ii. CURDATE( )
iii. CURRENTDATE( )
iv. CDATE( )
17. Assertion (A): The rename function of Data Frame does not rename the 1
columns of the original data frame, but instead returns a dataframe with
updated column names.
Reason (R): Default value of inplace parameter in rename function is True.
18. Assertion (A): - To make a Histogram with Matplotlib, we can use plt.hist( ) 1
function.
SECTION B
19. Compare Authentication and Authorization. 2
OR
What is the difference between static and dynamic web pages?
20. What will be the output produced by the following programming statements 2
1 & 2?
import pandas as pd
S1=pd.Series(data=[56,45,60,38])
print(S1>50) #............. Statement1
print(S1[S1>50]) #....... Statement2
22. Create a DataFrame using a dictionary that stores Age, Location and Name 2
of candidates applied for an International Sports Event. Screen shot as
follows:
S1 S2
0 56 0 45
1 45 1 34
2 60 2 66
3 38 3 40
What will be the output of print(S1-S2)?
OR
Compare Pandas Series and DataFrame.
25. List any two differences between single row and multi row functions. 2
5
SECTION C
26. 3
Write outputs for SQL queries (i) to (iii) which are based on the given table
TEACHER:
29. Preeti and Hima are friends. Preeti shared some of her photos with Hima 3
through social media. After some days, they had some fight. So, Preeti deleted
those photos from social media so that her friend cannot access those photos.
Late in the evening, to her surprise, she saw that one of the images she had
already deleted from social networking was available with their common
friend Sita. Preeti enquired about this to Sita and found that Hima forwarded
the image to her.
Help Preeti to get answers for the following questions. Give justification for
your answers that Preeti can understand it clearly.
a. How could Hima access an image which she had already deleted?
b. Can anybody else also can access these deleted images?
c. Had these images not been deleted from her digital footprint?
6
30. Based on table DOCTOR given here, write suitable SQL queries for the 3
following:
SECTION D
31. Write suitable SQL query and output (I to iv) for the following: 5
v. Remove all the expected leading and trailing spaces from a column
NAME of the table ‘STAFF’. (Only query)
OR
i. LCASE()
ii. RTRIM()
iii. MID()
iv. YEAR()
v. SQRT()
You as a network expert have to suggest the best network related solutions
for their problems raised in (i) to (v), keeping in mind the distances between
the buildings and other given parameters.
Shortest distances between various buildings:
ADMIN TO TRAINING 55 m
ADMIN TO EXAMINATION 70 m
ADMIN TO RESEARCH 50 m
TRAINING TO EXAMINATION 80 m
TRAINING TO RESEARCH 50 m
EXAMINATION TO RESEARCH 45 m
DELHI Head Office to KERALA campus 3150 km
(i) Suggest the most appropriate location of the server inside the KERALA
campus (out of the four buildings) to get the best
connectivity for maximum number of computers. Justify your answer.
(ii) Suggest and draw cable layout to efficiently connect various buildings
within the KERALA campus for a wired connectivity.
(iv) Training Company is planning to get its website designed which will
allow students to see their results after registering themselves on its server.
Out of the static or dynamic, which type of website will you suggest?
(v) Which of the following will you suggest to establish the online face to
face communication between the people in the ADMIN office of KERALA
campus and Delhi head office?
a) Cable TV
8
b) Email
c) Video Conferencing
d) Text chat
33. Write Python code to plot a bar chart for House vs Points as shown below. 5
Also give suitable python statement to save this chart.
OR
Write a python program to plot a line chart based on the given data to depict
the changing daily student attendance in grade 12 for five days.
Days=[1,2,3,4,5]
Attendance=[35,40,38,36,34]
SECTION E
34. Manavi, a database administrator has designed a database for a shop. Help 1+1+2
her by writing answers of the following questions based on the given table:
TABLE: SHOP
CODE TYPE SIZE COLOUR PRICE PDATE
101 JEANS XL BLUE 990 2022-01-21
102 T SHIRT M RED 599 2021-12-12
103 TROUSER M GREY 399 2021-11-10
104 SAREE FREE GREEN 1499 2019-11-12
105 KURTI L WHITE 499 2021-12-07
35. Mr. Tarun, a data analyst has designed the DataFrame DF1 that contains 1+1+2
data about Cyber Security Olympiad with ‘CS1’, ‘CS2’, ‘CS3’, ‘CS4’,
‘CS5’ as indexes shown below. Answer the following questions: