 ]}

# CBSE Class 12 Informatics Practices Sample Papers 2020: New & Old CBSE Class 12 Informatics Practices Sample Papers 2020: New and Old

Check CBSE Class 12 Informatics Practices (IP) Sample Papers & its Marking Schemes. Answers of these CBSE Class 12 IP Sample Papers (Old & New) are available in their respective Marking Schemes. Links to download Sample Papers and Marking Schemes are given at the end of this article. These Sample Papers are very important for the preparation of upcoming CBSE Class 12 Informatics Practices Board Exam 2020.

## Content from CBSE Class 12 IP Sample Paper 2020 (New)

Max Marks: 70 & Time: 3 hrs

General Instructions:

- All questions are compulsory

- Question Paper is divided into 4 sections A, B, C and D.

- Section A comprises of questions (1 and 2)

(i) Question 1 comprises Data Handling-2(DH-2)(Series, Numpy)

(ii) Question 2 comprises of questions from Data Handling -2(DH-2)(Data Frames and its operations)

- Section B comprises of questions from Basic Software Engineering.

- Section C comprises of questions from Data Management-2(DM-2)

- Section C comprises of questions from Society, Law and Ethics-2(SLE-2)

Section - A

1 (a): Find the output of following program.

import numpy as np

d=np.array([10,20,30,40,50,60,70])

print(d[-4:])

(b) Fill in the blanks with appropriate numpy method to calculate and print the variance of an array.

import numpy as np

data=np.array([1,2,3,4,5,6])

print(np.___(data,ddof=0)

(c) Mr. Sanjay wants to plot a bar graph for the given set of values of subject on x-axis and number of students who opted for that subject on y-axis.

Complete the code to perform the following:

(i) To plot the bar graph in statement 1

(ii) To display the graph in statement 2

import matplotlib.pyplot as plt

x=['Hindi', 'English', 'Science', 'SST']

y=[10,20,30,40]

_____________________ Statement 1

_____________________ Statement 2

OR

Mr. Harry wants to draw a line chart using a list of elements named LIST.

Complete the code to perform the following operations:

(i) To plot a line chart using the given LIST,

(ii) To give a y-axis label to the line chart named “Sample Numbers”.

import matplotlib.pyplot as PLINE

LIST=[10,20,30,40,50,60]

_____________________ Statement 1

_____________________ Statement 2

PLINE.show()

(d) Write the output of the following code : import numpy as np

array1=np.array([10,12,14,16,18,20,22])

array2=np.array([10,12,15,16,12,20,12])

a=(np.where(array1==array2))

print(array1[a])

(e) Write a code to plot the speed of a passenger train as shown in the figure given below: Recommended Books for CBSE Class 12 IP Board Exam Preparation:

(f) What is series? Explain with the help of an example.

(g) Write a NumPy program to create a 3x3 identity matrix, i.e. diagonal elements are 1, the rest are 0. Replace all 0 to random number from 10 to 20

OR

Write a NumPy program to create a 3x3 identity matrix, i.e. non diagonal elements are 1, the rest are 0. Replace all 0 to random number from 1 to 10

(2)

(a) ______________ method in Pandas can be used to change the index of rows and columns of a Series or Dataframe :

(i) rename()

(ii) reindex()

(iii) reframe()

(iv) none of the above

(b)

Hitesh wants to display the last four rows of the dataframedf and has written the following code :

df.tail()

But last 5 rows are being displayed. Identify the error and rewrite the correct code so that last 4 rows get displayed.

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.

(c) Consider the following python code and write the output for statement S1 import pandas as pd

K=pd.series([2,4,6,8,10,12,14])

K.quantile([0.50,0.75]) ---------------------- S1

.

.

.

For all the questions & answers of this sample paper, download PDFs of Sample Paper & Marking Scheme from the links given below: