Cbse Class 12 Informatics Practices Term1 Solved Question Paper 2022
Cbse Class 12 Informatics Practices Term1 Solved Question Paper 2022
Informatics practices
Previous Year Question Paper 2022 - Term 1
Series: SSK/3 SET - 4
Q.P. Code 090
i. Please check that this question paper contains 16 printed pages.
ii. Please check that this question paper contains 55 multiple choice
questions (MCQs).
iii. Q.P. Code given on the right hand side of the question paper should be
written on the appropriate place of the OMR Sheet by the candidates.
iv. 20 minutes additional time has been allotted to read the question paper
prior to actual time of commencement of examination.
Informatics Practices
(Term – I)
Time allowed : 90 minutes Maximum
Marks : 35
General Instructions:
i. This question paper is divided into 3 Sections - A, B and C.
ii. Section - A consists of Questions 1 to 25. Students need to attempt 20
questions.
iii. Section - B consists of Questions 26 to 49. Students need to attempt 20
questions.
iv. Section C consists of Questions 50 to 55. Students need to attempt 5
questions.
v. All questions carry equal marks.
SECTION-A
Section A consists of 25 questions. Attempt any 20 questions.
1. Which of the following statements is wrong?
Ans: In the following statement, We are creating a series of 4 values but the
index is only 3 (a,b,c) which should be equal to the size of the series. So, it
will give a Value Error. the correct statement will be pa. Series ([1,2,3,4],
index = ['a', 'b', 'c', ‘d’]). Hence, the correct option is ‘a’.
3. Which is incorrect statement for the python package Numpy?
a. It is a general-purpose array-processing package.
b. Numpy arrays are faster and more compact
c. It is multi-dimensional arrays
d. It is proprietary software
Ans: Numpy is not a proprietary software. It is an open-source software and
has many contributors. you can use it freely by just importing into
your project using the syntax import numpy. Hence, the correct option
is ‘d’.
4. The data of any CSV file can be shown in which of the following
software?
a. Panda b. Numpy
c. Matplotlib d. Tkinter
Ans: Pandas, Numpy & matplotlib all of this library is used for data science
if assuming panda is a typographical error of pandas.Tkinter is a python
framework which is used to create GUIs(Graphical User Interface)
application. Hence, the correct option is ‘d’.
6.Which method is used to Delete row(s) from Data Frame?
a. d=L*3 b. data=L**3
c. L*3 d. [10,20]**3
Ans: 1000 and 8000 are the cube of 10 and 20 respectively. Finding the cube
of L array will give the 1000 of 10 and 8000 of 20. L **3 will find the cube of
each element of the array and return the cubed array. Hence, the correct option
is ‘b’.
8.Which library is imported to draw charts in Python?.
a. csv b. matplotlib
c. numpy d. pandas
Ans: Matplotlib library in Python imported to draw charts. csv is not a library,
numpy is a python library used to working with arrays, pandas is also a python
library which is used for data manipulation and analysis. Hence, the correct
option is ‘b’.
9.Which of the following would give the same output as DF/DF1 where
DF and DF1 are DataFrames.
a. DF.div(DF1) b. DF1.div(DF)
c. Divide(DF,DF1) d. Div(DF,DF1)
a. size b. type
c. empty d. columns
Ans: size, empty,columns all are these are the attributes of dataFrame. type is
not an attribute and doesn’t exist in the dataframe. Hence, the correct option is
‘b’.
12. With the outset of Covid-19 schools started online classes but
continuous online classes students’ health issues also started. The
practitioner advised the parents to follow a few health tips. Which
following health tip should not be suggested?
a. The sitting posture should be correct
b. Breaks should be taken in between the online classes.
c. To protect the eyes the gadgets should be placed above eye level.
d. Wash the eyes regularly.
Ans: To Protect the eye, gadgets should not be placed above the eye. It should
be at a straight level or below your eyes.Sitting posture, break in between the
online classes and washing the eyes regularly are all health tips. Hence, the
correct option is ‘c’.
13. The following is automatically granted to the creator or owner of any
invention.
a. Patent b. Copyright
a. Patent b. Copyright
c. Design d. Trademark
Ans: Trademarks are used to show that the product is made by which
company. which distinguishes you from others from other competitors. Hence,
the correct option is ‘d’.
15. GPL stands for?
Ans: GPL – general Public License. Hence, the correct option is ‘b’.
16. E- waste is becoming one of the fastest growing environmental
hazards in the world today. If it is not properly treated or disposed of it can
cause serious health hazards, therefore The ______ has issued a formal set
of guidelines for proper handling and disposal of e-waste.
a. Central Pollution Control Board (CPCB)
b. Department of Information Technology (DIT)
c. Electrical and Electronic Equipment (WEEE)
d. Information Communication Technology (ICT)
Ans: CPCB manages environmental data statistics and conducts environmental
assessment research in India. They have issued a formal set of guidelines for
proper handling and disposal of e-waste. Hence, the correct option is ‘a’.
a. hwidth b. width
c. breath d. barwidth
Ans: ‘width’ is a property used to change the width of bars in a bar chart.
Hence, the correct option is ‘b’.
19. Identify the correct option to select first four rows and second
columns from a DataFrame 'Data'
Ans: Data.iloc[0: 4, 1:4] is the correct option to select the first four rows and
second columns because indexing starts with 0(zero). Hence, the correct option
is ‘c’.
20. Which of the following commands is used to import matplotlib
for coding?
a. size b. len
Ans: In options, len and count are methods not an attribute. count total is not
an attribute or method, it’s a invalid option. Size is an attribute which is used
with a series to count the total number of NaN values. Hence, the correct
option is ‘a’.
24. Consider the following Series in Python :
data = pd.Series([5, 2, 3,7], index=['a', 'b', 'c', 'd'])
Which statement will display all odd values
a.print(data%2==0) b. print(data(data%2!=0))
Ans: data [ data % 2 != 0] is the correct syntax to print all odd values. Firstly
data % 2 != 0 gives the Boolean result of the series which value is odd or not.
data [ data % 2 != 0] will print the all odd values of the series. Hence, the
correct option is ‘d’.
25. Priya is a student of class 10 and she is a very frequent user of
internet applications. One day she got an unpleasant message on her
instant messenger. What do you think she should do?
a. Start chatting with an unknown person.
b. talk to her parents/teacher or other trusted adult and let them know
that she is feeling uncomfortable.
c. Ignore the conversation.
d. She should delete the chat so that no one comes to know
Ans: Talk to her parent/teacher or other trusted adult and let them know that
she is feeling uncomfortable is the correct decision for the following situation.
Hence, the correct option is ‘b’.
SECTION – B
Section B consists of 24 questions (26-49). Attempt any 20 questions
26. What will be the output of the following code?
0 False 1 54 0 31 1 True
1 True 3 89 1 54 3 True
2 False dtype: int64. 3 89 dtype: bool
3 True 4 12
4 False 5 23
5 False dtype: int64
dtype: bool
Ans: s>50 checks every element of the series with condition individually and
returns a bool type i.e. either True or False26. for each one of them. Hence, the
correct option is ‘a’.
27. The primary law in India dealing with cybercrime and
electronic commerce is?
a. India’s Technology ( IT ) Act, 2008
b. India’s Digital Information Technology (DIT) Act, 2000
c. India’s Information Technology (IT) Act, 2000
d. The Technology Act, 2008
Ans: The Information Technology Act, 2000 (also known as ITA-2000, or the
IT Act) is an Act of the Indian Parliament notified on 17 October 2000 ,
dealing with cybercrime and electronic commerce. Hence, the correct option is
‘c’.
28. Consider the following statement with reference to Trademark
and Hacking
Statement 1: Trademark is a document that provides legally binding
guidelines for the use and distribution of software.
a. print(df.index( )) b. print(df.dhape( ))
c. print(df.ndim( )) d. print(df.values( ))
a. df.head( ) b. df.last(4)
c. df.tail(4) d. df.rows(4)
Ans: plagiarism is the act of copying another person’s ideas, words or work
and pretending they are your own without acknowledgement. Hence, the
correct option is ‘b’.
32. A contract between the creator and the user to allow the user
use his/her work with some price is
a. Agreement b. Copyright
c. License d. Patent
Ans: This type of contracts are called License, which allows one party to use
another one's material for generating revenue by giving a fixed amount or
percentage of profits. Hence, the correct option is ‘c’.
33. Consider the following series
Ser = pd.Series( [ ‘C’, ‘O’, ‘M’, ‘F’, ‘O’, ‘R’, ‘T’, ‘A’, ‘B’, ‘L’, ‘E’],
index = [1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11])
print (ser [4 : ] )
4 F 4 F 4 F 5 O
5 O 5 O 5 O 6 R
6 R 6 R 6 R 7 T
7 T 7 T 7 T 8 A
8 A 8 A 8 A 9 B
9 B 9 B 10 L
dtype: object
10 L 11 E
dtype: Object
11 E
dtype: Object
dtype: Object
Ans: s[x:] returns elements from index x+1 to last index , it excludes index x.
print (ser [4 : ] ) will print index 5 to last index. Hence, the correct option is
‘d’.
a. Nowadays for developing Machine Learning projects programmers
rely on CSV files rather than databases. Why ?
b. csv can be used with proprietary softwares only.
c. csv files can be downloaded from open-source websites free of cost.
d. csv files need not be imported while creating the projects.
e. csv is a simple and well formatted mode for data storage.
Ans: csv files are simple and easy storage for data whereas databases are very
big and heavy software. Hence, the correct option is ‘d’.
35. Companies get their Trademark registered to protect ?
a. logos, names and brand
b. word, phrase or symbol
c. slogans, stylized fonts and colors
a. lists b. dictionaries
Ans: Dataframe can be created from lists, series, dictionaries. Hence, the
correct option is ‘d’.
37. Rohit forgot his laptop in his car and when he came back he found
his laptop was missing. This act is
a.
b.
Ans: columns parameter can be used to select specified columns,it can also be
used to provide customized column labels in the dataframe. If the column
name is not defined by default. In this question, columns are Name and Age
given so the name and age column with index will print. Hence, the correct
option is ‘d’.
43. Consider the following code
import pandas as pd
S1 = pd.Series([23,24,35,56], index = [‘a’, ‘b’, ‘c’, ‘d’])
S2 = pd.Series([27,12,14,15], index = [‘b’, ’y’, ‘c’, ‘ab’])
df = pd.DataGrame(S1 + S2)
print(df)
Output for the above code will be
b. O
a 50
b 36
c 49
d 71
c. O
b 50
y 36
c 49
ab 71
d. O
a NaN
ab NaN
b NaN
c NaN
d NaN
Ans: when two Series objects are added together , then missing values are
filled with NaN if column is not present in both objects and if values are
present in both objects then value is calculated and replaced with new value.
Hence, the correct option is ‘a’.
44. Sudhanshu has written the following code to create a DataFrame
with Boolean index :
import numpy as np
import pandas as pd
df = pd.DataFrame ( data = [ [ 5, 6, 7] ], index = [ true, false,
true ] )
print ( df )
While executing the code, she is getting an error, help her to
rectify the code :
a. df = pd.DataFrame([True, False, True], data=[5,6,7])
b. df = pd.DataFrame(data = [5,6,7], index = [True, False, True])
c. df = pd.DataFrame([true, false, true], data = [5, 6, 7])
d. df = pd.DataFrame(index = [true, false, true], data = [[5, 6, 7]] )
Ans: In python, ‘true’ and ‘false’ are not defined keywords, ‘True’ and ‘False’
are defined keywords T and F of True and False are in uppercase. Hence, the
correct option is ‘b’.
45. The rights of the owner of information to decide how much
information is to be shared/exchanged/distributed, are collectively known
as ________.
Ans: The rights of the owner of the information to decide how much
information is to be exchanged, shared or distributed are called Intellectual
property rights. Hence, the correct option is ‘c’.
46. Abhilasha forgot to sign out from her gmail id and Aditi used
Abhilasha’s gmail id to send mail. This act of Aditi is Considered as
a. Cyberbullying b. Phishing
Ans: Digital Footprint is the data that is left behind when someone uses
internet for any kind of activity through any digital electronic device such as
smartphone, laptop, Computer etc. Hence, the correct option is ‘c’.
48. _______ operating system comes under FOSS.
a. Windows b.Ubuntu
c. Mac d.Oracle
Ans: FOSS refers to Free and Open Source Software. Oracle Solaris is
completely open source and Free, that is why it comes under FOSS, while
Ubuntu, Microsoft and Mac are privately owned and their source codes are not
available to everyone. Hence, the correct option is ‘d’.
49. Sushila has created a DataFrame with the help of the following code;
import pandas
c. print(EMP[loc[0:3,:]]) d. print(df.loc[‘001’:’004’,:])
Ans: column names are in string format ( ‘001’ ) that is why when trying to
access it we have to reference it as it is not as integers. Hence, the correct
option is ‘b’.
SECTION - C
Section C consists of 6 questions( 50 – 55 ). Attempt any 5 questions
Case Study
Ms Ramdeep Kaur maintains the records of all students of her class. She
wants to perform some operations on the data:
Code:
import pandas as pd
a. print(df.iloc[2]) b. print(df.loc[2])
c. print(df.iloc[20]) d. print(df.loc[20])