12pb24ip01 QP
12pb24ip01 QP
3 Which among the following devices cannot connect dissimilar networks together? 1
a)Router
b)Gateway
c)Modem
d)Bridge
4 Which among the following clauses can be used to sort the result based on specific 1
columns of a database table?
a)sort
b)sort_values
c)Where
d)Order By
Page 1
12PB24IP01
6 Plagiarism refers to 1
a)The act of using someone else's work
b)The act of using someone else's work without proper attribution
c)Using someone else’s idea with their permission
d)None of the above
7 Which of the following python statements can be used to delete/remove a column named 1
‘grade’ of the DataFrame, ‘student’?
a)del student[‘grade’]
b)drop student[‘grade’]
c)student . drop ‘grade’
d) None of the above
13 The dataFrame ‘Df’ has 10 rows. How many rows will be displayed if the following 1
statement is executed ?
Statement: Df.head( )
a)0
b)10
c)5
d)Error
Page 2
12PB24IP01
14 Bulk email by an identified or unidentified source is 1
a)Spam
b)Fishning
c)Worm
d)Cookie
A) Math, Science
B) Alice, Bob, Charlie
C) 0, 1, 2
D) {'Math': 85, 'Science': 90}
18 Which among the following is the best suitable for comparing performance across different 1
categories?
a)BAR Chart
b)Line Chart
c)Scatter Chart
Page 3
12PB24IP01
d)None of the above
Q-20 and Q-21 are Assertion (A) and Reason (R) Type questions. Choose the correct option
as:
(A) Both Assertion (A) and Reason (R) are true, and Reason (R) is the correct explanation of
Assertion (A)
(B) Both Assertion (A) and Reason (R) are true, but Reason (R) is not the correct explanation
of Assertion (A)
Section-B (7 x 2 = 14 Marks)
OR
b)Name any two libraries of Python. Explain the importance of those libraries.
26 Explain how redundancy can be avoided in a database? Explain with the help of an example 2
27 What is data privacy? What type of information are collected by websites that you visit? 2
28 a)Rohith wrote the following code to create a Pandas DataFrame from a dictionary of 2
Page 4
12PB24IP01
dictionaries. However the code is having some mistakes. Identify the errors, correct
and underline the corrections
import Pandas as pd
data = { 'John ' = {'Age': 28, 'City': 'New York', 'Salary': 50000}, \
'Anna' = {'Age': 24, 'City': 'London', 'Salary': 60000}, \
'Mike' = {'Age': 32, 'City': 'San Francisco', 'Salary': 70000} }
df = Data.Dataframe(Data).T
print(DF)
OR
b)Complete the given Python code to get the required output as :
Code:
import _____________
data = [ ['Alice', 85, 90], ['Bob', 78, 88], ['Charlie', 92, 95], ['David', 65, 70] ]
print(df)
3
29 A university student, Sarah, submits a research paper for her final assignment. After grading, the
professor discovers that several sections of Sarah's paper closely resemble published articles
without proper citation. Upon further investigation, it is revealed that Sarah used an online tool
that copies content from others' work and publications, believing it would help her in
documentation. However, she did not adequately check for proper citations or originality in her
final submission.
Page 5
12PB24IP01
30 a)Write python code to create the below given dataframe, ‘student’, using a dictionary of 3
series.
English Maths
Alice 85 90
Bob 78 88
Charlie 92 95
David 65 70
OR
b)Write a Python Program to create a Pandas Series, ‘student’ as given below using a numpy
array
Alice 85
Bob 90
Charlie 78
David 88
Eve 92
dtype: int64
31 I Write an SQL statement to create a table named ‘Nations’ , with the following specifications: 2
Capital Varchar(4)
population numeric
II. Write a SQL statement to add the following data to the Nations table. 1
N101, Russia, Moscow, 89.50, 14
Page 6
12PB24IP01
Table :Orders
OR
II)Consider the tables
Table; Products
Table:Sales
S10 10 2024-11-01 2
S11 10 2024-11-01 10
S12 12 2024-11-01 5
S13 13 2024-11-02 20
Page 7
12PB24IP01
33 Consider the following Python program that generates a bar chart which represents the 4
turnover of 5 companies in the year 2024 which is as given below . Some code is missing. Fill
the missing lines.
Company Turnover
(in Lakhs
A 1500
B 2000
C 2500
D 3000
E 3500
import ______________#Statement 1
companies = ['A', 'B', 'C', 'D', 'E']
turnover = [1500, 2000, 2500, 3000, 3500]
colors = ['blue', 'orange', 'green', 'red', 'purple']
plt.bar(companies , ________ , color=colors, width=.20)#statement 2
plt._________('Companies') #Statement 3
plt.ylabel('Turnover (in Lakhs)')
plt.___________('Performance in 2024')# statement 4
plt.legend(companies, title='Companies', loc='upper left')
plt.show()
Output:
Page 8
12PB24IP01
i)Write the suitable code for the import statement in the blank space in the line marked as
Statement-1.
ii)Refer to the graph shown above and fill in the blank in Statement 2 with suitable Python
code.
iii)Fill in the blank in Statement 3 with the name of the function to set the label on the x-axis.
iv)Refer the graph shown above and fill the blank in Statement 4 with suitable Chart Title.
34 a)Pratish l, who works as a database designer, has developed a database for managing 4
Employees. This database includes a table Emp whose column (attribute) names are
mentioned below:
Eno - code to identify the employees uniquely
Ename - to store the name of employees
Job - to store the job code
Salary - to store monthly salary
Table: Emp
Page 9
12PB24IP01
OR
b)Mr. Rohit has created a database for managing a sports event. The database includes a
table named Events whose column (attribute) names are mentioned below:
35 Digital University of Kerala is opening a new campus in Mysore with 4 different blocks, 5
named A, B, C, D . Its HeadQuarters is in Delhi.
Mysuru Campus
Block A Block B
Block D
Block C
Page 10
12PB24IP01
Block A 85
Block B 90
Block C 120
Block D 95
Headquarters 50
University is planning to interconnect all the computers in each block, interconnect all the
blocks of Mysuru campus and to connect the Mysuru campus with Headquarters in Delhi.
i) Suggest the block in Mysuru Campus in which the server can be installed.
Justify your answer.
ii) Suggest a suitable layout to interconnect all the blocks of Mysuru campus together.
iii)Between which all blocks, if connected directly, repeaters are required?
iv) In which all blocks of Mysuru campus, HUB or SWITCH is required in your opinion?
v) Which topology is the most suitable if all the blocks are interconnected?
Page 11
12PB24IP01
36 Consider the following DataFrame, Result, created by a Data Analyst , to analyse the result of 5
some students.
ii)Display all the rows from the second row to fourth row.
37 a)Write suitable SQL query for the following(column name and table name are specified): 5
ii) To display the last character of the Ename column of the Exam table in
uppercase.
iii)To display the number characters in the data of the column Sname in the customer table
iv)To display the maximum value in the salary column of the Employees table.
v). To determine the count of non null values in Score column in the Games table
OR
Page 12