Class 12th Pre Board March
Class 12th Pre Board March
General Instructions:
1. This question paper contains two parts A and B. Each part is compulsory.
b. Section – II has two case studies questions. Each case study has 4 case-based sub-parts. An examinee is to attempt any 4 out of the 5 subparts.
a. Section-I is short answer questions of 2 marks each in which two questions have internal options.
b. Section-II is long answer questions of 3 marks each in which two questions have internal options.
c. Section-III is very long answer questions of 5 marks each in which one question has internal
option.
Part - A
Section - I
i) The MAC address refers to the physical address assigned by NIC manufacturer 1
After writing all the command/functions to make a graph/chart we need to use_______ to display the graph. 1
a. plt.show()
b. plt.display()
c. plt.title()
d. pyplot.picture()
select pow(2.37,3.45); 1
a. 17.62
b. 19.62
c. 18.35
d. 15.82
1 | Page
4 import pandas as pd1
s = pd1.Series([1,2,3,4,5],index = ['a','b','c','d','e'])
print (s.head())
a. 3
b. 2
c. 5
d. 1
s = pd1.Series([1,2,3,4,5],index = ['a','b','c','d','e'])
print (s[-3:])
a. c 3
d 4
e 5
dtype: int64
b. a 1
b 2
dtype: int64
c. a 1
b 2
c 3
dtype: int64
a. setx(), sety() 1
b. labelx(), labely()
c. xlabel(),ylabel()
d. xticks(),yticks()
7 _______________ is networking device capable to convert protocols so that two different network architecture based system can communicate with each
other. 1
a. Router
b. Bridge
c. Gateway
d. Modem
2 | Page
8 In a DataFrame, Axis= 0 represents the_____________ elements.
a. Column 1
b. Row
a. Ring 1
b. Star
c. Mesh
d. Bus
10 ___________________is used to host the web sites and deliver the resources requested through web browser.
a. Webpage 1
b. Web Server
c. Web Browser
d. Web Client
a. Math function 1
b. Text function
c. Date Function
d. Aggregate Function
a. Phishing 1
b. Cyberbullying
c. Hacking
d. Cracking
13 In Pandas the function used to gets rows (or columns) with particular labels from
the index. 1
a. iloc()
b. loc()
c. ilabel()
d. id()
14 _______________is a property created by a person or group of persons using their own intellect for ultimate use in commerce and which is already not
a. Google Chrome 1
b. Firefox
c. Edge
3 | Page
d. Apache Tomcat
16 Tracking and monitoring a person’s online activity, and using the internet to stalk or harass an individual is _____________________________
a. Impersonation 1
b. Harassment
c. Cyberstalking
select instr('Toolbarbar','bar'); 1
20 _________________ network device which regenerates the signal and forwards these signal with more power.
21 _________________________________is a cybercrime in which a target or targets are contacted by email, telephone or text message by someone posing as a
legitimate institution to lure individuals into providing sensitive data such as personally identifiable information, banking and credit card details, and 1
passwords
Section -II
Both the case study based questions (22 & 23) are compulsory. Attempt
any four sub parts from each question. Each sub question carries 1 mark.
22 Consider the following DataFrame df and answer any four questions from (i)- (v)
4
2 3 Meena 5000 5400 7000 1700
(i) Write down the command that will give the following output.
EmpNo 5
Name Ram
Quarter1 10000
Quarter2 5800
Quarter3 20000
Quarter4 6000
dtype:object
a. print(df.max)
4 | Page
b. print(df.max())
c. print(df.max(axis=1))
d. print(df.max, axis=1)
(ii) The Employer needs to know the Quarterly Revenue by Employee with Emp No -4. Help Employer to identify the correct set of statement/s from the
given options :
a. df1=df[df[‘EmpNo’]==4]
print(df1)
b. df1=df[EmpNo ==4]
print(df1)
print(df1)
print(df1)
(iii) Which of the following statement(s) will give the exact number of values in each column of the dataframe?
b. only (ii)
(iv) Which of the following command will display the column labels of the DataFrame?
a. print(df.columns())
b. print(df.column())
c. print(df.column)
d. print(df.columns)
(v) HR wants to add a new column, the scores of APR Grade with the values, ‘ A’, ‘B’, ‘A’, ‘A’, ‘B’ ,to the DataFrame. Help HR to choose the command to do so:
a. df.column=[’A’,’B’,’A’,’A’,’B’,’A’]
b. df [‘Grade’]=[’A’,’B’,’A’,’A’,’B’,’A’]
c. df.loc[‘Grade’]= [’A’,’B’,’A’,’A’,’B’,’A’]
5 | Page
4
a. b.
c. d.
(iii) Ram has given the following command to obtain the unique(list of destinations) destination from Flight table .
6 | Page
but he is not getting the desired result.
(iv) State the command to Count and display number of flights reaching at each destination.
(v) Help Ram to write the command to display the maximum no of stops from FLIGHT table.
Part - B
Section – I
Name Age
0 Freya 10 2
1 Mohak 12
2 Dwivedi 13
Write a program in Python Pandas to create the DataFrame with above values..
25 What is the difference between the where and Having clause when used along with the select statement. Explain with an example.
OR
Explain the difference between Update and Alter command with help of an example. 2
7 | Page
s = pd1.Series([1,2,3,4,5],index = ['a','b','c','d','e'])
print (s[['c','d']])
28 Raghav writes the following commands with respect to a table Flight having
He gets the output as 5 for the first command but gets an output 3 for the
OR
import pandas as pd
print(df)
A B
0 1 4
1 2 5
2 3 6
Write commands to :
a. ARPANET
b. TCP
c. NIC
d. RJ-45
Section -II
8 | Page
What will be the output of the following two statements considering that the
35 What do you mean by Dos attack? Explain with the help of an example.
OR 3
What do you understand by Digital Footprint? Explain its types with help of an example.
36 Write Python programming to display a bar chart of the popularity of programming Languages. Sample data:
OR
The height of a plant was measured regularly after it had been transplanted, and the results are given below:
Draw a line graph using matplotlib to show how the height of the plant increased
ii. Count and display the number of GARMENT from each SIZE where number of
Section -III
38 Write a program in Python Pandas to create the following DataFrame Student from Dictionary of Series:
9 | Page
5
Write SQL queries using SQL functions to perform the following operations:
c) Display the four characters from Department starting from second character.
OR
Write the SQL functions which will perform the following operations:
ii) To remove spaces from the beginning and end of a string, “ Informatics Practices “.
iii) To display the name of the day eg. Friday or Sunday from your date of birth, dob.
40 Hi Speed Technologies Ltd is a Delhi based organization which is expanding its office setup to Chandigarh. At Chandigarh office campus, they are
10 | Page
planning to have 3 different blocks for HR, Accounts and Logistics related work. Each block has number of computers,
which are required to be connected in a network for communication, data and resource sharing. As a network consultant, you have to suggest the best
network related solutions for them for issues/problems raised in (i) to (iv), keeping in mind the distances between various blocks/locations and other
given parameters. 5
(i) Suggest a most suitable cable layout for the above connections.
(ii) Suggest the most appropriate block/location to house the SERVER in the CHANDIGARH Office (out of the 3 Blocks) to get the best and effective
(iii) Suggest the best wired medium and draw the cable layout (Block to Block) to efficiently connect various Blocks within the CHANDIGARH office
compound.
(iv) Suggest a device/software and its placement that would provide data security for the entire network of CHANDIGARH office.
(a) PAN
(b) WAN
(c) MAN
(d) LAN
11 | Page