CBSE
Board Central Board of Secondary Education [CBSE]
Class 12th / XII
Download Question Bank
Subject Informatics Practices
Document Type PDF
Official Website http://cbseacademic.nic.in/

CBSE Class XII Informatics Practices Question Bank

Central Board of Secondary Education [CBSE] Class 12th Informatics Practices Question Bank With Answer Key

Download CBSE Class 12th All Subjects Question Bank With Answer Key 2021 Here

Download Class 12th Informatics Practices Question Bank

Class & Subjects Question Bank
Class XII Informatics Practices
Download

CBSE Class XII Informatics Practices Sample Questions

Q.1. Mr. Ankit is working in an organisation as data analyst. He uses Python Pandas and Matplotlib for the same. He got a dataset of the passengers for the year 2010 to 2012 for January, March and December. His manager wants certain information from him, but he is facing some problems. Help him by answering few questions given below:

Code to create the above data frame:
import pandas as ____________ #Statement 1
data={“Year”:[2010,2010,2012,2010,2012],”Month”:[“Jan”,”Mar”,”Jan”,”Dec”,”Dec”]
,”Passengers”:[25,50,35,55,65]}
df=pd.____________________(data) #Statement 2
print(df)

i. Choose the right code from the following for statement 1.
i. pd
ii. df
iii. data
iv. p

Answer: (i) pd

ii. Choose the right code from the following for the statement 2.
i. Dataframe
ii. DataFrame
iii. Series
iv. Dictionary

Answer: (ii) DataFrame

iii. Choose the correct statement/ method for the required output: (5,3)
i. df.index
ii. df.shape()
iii. df.shape
iv. df.size

Answer: (iii) df.shape

Q.2. Mr. Sharma is working in a game development industry and he was comparing the given chart on the basis of the rating of the various games available on the play store.

He is trying to write a code to plot the graph. Help Mr. Sharma to fill in the blanks of the code and get the desired output.

import__________________________ #Statement 1
Games=[“Subway Surfer”,”Temple Run”,”Candy Crush”,”Bottle Shot”,”Runner
Best”]
Rating=[4.2,4.8,5.0,3.8,4.1]
plt.______________(Games,Rating) #Statement 2
plt.xlabel(“Games”)
plt.______________(“Rating”) #Statement 3
plt._______________ #Statement 4

i. Choose the right code from the following for statement 1.
i. matplotlib as plt
ii. pyplot as plt
iii. matplotlib.pyplot as plt
iv. matplotlib.plt as pyplot

Answer. (iii) matplotlib.pyplot as plt

ii. Identify the name of the function that should be used in statement 2 to plot the above graph.
i. line()
ii. bar()
iii. hist()
iv. barh()

Answer:(ii) bar()

iii. Choose the correct option for the statement 3.
i. title(“Rating”)
ii. ytitle(“Rating”)
iii. ylabel(“Rating”)
iv. yaxis(“Rating”)

Answer: (iii) ylabel(“Rating”)

iv. Choose the right function/method from the following for the statement 4.
i. display()
ii. print()
iii. bar()
iv. show()

Answer: (iv) show()

v. In case Mr. Sharma wants to change the above plot to the any other shape, which statement, should he change.
i. Statement 1
ii. Statement 2
iii. Statement 3
iv. Statement 4

Answer: Statement 2

Similar Searches:
cbse question bank 2021 class 12 , cbse question bank class 12 , cbse question bank 2021 , cbse question bank 2021 class 12 cbse nic , cbse question bank 2021 class 12 pdf, cbse question bank answers , cbse question bank answer key , cbse academic question bank , cbse academic question bank class 12 , cbse accountancy question bank , question bank by cbse , cbse board question bank , cbse board question bank 2021 , cbse question bank class 12 2021 , cbse question bank for class 12 , cbse question bank for class 12 2021 , cbse question bank for class 12th

Have a question? Please feel free to reach out by leaving a comment below

(Visited 523 times, 1 visits today)

Leave a Reply

Your email address will not be published. Required fields are marked *