0% found this document useful (0 votes)
48 views14 pages

Informatics Practices Q & A

CLASS 12 - INFORMATICS PRACTICES Q & A

Uploaded by

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

Informatics Practices Q & A

CLASS 12 - INFORMATICS PRACTICES Q & A

Uploaded by

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

FAITH ACADEMY II

CLASS XII
INFORMATICS PRACTICES (065)
TIME: 03 HOURS M.M.: 70
General Instructions:
1. This question paper contains five sections, Section A to E.
2. All questions are compulsory.
3. Section A has 18 questions carrying 01 mark each.
4. Section B has 07 Very Short Answer type questions carrying 02 marks each.
5. Section C has 05 Short Answer type questions carrying 03 marks each.
6. Section D has 02 questions carrying 04 marks each.
7. Section E has 03 questions carrying 05 marks each.
8. All programming questions are to be answered using Python Language only.

SECTION A

1. The weakend signal appearing on the cable is regenerated and put back on the cable by a 1
.
i. Hub
ii. Modem
iii. Gateway
iv. Repeater
2. Which of the following statement will print Series “S!” in reverse order? 1
i. print (S1[: : 1])
ii. print (S1[: : -1])
iii. print (S1[-1 : : 1])
iv. print(S1.reverse())

3. The data label associated with a particular value of Series is called its . 1
i. Data Value
ii. Index
iii. Value
iv. None of the above

4. Which of the following statement will create an 1


empty series named “S1”?
i. S1 = pd.Series(None)
ii. S1 = pd.Series()
iii. Both of the above
iv. None of the above
5. Means graphical or pictorial representation of the data using graph, 1
chart, etc.
i. Data Visualization
ii. Visual Data
iii. Matplot
iv. None of the above

6. Which of the following command is correct to install matplotlib? 1


i. Pipe install matplotlib
ii. Pip install matplotlib
iii. pip install matplot
iv. pip install matplotlib

7. CSV stands for: 1


i. Column Separated Value
ii. Class Separated Value
iii. Comma Separated Value
iv. Comma Segregated Value

8. Considering following DataFrame “class” 1

Which of the following is not correct?


i. print (class.loc[:,’girls’:’subject’])
ii. print (class.loc[‘class1’:’class2’,’girls’:’subject’])
iii. print(class.loc[[‘class1’,’class2’],[‘girls’,’subject’]])
iv. print(class.loc[‘class’,’girls’])

9. function of the pyplot module is used to create a figure / chart/ plot. 1


i. show( )
ii. ploting( )
iii. plot( )
iv. plots( )
10. Which of the following is not true about DataFrame? 1
i. A DataFrame object can be created by passing dictionaries.
ii. A DataFrame is size immutable.
iii. A DataFrame index can be string.
iv. A column of DataFrame can have data of different types.

11. Function is used to display figure / chart. 1


i. showing( )
ii. show( )
iii. display( )
iv. screen( )

12. In Python Pandas, while performing mathematical operations on series, index matching 1
is implemented and all missing values are filled in with _by default.
i. Null
ii. Blank
iii. NaN
iv. Zero

13. A is any symbol that represents a data value in a line chart. 1


i.marker
ii. mark
iii. marks
iv. none of the above

14. Name of the figure is passed to the function as parameter. 1


i. plot( )
ii. show( )
iii. savefig( )
iv. None of the above

15. Which of the following pyplot function is used to set the label for the x-axis. 1
i. Xlabeled( )
ii. Xlabel( )
iii. xlabel( )
iv. x_axis_label( )
16. To show the grid lines in plot, we can write . 1
i. plt.grid( )
ii. plt.grid(True)
iii. Both of the above
iv. None of the above

17. Assertion (A):- MODEM stands for modulator-demodulator. 1


Reasoning (R): - It is a computer hardware device that converts data from a digital
format to analog and vice versa.
i. Both A and R are true and R is the correct explanation for A
ii. Both A and R are true and R is not the correct explanation for A
iii. A is True but R is False
iv. A is false but R is True

18. Assertion (A):- When DataFrame is created with list of dictionaries, the columns are 1
created from dictionary names.
Reasoning (R): - When DataFrame is created with 2D list, column and index are
labelled to 0,1,2…. by default.
i. Both A and R are true and R is the correct explanation for A
ii. Both A and R are true and R is not the correct explanation for A
iii. A is True but R is False
iv. A is false but R is True

SECTION B

19. Write the output of the following” 2


import pandas as pd
S1 = pd.Series(range(1,15,3),index = [x for x in “super”])
Print(S1)

20. The python code written below has syntactical errors. Rewrite the correct code 2
and underline the corrections made.
Import pandas as pd
df ={"Technology":["Programming","Robotics","3D
Printing"],"Time(in months)":[4,4,3]}
df= Pd.dataframe(df)
Print(df)

Ans:
import pandas as pd
df={“Technology”:[“Programming”, “Robotics”, “3DPrinting”],
“Time(in months)”:[4,4,3]}
df=pd.DataFrame(df)
print(df)
2
21. Which attribute of DataFrame is used for the following?
i. To display row labels. DataFrame.index
ii. To display data type of each column in the DataFrame. DataFrame.dtypes
iii.To display number of rows and columns in a tuple.DataFrame.shape
iv.To transpose the DataFrame.DataFrame.T

22. Sahil, a class X student, has just started understanding the basics of internet and web 2
technologies. He is a bit confused in between the terms “World Wide Web” and “Internet”.
Help him in understanding both the terms with help of suitable examples of each.

23. Differentiate between Router and Gateway. 2

24. Complete the given Python code to get the required output.
import pandas as pd
L1=[[“Aman”,45],[“Ankit”,56],[“ Sunita “,67]]
DF = pd. DataFrame (L1, columns
=[“Name”,”Marks”],
index = [ 1,2,3 ])
print(DF)
25. Write a program to create a Series whose values are characters of the name accepted from 2
the user.

SECTION C

26. Write the statements in python to plot line chart “Name” vs “Quantity” within the 3
following data.
Name = [“Keyboard”, “RAM”, “Mouse”]
Quantity = [10,7,20]

27. Create a DataFrame in Python from the given list: [[‘Divya’,’HR’,95000], 3


[‘Mamta’,’Marketing’,97000],[‘Payal’,’IT’,980000],
[‘Deepak’,’Sales’,79000]]
Also give appropriate column headings as shown below:

28. Write the output of the following code: 3


import pandas as pd
S1 = pd . Series ([2,5,7,10])
print(S1+2)
print(S1 *2)
print (S1 **2)
print(S1 – 2)
print(S1>2)
print(S1//2)

29 Consider the following Series S1 3

Write Suitable python statement for the following:


i.To Assign name “Score” to the Series S1.
ii. To print a list of the values in the series.
iii.To Assign index name “RollNo” to the series.
i.S1.name= “Score”
ii.print(S1.values)
iii.S1.index.name= “RollNo”

30 Write python code to plot horizontal bar chart for class wise result analysis as shown below. 3
Give appropriate chart title and axes labels

SECTION D

31 The heights of 10 students of eighth grade are given below: 4

Height_cms=[145,141,142,142,143,144,141,140,143,144]
Write suitable Python code to generate a histogram based on the given data, along
with an appropriate chart title and both axis labels.
Also give suitable python statement to save this chart.

32 Ekam, a Data Analyst with a multinational brand has designed the DataFrame 4
df that contains the four quarter’s sales data of different stores as shown below:
Store Qtr1 Qtr2 Qtr3 Qtr4 0
Store1 300 240 450 230
Store2 350 340 403 210
Store3 250 180 145 160

Answer the following questions:


i. Predict the output of the following python statement:
a. print(df.size)
b. print(df[1:3])
ii. Display the last row from the DataFrame.
iii. Write Python statement to add a new column Total_Sales which is the addition of all
the 4 quarter sales.
iv. Write Python statement to export the DataFrame to a CSV file named data.csv
stored at D: drive.
SECTION E

33. Consider the given DataFrame ‘Genre’: 5


Type Code
0 Fiction F
1 Non Fiction NF
2 Drama D
3 Poetry P

Write suitable Python statements for the following:


i. Add a column called Num_Copies with the following data:
[300,290,450,760].

ii. Rename the column ‘Code’ to ‘Book_Code’.


iii. Add a new genre of type ‘Folk Tale' having Book_Code as “FT” and 600 number of
copies.
iv.Rename row label 4 to Movie1, 5 to Movie2, 6 to Movie3, 7 to Movie4, 8 to Movie5
v. Remove the row labelled Movie3.

v. Genre=Genre.rename({4: “Movie1”,5: “Movie2”,6: “Movie3”,7: “Movie4”,8:


“Movie5”}, axis=”index”)
vi. Genre=Genre.drop(“Movie3”, axis=0)
34. Write python code to plot a bar chart shown below. Colour of each bar is given below: 5
 UP – Black
 AP – Magenta
 Kerala – Cyan
 Gujarat – Green
 Punjab – Yellow
35 XYZ Media house campus is in Delhi and has 4 blocks named Z1, Z2, Z3 and Z4. The 5
tables given below show the distance between different blocks and the number of
computers in each block.
The company is planning to form a network by joining these blocks.
i. Out of the four blocks on campus, suggest the location of the server that will provide
the best connectivity. Explain your response.
ii .For very fast and efficient connections between various blocks within the campus,
suggest a suitable topology and draw the same.
iii. Suggest the placement of the following devices with justification
(a) Repeater
(b) Hub/Switch
iv. Which of the following communication media, will you suggest for very effective
communication?
(a) Telephone cable
(b) Optical fiber
(c) Ethernet cable
v. The XYZ Media House intends to link its Mumbai and Delhi centers. Out of LAN,
MAN, or WAN, what kind of network will be created? Justify your answer.

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