IP Sample Question Paper Class 12
IP Sample Question Paper Class 12
General Instructions:
1. This question paper contains two parts A and B. Each part is compulsory.
2. Both Part A and Part B have choices.
3. Part-A has 2 sections:
a. Section – I is short answer questions, to be answered in one word
or one line.
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 5subparts.
4. Part - B is Descriptive Paper.
5. Part- B has three sections
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 question has internal option.
Part-A
Section - I
Attempt any 15 questions from questions 1 to 21
1 State whether True or False : 1
i. Shareware software allows you to try the software before you buy it.
ii. Copyright is not the right of the creator of creative/artistic work.
2 Fill in the blanks : 1
The command used to show legends is
a. display()
b. show()
c. legend()
d. legends()
3. Write the output of the following SQL command. 1
select round(15.857,-1);
a. 15.8
b. 15.9
c. 15.0
d. 20
4 Given a Pandas series called Sample, the command which will display 1
the last 3 rows is .
a. print(Sample.tail(3))
b. print(Sample.Tail(3))
c. print(Sample.tails(3)
d. print(Sample.Tails(3))
Page 1 of 9
5 Given the following Series S1 and S2: 1
S1 S2
A 10 A 5
B 20 B 4
C 30 C 6
D 40 D 8
a. lineplot
b. bargraph
c. histogram
d. statistical
7 The address of location of the document on the World Wide Web is called 1
its___________.
8 A digital document hosted on a website is ______________ 1
9 Internet is an example of which topology: 1
a. Math function
b. Text function
c. Date Function
d. Aggregate Function
12 The practice of taking confidential information from you through an 1
original looking site and URL is known as _______________
13 In Pandas the function used to delete a column in a DataFrame is 1
a. remove
b. del
c. drop
d. cancel
14 I am a fraudulent business practice. 1
I can extract money from an unsuspecting, ignorant person.
Who am I?
15 Which amongst the following is the first page we normally view on a 1
Website?
a. Home Page
b. Master Page
c. First Page
d. Banner Page
16 A website store the browsing activity through __________________ 1
17 Give a solution to recycle the E-Waste in the country. 1
18 The command can be used to makes changes in the 1
structure of a table in SQL.
19 Write the SQL command that will display the time and date at which the 1
command got executed.
20 Network device is a broadcast device. 1
21. Gaining unauthorized access to a network or computer with malicious 1
intensions is an example of
.
Page 2 of 9
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 emp and answer any four questions
from (i)- (v)
empno Name Dept salary Experience
(in Years)
1 Ram Singh IT 15000 2.5
2 Shyam Singh HR 18000 3
3 Nidhi Gupta IT 9000 2
4 Puja Sharma EXE 24000 8
5 Rohan Malik HR 20000 6
(i) Write down the command that will give the following output. 1
Empno 5
Name Rohan Malik
Dept HR
Salary 20000
Experience 6
dtype: object
a. print(emp.max)
b. print(emp.max())
c. print(emp.max(axis=1))
d. print(emp.max,axis=1)
(ii) The CEO needs to know the salary of the employee with empno 4. Help him 1
to identify the correct set of statement/s from the given options:
a. emp1=emp[emp[‘empno’]==4]
print(emp1)
b. emp1=emp[emp]
print(emp1)
c. emp1=emp[emp.empno=4]
print(emp1)
d. emp1=emp[emp.empno==4]
print(emp1)
(iii) Which of the following statement/s will give the exact number of values in 1
each column of the dataframe?
i. print(emp.count())
ii. print(emp.count(0))
iii. print(emp.count)
iv. print(emp.count(axis=’index’))
a. print(emp.columns())
b. print(emp.column())
c. print(emp.column)
d. print(emp.columns)
Page 3 of 9
(v) Mr. Satvik Ahuja, the CEO wants to add a new column, the rating of the 1
performance of employees with the values, ‘A’, ‘A’, ‘B’, ‘A’, ‘B’, to the
DataFrame. Help him choose the command to do so:
a. emp.column=[’A’,’A’,’B’,’A’,’B’]
b. emp[‘Performance’]=[ ’A’,’A’,’B’,’A’,’B’]
c. emp.loc[‘Performance’]= [’A’,’A’,’B’,’A’,’B’]
d. Both (b) and (c) are correct
Page 4 of 9
c)
Distance Charges
20 58000
120 100000
20 55000
d)
Distance Charges
20 55000
20 58000
20 100000
(iii) Ravi has given the following command to obtain the Longest distance 1
But he is not getting the desired result. Help him by writing the correct
command.
(v) Help Saumya to write the command to display the name of the 1
transporter who is having lowest capacity in his schoolbus?
Section – I
24 Consider a given Series , Subject: 2
INDEX MARKS
ENGLISH 75
HINDI 78
MATHS 82
SCIENCE 86
OR
What is the difference between the where and having clause when used
along with the select statement?
Explain with an example.
26 Consider the decimal number x with value 3875.4897. Write commands in 2
SQL to:
Page 5 of 9
27 Consider the following Series object, “company” and its profit in Crores 2
TCS 350
Reliance 200
L&T 800
Wipro 150
i. Write the command which will display the name of the company
having profit>250.
ii. Write the command to name the series as Profit.
28 Mr. Sharma writes the following commands with respect to a table 2
department having fields, deptno, dept_name, head_of_department,
manager.
Command1 : Select count(*) from department;
Command2: Select count(manager) from department;
He gets the output as 8 for the first command but gets an output 6 for the
second command. Explain the output with justification.
29 Consider the following SQL string: “Informatics Practices” 2
Write commands to display:
a. “Practices”
b. “matics”
OR
Considering the same string “Computer”
Write SQL commands to display:
Write commands to :
i. Add a new column ‘Winner’ to the Dataframe
ii. Add a new row with values ( s5 , 5 ,Handball, 20)
31 Expand the following terms related to Computer Networks: 2
a. PPP
b. HTTPS
c. VoIP
d. PAN
32 List any two net etiquettes related to use of Internet Technology. 2
33 Mr. Amit Mishra is using his internet connection for checking the online 2
account of company’s admin without his knowledge. What do we call this
type of activity? What are the ways by which we can avoid such type of
activities?
Section –II
34 Consider two objects a and b. 3
a is a list whereas b is a Series. Both have values 10,20,25,50.
What will be the output of the following two statements considering that the
above objects have been created already
a. print(a*2) b. print(b*2)
Justify your answer.
Page 6 of 9
35 What do you mean by Phishing? Explain with the help of an example. 3
OR
List any two health hazards related to excessive use of Technology.
36 Consider the following graph. Write the code to plot it. 3
OR
Write code to draw the following bar graph representing the number of
students in each class.
Page 7 of 9
Section –III
38 Write a program in Python Pandas to create the following DataFrame 5
toppers from a Dictionary:
OR
Write SQL queries using SQL functions to perform the following operations:
a) Display employee name and bonus after rounding off to zero decimal
places.
b) Display the position of occurrence of the string “ee” in employee names.
c) Display the four characters from employee name starting from
second character.
d) Display the day name for the date of joining of employee
e) Display the name of the month from the date of joining of employee
40. A company in Cyntel Enterprises has 4 departments of buildings as 5
shown in the diagram :
Corporate
Office Developer Unit
Page 8 of 9
Center to center distances between various Buildings:
Research to Back Office - 50m
Back Office to Developer Unit - 60m
Developer Unit to Corporate Office - 25m
Corporate Office to Research - 170m
Research to Developer Unit - 125m
Back Office to w4 - 90m
Page 9 of 9