BVM IP 2324 3papers
BVM IP 2324 3papers
BVM IP 2324 3papers
PART A
1. Which network topology connects all devices in a linear fashion? 1
a) Bus b) Star c) Ring d)Mesh
2. What is a pandas DataFrame? 1
a) A data structure for storing a single dimensional labeled array.
b) A 2-D, size-mutable and heterogenous tabular data structure.
c) A python module for mathematical operations.
d) A visualization library for data analysis.
3. Minimum number of arguments required in pandas Series function for creating a non-empty 1
series is ____________.
a) 0 b)1 c) 2 d) 3
4. In SQL, which function is used to display current date and time? 1
a) Date () b) Time () c) Current () d) Now ()
5. How many values will be there in array1, if given code is not returning any error? 1
>>> series4 = pd.Series(array1, index = [“Jan”, “Feb”, “Mar”, “Apr”])
a) 1 b) 2 c) 3 d) 4
6. To display the last 5 values of a dataframe df, you may write: 1
a) df.head(5) b) df.Tail() c) df.tail() d) df.Head()
7. Ananya wants to store her Term-I mark in a Series which is already stored in a NumPy array. 1
Choose the statement which will create the series with Subjects as indexes and Marks as
elements.
import pandas as pd
import numpy as np
Marks =np.array([30,32,34,28,30])
subjects = ['English','Maths','Chemistry','Physics','IP']
Series1= _______________________________
a) pd.Series(Marks,index=subjects) b) pd.Series(np.Marks,index=subjects)
c) pd.Series(index=Marks, subjects) d) pd.Series(Marks,index)
8. Which of the following attribute is used to assigns a name to the index of the Series. 1
a) name b) index c) index.name d) All of the above
9. In a DataFrame, Axis= 1 represents the elements 1
a) columns b)first column c) rows d) first row
1
10. Which of the following is the correct output for the following sql command : 1
Select round(6754.89)
a) 6754.9 b) 6750 c) 6754 d) 6755
11. Rajesh has purchased a new Smart TV and wants to cast a video from his mobile to his new 1
Smart TV. Identify the type of network he is using:
a) LAN b) WAN c) MAN d)PAN
12. The location of a resource on the internet is given by its _____ 1
a) Protocol b) URL c) e-mail address d) ICQ
13. It can be a software program or a hardware device that filters all data packets coming through 1
the internet or a network it is known as the_______:
a) Antivirus b) firewall c) cookies d) malware
14. What does the trim() function in mysql do? 1
a) Removes spaces from the beginning and end of a string
b) Adds spaces to a string
c) Counts the number of characters in a string
d) Replaces specific characters in a string
15. What will be the output of the following mysql command? 1
Select mod(pow(2,3),3);
a) 1 b) 2 c) 3 d) 4
16. Which module of matplotlib library is required for plotting a graph ? 1
a) Plot b) graphics c) matplot d) pyplot
Q. 17 and 18 are ASSERTION (A) and REASONING (R) based questions.
Mark the correct choice as
a) Both (A) and (R) are true and (R) is the correct explanation for (A).
b) Both (A) and (R) are true and (R) is not the correct explanation for (A).
c) (A) is true and (R) is false.
d) (A) is false but (R) is true.
17. Assertion (A) : The output of addition of two series will be NaN, if one of the elements or 1
both the elements have no value(s).
Reason (R) : While performing mathematical operations on a series, by default all missing
values are filled in with 0.
18. ASSERTION(A) : A histogram is basically used to represent data provided in the 1
form of groups spread in non-continuous ranges
REASON(R) : matplotlib.pyplot.hist() function is used to compute and create
histogram of a variable.
PART B
2
25. Consider the dataframe rainfall 2
Name Price 3
101 Fridge 50000
201 Washing Machine 24000
301 Microwave 20000
i. Add a column called Discount% with the following data: [20,20,5].
ii. Add a new item named ‘Air conditioner' having price 35000 and discount 10% at
index 401.
iii. Remove the column Discount.
29. Define the following: 3
i. Switch
ii. Repeater
iii. Modem
30. Write the output of the following SQL queries: 3
i. Select length(### “Vasudhaiva#Kutumbakam”); (# represent a space)
ii. Select pow(4,2);
iii. Select round(980.8,-2);
3
SECTION D
Examination Admin
Delhi Head Office
Accounts Result
i. Suggest the most appropriate location of the server inside the Mumbai campus 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
Mumbai campus for a wired connectivity.
4
iii. Which networking device will you suggest to be procured by the company to
interconnect all the computers of various buildings of Mumbai campus?
iv. Company is planning to get its website designed which will allow students to see
their results after registering themselves on its server. Out of 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 Mumbai campus and
Delhi head office?
a) Cable TV
b) Email
c) Video Conferencing
d) Text chat
33. Write python code to plot a bar chart for India’s medal tally as shown below. Also give 5
suitable python statement to save this chart.
SECTION E
5
35. Consider the dataframe df: 4
************************************
6
ALL KERALA BHAVAN’S MODEL EXAMINATION
2022-23
General Instructions
SECTION A
SECTION B
19. Point-out the various ways to dispose the e-waste properly?
20. Name two threats to security in a network. What is the role of Firewall in Network security?
21. Differentiate between Bus Topology and Star Topology.
22. Consider the given SQL string:
“12#All the Best!”
Write suitable SQL queries for the following:
i. Returns the position of the first occurrence of the substring “the” in the given string.
ii. To extract last five characters from the string.
23. Complete the given Python code to get the required output as:
Rajasthan import _________ as pd
di = {'Corbett': 'Uttarakhand', 'Sariska': 'Rajasthan', 'Kanha': 'Madhya Pradesh’, 'Gir':'Gujarat'}
NP = ___________. Series( _____ )
print(NP[ ___________ ])
24. What are aggregate functions in SQL? Name any two.
25. Write the advantages and disadvantages of ring topology.
SECTION C
26. Write MySQL statements for the following:
i. To create a database named FOOD.
ii. To create a table named Nutrients based on the following specification:
Calorie Integer
27. Situ, recently started using her
social media account. Within a few days, she befriends many people she knows and some that
she does not know. After some time, she starts getting negative comments on her posts. She also
finds that her pictures are being shared online without her permission. Based on the given
information, answer the questions given below.
i. Identify the type of cybercrime she is a victim of.
ii. Under which act, she can lodge a complaint to the relevant authorities?
iii. Suggest her any two precautionary measures which she should take in future while
being online to avoid any such situations.
28. Consider the given DataFrame ‘Genre’:
Type Code
0 Fiction F
1 Non Fiction NF
2 Drama D
3 Poetry P
0 5 Rahul Delhi
1 4 Deepti Mumbai
2 6 Ansh Chandigarh
3 2 Gyan Delhi
4 3 Swati Chandigarh
TABLE : BLOCKCHAIN
SECTION E
33. A company in Multi Enterprises has 4 wings of buildings as shown in the diagram:
Center to center distances between various Number of computers in each of the wing:
buildings:
W3 to W1 - 50 m W1 – 150
W1 to W2 - 60 m W2 – 15
W2 to W4 - 25 m W3 – 15
W4 to W3 - 170 m W4 – 25
W3 to W2 - 125 m
W1 to W4 - 90 m
Computers in each wing are networked but wings are not networked. The company has now decided to
connect the wings also.
SECTION A
1 Which of the following topologies connects each node to every other node in the network? 1
a) Star b) Mesh c) Tree d) Bus
2 By restricting the server and encrypting the data, a software company’s server is unethically 1
accessed in order to obtain sensitive information. The attacker blackmails the company to pay
money to get access to the data and threatens to publish sensitive information unless a price is
paid. This kind of attack is known as _______________.
a) Phishing b) Digital Footprint c) Ransomware d)Plagiarism
3 What is the maximum validity of a patent? 1
a) 30 years b) 5 years c) 20 years d) 10 years
1
c. Having clause cannot be used without group by clause
d. In a select statement, group by clause should be placed before the order by clause
11 Ashish wanted to delete a row labeled as ‘Term1’ from the dataframe exam. Which of the 1
following commands helps him to do the task?
a) exam.del(‘Term1’, axis=0)
b) exam.drop(‘Term1’)
c) exam.drop(‘Term1’, axis=1)
d) exam.remove(‘Term1’,axis=0)
13 The part of the chart that identifies different sets of data plotted, by using different colours is 1
called ___________.
a) title b) xlabel c)legend d)show
14 Which of the following attributes will be used to display the size of a series object? 1
a) ndim b) size c) length d) nbytes
SECTION B
19 Explain the term web hosting. Give examples of any two web hosting services. 2
OR
Alan is unable to understand the difference between static and dynamic websites. Help him by
explaining it with the help of examples.
20 2
Company Item Qty_purchased Unitprice
2
Consider the given dataframe products and write the output for the following.
a) print(products.iloc[1:3,2:])
b) print(products.loc['Chocolates'])
c) print(products.shape)
d) print(products.loc['Milk':'Coffee',['Item','Unitprice']])
23 Differentiate between the active digital footprint and passive digital footprint. 2
24 import pandas as pd 2
lst1=[10,20,30,40,50]
ser1=pd.Series(lst1)
print(ser1)
Rewrite the above given code to get the following outputs
a) ten 10
twenty 20
thirty 30
forty 40
fifty 50
b) twenty 20
thirty 30
2
25 What is the difference between where clause and having clause?
OR
Table emp contains 4 records and 3 columns. Table dept contains 6 rows and 2 columns.
What is the cardinality and degree of the cartesian product of the tables emp and dept?
3
SECTION C
26 Based on the SQL table emp, write suitable queries for the following: 3
a) Display the names of all employees whose salary is greater than 25000 in alphabetical
order.
b) Display the job and the number of employees doing each job.
c) Display the deptno having more than 2 employees.
27 Write the Python code to create the data frame vehicle and print its contents. Also set the 3
column Vcode the row index and the first row(Vehiucle_type, Amt_per_km) as the column
headings.
VO3 CAR 25
28 Write the SQL command to create the table STUDENT with the given structure. Also write 3
the sql command to display the structure of the table student.
Std char(3)
Division char(2)
Total_Mark int
29 Nirupama has recently shifted to a new school. Everyone in the school is new to her. She was 3
shocked to see someone posting negative comments on her social network profile. She found
someone following her online to defame her.
a) What is happening to Nirupama?
b) What should she do to stop these activities?
c) How can she avoid such situations not to happen in the future?
OR
4
What is E-waste? Explain any two methods for management of E-waste.
Bhavit XI A no
Anand XI B no
i) Change the column heading Fee_status to Fee_paid.
ii) Retrieve the names of students who have paid the fees.
iii) Delete the column Division.
SECTION D
31 5
Consider the following table product and write SQL commands for the following
5
Table : JOB
ITCODE JOB
15 PROGRAMMER
17 ANALYST
12 ADMINISTRATOR
OR
b) Ms Sangeeta wants to plot a Line Chart for the given set of values of months on x
and number of participants who attended workshop in particular month on y-axis.
The number of participants for the months from Jan to June is as follows
participants=[15, 12, 20, 40, 60, 80]
6
Give proper chart titles and labels. The color of the line should be green. Also give the
python statement to save this chart
SECTION E
34 Consider the given DataFrame sales. It shows the sales made by a few salesmen in two 4
different regions.
7
35 Be Happy Corporation has set up its new centre at Noida, Uttar Pradesh for its office and 4
web-based activities. It has 4 blocks of buildings.
A to B 40 m
B to C 120 m
C to D 100 m
A to D 170 m
B to D 150 m
A to C 70 m
Block A 25
Block B 50
Block C 125
Block D 10
a) Suggest and draw the cable layout to efficiently connect various blocks of buildings
within the Noida center for connecting the digital devices.
b) Suggest the placement of the following device with justification
(i) Repeater
(ii) Hub/Switch
c) Which kind of network (PAN/LAN/WAN) will be formed if the Noida office is
connected to its head office in Mumbai?
d) Suggest the most appropriate location for the server to be placed to get the best
connectivity for the maximum number of computers. justify your statement.
8