Class 12 Ip Sample Question Paper
Class 12 Ip Sample Question Paper
General Instructions:
1. This question paper contains 35 questions in two parts A and B. Each part is
compulsory.
2. Part A have 23 marks and Part B have 47 marks.
3. Part A have two section. Section-I have 15 marks and section – II have 8 marks
4. Part A have choice in each section. Section -I contained 20 questions and Attempt any
15 questions from questions 1 to 20. Section -II contained 3 questions and attempt any 2
questions from 21 to 23 with any four MCQ.
5. Part -B have 12 questions in three sections. Section- I have 5 questions 3 marks each,
Section-II have 3 Questions and Section-III have 3 questions with 5 marks each.
Part – A
Attempt any 15 questions from questions 1 to 20
Section - I
1 State whether True or False: 1
i. A copyright is automatically granted to authors or creators of content. _________
ii. In FOSS source code is usually hidden from the users. _______________
2 Which of the following is not a Geographically type of network? 1
LAN, MAN, PAN, TAN, Wi Max, WAN
3 Fill in the blanks: 1
The command used to give a heading to a graph is _________
a. plt.show()
b. plt.plot()
c. plt.xlabel()
d. plt.title()
4 Write the output of the following SQL command. 1
select round (49.88);
a. 49.88
b. 49.8
c. 49.0
d. 50
5 Given a Pandas series called Sequences, the command which will display the 1
first 4 rows is __________________.
a. print(Sequences.head(4))
b. print(Sequences.Head(4))
c. print(Sequences.heads(4)
d. print(Sequences.Heads(4))
6 Using Python Matplotlib _________ can be used to count how many values fall 1
into each interval
a. line plot
b. bar graph
c. histogram
7 To prevent unauthorized access to and / or from the network, a system known as ________, 1
can be implemented by hardware and / or software.
8 1
9 ____________ method in Pandas does not raise errors for multiple entries of a row, column 1
combinations.
10 For web pages where the information is changed frequently, for example, stock prices, 1
weather information which out of the following options would you advise?
a) Static web page
b) Dynamic web page
c) Animated web page
Justify your answer.
11 Given the following Series T1 and T2: 1
T1 T2
A 10 A 80
B 40 B 20
C 34 C 74
D 60 D 90
Write the command to find the sum of series T1 and T2
12 Write the output of the following SQL command. 1
select round (19.88,1);
a. 19.88 b. 19.8 c. 19.9 d. 20.0
13 Multiple Choice Questions: 1
Which amongst the following is not an example of browser?
a. Chrome
b. Firefox
c. Avast
d. Edge
14 ____________ function applies the passed function on each individual data element of the 1
dataframe.
a. apply() b. applymap() c. pivot() d. pivot_table()
15 The teacher needs to know the marks scored by the student with roll number 4. Help her to 1
identify the correct set of statement/s from the given options :
a. df1=df[df[‘rollno’]==4]
print(df1)
b. df1=df[rollno==4]
print(df1)
c. df1=df[df.rollno=4]
print(df1)
d. df1=df[df.rollno==4]
print(df1)
16 Which of the following statement/s will give the exact number of values in 1
each column of the dataframe?
i. print(df.count())
ii. print(df.count(0))
iii. print(df.count)
iv. print(df.count(axis=’index’))
Choose the correct option:
a. both (i) and (ii)
b. only (ii)
c. (i), (ii) and (iii)
d. (i), (ii) and (iv)
17 Which of the following command will display the column labels of the DataFrame? 1
a. print(df.columns()) b. print(df.column()) c. print(df.column) d. print(df.columns)
18 Give the output of the following program: 1
import numpy as np
arr=np.array([21,22,23,24,25,26,27,28,29,30])
print(arr[4:9])
a. [25 26 27 28 29] b. [25 29] c. 25 26 29] d. None of these
19 To prevent unauthorized access to and / or from the network, a system known as 1
____________, can be implemented by hardware and / or software.
20 Which one of the following comes under Cyber Crime? 1
a. Murder b. Chain Snatching c. Fighting d. Online Scams
Section – II
Attempt any Two Questions
21 Consider the table STUDENT given below and give answer any four questions from (i)- (v)
II Prachi has given the following command to obtain the highest marks 1
Select max(marks) from student where group by class;
but she is not getting the desired result. Help her by writing the correct command.
a. Select max(marks) from student where group by class;
b. Select class, max(marks) from student group by marks;
c. Select class, max(marks) group by class from student;
d. Select class, max(marks) from student group by class;
III State the command to display the average marks scored by students of each gender who are 1
in class XI?
i. Select gender, avg(marks) from student where class= “XI” group by gender;
ii Select gender, avg(marks) from student group by gender where class=”XI”;
iii. Select gender, avg(marks) group by gender from student having class=”XI”;
iv. Select gender, avg(marks) from student group by gender having class = “XI”;
Choose the correct option:
a. Both (ii) and (iii) b. Both (ii) and (iv) c. Both (i) and (iii) d. Only (iii)
IV Help Ritesh to write the command to display the name of the youngest student? 1
a. select name,min(DOB) from student ;
b. select name,max(DOB) from student ;
c. select name,min(DOB) from student group by name ;
d. select name,maximum(DOB) from student;
V What will be the output of the following command? 1
Select * from student where gender =”F” order by marks;
22 Filling the blank in respect of DataFrame any four questions from (i)- (v)
I A _________function is used to display top rows (n) from dataframe. 1
III _____ refers to passing True and False value as an index in Dataframes. 1
IV ____________ method in Pandas does not raise errors for multiple entries of a row, column 1
combinations.
V By default you can display ____ no. of top/bottom rows b using head()/tail() function. 1
II Which of the following statement(s) is/are correct with respect to df.columns properties to 1
rename columns
1. All columns must be specified
2. Columns must be in the form of a list
3. Old column names not required
4. Columns can be specified with columns number
a Only 1 is correct
b 1, 2 and 3 are correct
c 1 and 3 are correct
d All of them are correct
III df.index properties can be used to 1
a. rename rows
b. rename columns
c. rename rows and columns both
d. None of these
IV To display 2 rows from the top in the dataframe, which of the following statement is correct: 1
a df.head()=2
b. df.head(n=2)
c. df.head(range(2))
d. All of the above
PART-B
Section-I
24. State any two differences between single row functions and multiple row functions. 3
OR
What is the difference between the where and having clause when used along with the select
statement. Explain with an example.
25 Consider the decimal number x with value 1547.254. Write commands in SQL to: 3
i. round it off to a whole number
ii. round it to 1 place before the decimal.
26 Anjali writes the following commands with respect to a table employee having fields, 3
empno, name, department, commission.
Command1 : Select count(*) from employee;
Command2: Select count(commission) from employee;
She gets the output as 4 for the first command but gets an output 3 for the
second command. Explain the output with justification.
27 Consider the following Series object, S_amt 3
Table 350
Chair 200
Sofa 800
Stool 150
i. Write the command which will display the name of the furniture having rent>250.
ii. Write the command to name the series as Furniture.
OR
Write the command using Insert () function to add a new column in the last place(3rd place)
named “Salary” from the list Sal=[10000,15000,20000] in an existing dataframe named
EMP already having 2 columns.
28 What will be the output of the following code? - 3
import pandas as pd
data=[1,2,3,4,5]
df=pd.DataFrame(data)
print(df)
What will Print in Output?
Section - II
29 A dataframe fdf stores data about passengers, Flights and Years. First fews of the dataframe 4
are shown below.
Year Months Passengers
0 2009 January 112
1 2009 February 118
2 2009 March 132
3 2009 April 129
4 2009 May 121
Using the above DataFrame, Write commands for the following:
(a) Compute total passengers per Year
(b) Compute average passengers per Month.
30 Write an output for SQL queries (i) to (iii) and write queries (iv) & (v) , which are based on
the tables given below (any four):
Table: STUDENT
Write the code in Pandas to create the above dataframes and write the command to perform
following operations on the dataframes Cls1 and Cls2:
(i) To subtract Cls2 from Cls1.
(ii) To add Cls1 and Cls2.
(iii) To rename column Hindi as Science in Cls1.
(iv) To change the index label of Cls1 from 2 to two and from 3 to three.
Section- III
32 Give the answer of the following: (5-Marks)
I Which of the following is NOT an intellectual property? 1
(i) A poem written by a poet
(ii) An original painting made by a painter
(iii) Trademark of a Company
(iv) A remixed song
II Fill in the blanks: 1
An act of stealing others Intellectual Property without their consent of without citing the
source is called ____________
OR
Name the cyber law enforced in India to provide legal recognition to electronic commerce
and to facilitate filing of electronic records with the Government. ____________
III Give the full form of: i) GPL ii) FLOSS 1
IV Bit-coin is a kind of ____________________ 1
V List any one disability issue faced in the using computers with respect to especially abled 1
students.
33 Give the answer of the following: (5-Marks)
I What is Plagiarism? How to avoid plagiarism. 2
II Name any two types of Cyber Crimes and give one point for each to protected. 2
III What do you mean by Phishing? Give one example 1
34 Cognisant technologies has set up their new center at Cochin for its office and web based
activities. They have 4 blocks of buildings named Block A, Block B, Block C and Block D.
Name of Block No. of Computers
Block A 25
Block B 50
Block C 125
Block D 10
Distance between the Blocks
Block A to Block B 50m
Block B to Block C 150m
Block C to Block D 25m
Block A to Block D 170m
Block B to Block D 125m
Block A to Block C 90m
I Suggest the most suitable place (i.e. block) to house the server of this organization with a 1
suitable reason.
II Suggest a cable layout of connections between the blocks. 1
III The organization is planning to link its front office situated in the city in a hilly region 1
where cable connection is not feasible. Suggest an economic way to connect it with
reasonably high speed.
IV Describe where the following devices are required? 1
(a) Hub/Switch (b) Repeater
V The organization is planning to link its Block E situated in the same city. Which type of 1
network out of LAN, WAN, MAN can be considered? Justify.
35 Give the answer of the following: (5-Marks)
I a = pd.DataFrame([1, 1, 1, np.nan], index=['a', 'b', 'c', 'd'],columns=['one']). 2
Give the output for the above statement.
II. Explain dataframe. Can it be considered as 1D Array or 2D Array? 2
III How can we check if a dataframe has any missing values? 1