STD XII- IP worksheet
STD XII- IP worksheet
STD XII- IP worksheet
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
************************************