0% found this document useful (0 votes)
50 views2 pages

Kendriya Vidyalaya No. 3, Nal, Bikaner SESSION: 2021-22 Unit Test - 1

The document is a practice test for Class 12 students on the subject of Informatics Practices. It contains multiple choice and multi-part questions to test students' knowledge of Python, Pandas, and data visualization. The questions cover topics like dataframes, series, loading and manipulating CSV data, plotting graphs, and more.

Uploaded by

megha panwar
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
50 views2 pages

Kendriya Vidyalaya No. 3, Nal, Bikaner SESSION: 2021-22 Unit Test - 1

The document is a practice test for Class 12 students on the subject of Informatics Practices. It contains multiple choice and multi-part questions to test students' knowledge of Python, Pandas, and data visualization. The questions cover topics like dataframes, series, loading and manipulating CSV data, plotting graphs, and more.

Uploaded by

megha panwar
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 2

KENDRIYA VIDYALAYA NO.

3, NAL, BIKANER
SESSION : 2021-22
UNIT TEST – 1
CLASS: XII SUBJECT: INFORMATICS PRACTICES
M.M.: 50 TIME: 2 HRS.

Q.NO. QUESTION MARKS


1 Fill in the blanks:
a A _________ is a Pandas data structure that represents a 2-D array like 1
object.
b To specify _______ for a Series object, dtype argument is used. 1
c The _____ function on Series object returns only the count of non-NaN 1
values in it.
d To access individual value, you can DF.________ using row/column integer 1
position.
e In a DataFrame, Axis = 1 represents the _______ elements. 1
f Pyplot’s _________ function is used to create horizontal bar charts. 1
g To save a plot, _______ function is used. 1
h The _______ argument of hist() is set to create a horizontal histogram. 1
i To specify the string to represent NaN values in a CSV file, ________ 1
argument in to_sql() is used.
j To load data of a CSV file in a dataframe _________ function is used. 1
k A _________ is a Pandas data structure that represents a 1-D array like 1
object.
l The _____ function on Series object returns total elements in it including 1
NaNs.
m To access individual value, you can DF.________ using row/column index 1
labels.
n The rename() function requires ______ argument to make changes in the 1
original dataframe.
o To concatenate 2 string columns of a dataframe, ______ operator is used. 1
p A _____ is a plot that shows the underlying frequency distribution of a set 1
of continuous data.
q Python interface is a collection of methods within ______ library of 1
Python.
r Full form of CSV is _____________. 1
s To suppress first row as header, ___________ argument is given in 1
read_csv().
t _____________ is given to skip first 5 rows of a csv file in read_csv(). 1
u The command used to give a heading to a graph is ____________. 1
v ______ function is used to display first 6 rows of a dataframe. 1
w ____ attribute returns number of dimensions of the given data structure. 1
x To iterate over vertical subsets of a dataframe, ______ function is used. 1
y If a dataframe is created using a 2D dictionary, then the indexes/row 1
labels are formed from ___________.
2 a What is the relationship between the rank and shape of an array? 2
b What will be the output of the following program? 2
import pandas as pd
info = pd.Series ( data = [31, 41, 51] )
print (info)
print (info > 40)
c Write a program to create a series object using an ndarray that has 5 2
elements in the range 24 to 64.
d Write a program to create a series object using a dictionary that stores the 2
number of students in each section of class 12 in your school.
e Given a dataframe namely abc that stores the data of NGOs for different 2
states:
Toys Books Uniform Shoes
Andhra 7313 6109 595 7987
Odisha 8201 8402 673 8203
M.P. 7038 7598 601 7813
U.P. 7162 6978 599 8412
Write statement to display the data for Books and Uniform only.
3 a Given a dataframe as shown below: 3
Col 1 Col 2 Col 3
T1 100.0 100.0 60.00
T2 95.8 100.0 57.48
T3 89.3 100.0 53.58
T4 82.0 85.4 49.20
What will the following statement do?
df [‘Res’] = df [‘Col 3’] > 55
Give the resultant dataframe also.
b How is a series object different from & similar to ndarray? Give example. 3
c Write a python code to create a dataframe with appropriate headings 3
from the list given below:
[‘S101’,’Amy’,70],[‘S102’,‘Bandhi’,69],[‘S104’,‘Cathy’,75],[‘S105’,‘Gun’,82]
d Draw the resultant graph of this code: 3
import matplotlib.pyplot as plt
plt.show([2,7],[1,6])
plt.show()
e What is the significance of data visualization? 1
f Write a program to read from a csv file emp.csv and create a dataframe 2
from it but dataframe should not use file’s column header rather should
use own column numbers as 0, 1, 2 and so on.

You might also like

pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy