BEST Term 1 IP Sample Paper Class 12 2021 with Solutions

Share with others

IP Sample Paper Class 12 2021 with Solutions


1. Term 1 IP Sample Paper Class 12 2021 with SolutionsPaper 1

2. Term 1 IP Sample Paper Class 12 2021 with SolutionsPaper 2

3. Term 1 IP Sample Paper Class 12 2021 with SolutionsPaper 3


IP Sample Paper Class 12 2021 with Solutions

IP Sample Paper Class 12 2021 with Solutions
IP Sample Paper Class 12 2021 with Solutions
                                                IP Sample Paper Class 12 2021 with Solutions


                                                                Syllabus of IP - TERM 1

Unit 1:

Data Handling using Pandas and Data Visualization

Data Handling using Pandas -I

● Introduction to Python libraries- Pandas, Matplotlib.Data structures in Pandas - Series and data frames.Series: Creation of series from
dictionary, scalar value; mathematical operations; series attributes, head and tail functions;
selection, indexing and slicing.

● Data Frames: creation of data frames from dictionary of series, list of dictionaries, text/CSV
files, display, iteration. Operations on rows and columns: add ( insert /append) , select,
delete (drop column and row), rename, Head and Tail functions, indexing using labels,
Boolean indexing.

Data Visualization

● Data Visualization : Purpose of plotting, drawing and saving of plots using Matplotlib (line
plot, bar graph, histogram). Customizing plots:; adding label, title, and legend in plots.

Unit 4:

Societal Impacts

● Digital footprint, net and communication etiquettes,
● Data protection, intellectual property rights (IPR), plagiarism, licensing and copyright,
● Free and open source software (FOSS),
● Cybercrime and cyber laws, hacking, phishing, cyber bullying, overview of Indian IT Act.
● E-waste: hazards and management. Awareness about health concerns related to the usage




                                                IP Sample Paper Class 12 2021 with Solutions
IP Sample Paper Class 12 2021 with Solutions
IP Sample Paper Class 12 2021 with Solutions

IP Sample Paper Class 12 2021 with Solutions


Time: 90 min                                                                                                                  MM : 35

General Instructions:

  1. The paper is divided into 3 Sections- A, B and C.
  2. Section A, consists of Question 1 to 25 and student need to attempt 20 questions.
  3. Section B, consists of Question number 26 to 49 and student need to attempt 20 questions.
  4. Section C, consists of Question number 50 to 55 and student need to attempt 5 questions

Section – A

Section A consists of 25 questions, attempt any 20 questions

Q1. NumPy, Pandas and Matplotlib are three Python __________ for scientific and analytical use.

  1. Libraries
  2. Models
  3. Programs
  4. Modules

Q2. Numpy stands for ________________

  1. Number Python
  2. Numerical Python
  3. Numerical Python Programs
  4. None of the above

Q3. Which of the following data structure help to analyse data in python?

  1. Series
  2. DataFrame
  3. Both of the above
  4. None of the above

Q4. Which of the following command is used to uninstall pandas?

  1. pip install pandas
  2. pip uninstall pandas
  3. uninstall pandas
  4. uninstall pip pandas

Q5. The ___________library in Python is used for plotting graphs and visualization.

  1. Matplotlib
  2. Series
  3. DataFrame
  4. Pandas

IP Sample Paper Class 12 2021 with Solutions

Q6. The following code is creating series from ______________________

>>> import pandas as pd
>>> series1 = pd.Series([1,2,3])
  1. Scalar Values
  2. NumPy Arrays
  3. Dictionary
  4. None of the above

Q7. Which of the following are examples of visualization that we come across in our daily life?

  1. Traffic symbols
  2. Ultrasound reports
  3. Speedometer of a vehicle
  4. All of the above

Q8. Which module of matplotlib library is to be imported for plotting chart/graph?

  1. pyplot
  2. pieplot
  3. penplot
  4. PyPlot

Q9. ___________ function is used to create dataframe?

  1. Dataframe( )
  2. DataFrames( )
  3. DataFrame( )
  4. DF( )

Q10. Which of the following is not the component of chart/plot?

  1. Chart Label
  2. xticks
  3. Legend
  4. Yticks

IP Sample Paper Class 12 2021 with Solutions

Q11.  ______________ is a trail of data reflecting user’s activities, actions, communications or transactions in digital media.

  1. Digital Finger Print
  2. Digital Footprint
  3. Digital Hand print
  4. Digital data

Q12. Which of the following are the characteristics of responsible netizen?

  1. Should not use copyrighted materials.
  2. Avoid cyber bullying.
  3. Respect Privacy of others
  4. All of the above

Q13. IPR stands for ___________________

  1. Intellectual Personal Rights
  2. Intellectual Property Response
  3. Intellectual Property Right
  4. Intelligent Property Right

Q14.How many rows will be there in the dataframe “DF” created below :

>>> “DF” = pd.DataFrame([seriesA, seriesB])

  1. 1
  2. 2
  3. 3
  4. 4

Q15. A patent protects an invention for ______ years, after which it can be freely used.

  1. 20
  2. 10
  3. 30
  4. 15

IP Sample Paper Class 12 2021 with Solutions

Q16. Which of the following is not a violation of IPR?

  1. Plagiarism
  2. Copyright Infringement
  3. Patent
  4. Trademark Infringement

Q17. Which of the following statement adding a new column “Marks” to Dataframe “DF”?

  1. DF[“Marks”] = [23, 24, 32]
  2. DF_Marks = [23, 24, 32]
  3. DF.Marks = [23, 24, 32]
  4. DF.loc[“Marks”] = [23, 24, 32]

Q18. Ravi copied some content from Internet and presenting as his own work. This act of Ravi is considered as ______________

  1. Copyright Infringement
  2. Patent
  3. Plagiarism
  4. All of the above

Q19. Which of the following function is used to add new row in Dataframe?

  1. loc( )
  2. row( )
  3. Loc( )
  4. Row( )

Q20. Which of the following are categories of public licenses.

  1. GPL
  2. CC
  3. Both of the above
  4. None of the above

IP Sample Paper Class 12 2021 with Solutions

Q21. __________ is a free and open source browser.

  1. Ubuntu
  2. Mozilla Firefox
  3. Microsoft Edge
  4. Google Chrome

Q22. Which of the following is not the cyber-crime?

  1. Hacking
  2. Phishing
  3. Cyber bullying
  4. Patent

Q23. We cannot perform the ___________ operation on dataframe.

  1. Adding a new column
  2. Adding a new row
  3. Deleting a row
  4. None of the above

Q24. _______________ function is used to delete a column from a Dataframe.

  1. del( )
  2. delete( )
  3. drop( )
  4. crop( )

Q25. ____________ function returns the total values present in the dataframe?

  1. shape( )
  2. size( )
  3. values( )
  4. no_of_values( )

IP Sample Paper Class 12 2021 with Solutions

IP Sample Paper Class 12 2021 with Solutions
IP Sample Paper Class 12 2021 with Solutions

Section – B

Section B consists of 24 Questions (26 to 49). Attempt any 20 questions

Q26. Write the output of the following code:

import pandas as pd
s2 = pd.Series(["K","S","Ri"], 
index=[3,5,1])print(s2[0])
  1. K
  2. S
  3. Error
  4. Ri

Q27. Which of the following statement will return error? Assuming that import statement is already there.

  1. S1 = pd.series([1, 2, 3])
  2. s1 = pd.Series({1,2,3})
  3. Both of the above
  4. None of the above

Q28. Ravi wants to add two series ‘S1’ and ‘S2’. His friend Raman suggested him four statements. Help him to find the correct one.

  1. S1 + S2
  2. S1.add(S2)
  3. Both of the above
  4. S1.sum(S2)

Q29. To ensure good health of a computer system, we should :

  1. Regularly clean it to keep the dust off.
  2. Wipe monitor’s screen often using the regular microfiber soft cloth.
  3. not eat food or drink over the keyboard.
  4. All of the above

Q30. Amit is trying to plot a graph. He writes the following code but still the graph is not visible. Please help him to find the missing statement.

import matplotlib.pyplot as plt 
date=["25/12","26/12","27/12"] 
temp=[8.5,10.5,6.8] 
plt.plot(date, temp)
  1. plt.Show( )
  2. plt.display( )
  3. plt.show( )
  4. plt.disp( )

IP Sample Paper Class 12 2021 with Solutions

Q31. Read the statements given below and identify the right option.

Statement A : A marker is any symbol that represents a data value in a line chart or a scatter plot.

Statement B : We can either use character codes or the color names as values to the parameter color in the plot().

  1. Statement A is correct
  2. Statement B is correct
  3. Statement A is correct, but Statement B is incorrect
  4. Statement A is correct and Statement B is also correct

Q32. ___________ are column-charts, where each column represents a range of values, and the height of a column corresponds to how many values are in that range.

  1. Bar
  2. Hist
  3. Histogram
  4. Column

Q33. Any one causing any form of pollution will pay for the damage caused. This is called __________________

  1. Pollutant pays Principle
  2. Polluter pays Principle
  3. Pollute pays Principle
  4. Pollution pays Principle

Q34. ___________ is an unlawful activity where fake websites or emails that look original or authentic are presented to the user.

  1. Phishing
  2. Email Spoofing
  3. Identity theft
  4. Hacking

Q35. Consider the following series “s1” and write the output of print(s1[1: 5 : 2]):

0    1
1    2
2    3
3    5
4    7
5    9

dtype: int64
a)	

1    1
3    3
dtype: int64

b)	

0    2
3    5
dtype: int64

c)	

1    2
3    5
dtype: int64

d)	

1    2
5    5
dtype: int64

IP Sample Paper Class 12 2021 with Solutions

Q36. Ravi is working in a company. His job is to exploit a website in order to discover its security loopholes or vulnerabilities. He then reports his findings to the website owner. Who is Ravi?

  1. Ethical hacker
  2. Unethical hacker
  3. Explorer
  4. Data Analyst

Q37. Ananya wants to delete a row (labeled as ‘science’) from a dataframe “DF”. Which of the following command is suitable for her to accomplish the task?

  1. DF.drop(‘science’, axis=0)
  2. DF.del(‘science’, axis=0)
  3. DF.drop(‘science’, axis=1)
  4. DF.del(‘science’, axis=1)

Q38. Which of the following is not an e-waste?

  1. Discarded Computer
  2. Damaged Mobile Phones
  3. Broken Speakers
  4. None of the above

Q39. Which of the following statement is correct to rename the row indices Maths to sub1, Science to sub2, Hindi to sub3 of a dataframe “DF”?

  1. DF.rename({‘Maths’ : ‘Sub1′, ‘Science’ : ‘Sub2′,’English’ : ‘Sub3′, }, axis=’Index’)
  2. DF.rename({‘Maths’:’Sub1′, ‘Science’:’Sub2′,’English’:’Sub3′, }, axis=’row’)
  3. DF.rename({‘Maths’:’Sub1′, ‘Science’:’Sub2′,’English’:’Sub3′, }, axis=’columns’)
  4. DF.rename({‘Maths’:’Sub1′, ‘Science’:’Sub2′,’English’:’Sub3′, }, axis=’index’)

Q40. NaN in the following series stands for ___________________

a      11.0

b      NaN

c      53.0

dtype: float64

  1. None and None
  2. Not a None
  3. Not a Number
  4. Number a Not

IP Sample Paper Class 12 2021 with Solutions

Q41. Which of the following is not associated with violation of IPR?

  1. Plagiarism
  2. Copyright Infringement
  3. Trademark Infringement
  4. Patent

Q42. Data frame in python cannot be created from:

  1. NumPy ndarrays
  2. List of Dictionaries
  3. Series
  4. Tuple of Dictionary

Q43. Write the code to display values greater than 3, from the series “s1”

  1. print(s1[s1>3])
  2. print([s1>3])
  3. print(s1.[s1>3])
  4. print(s1_s1>3)

Q44. Sunil is learning and practicing the coding of Dataframe in Python. By mistake he executes the following command.

DF[ : ] = 0 #”DF” is a dataframe

What will happen to the dataframe “DF” after executing the above code?

  1. Set all values in DF to 0
  2. Set all values of first row to 0.
  3. Set all values of first column to 0
  4. None of the above

Q45. The name and logo of the software will be protected by:

  1. Copyright
  2. Patent
  3. Trademark
  4. Plagiarism

IP Sample Paper Class 12 2021 with Solutions

Q46. Consider the following dataframe “DF”.

2014        2015     2016      2017

Mina      100.5     12000   20000     50000

Kiran      150.8     18000    50000     60000

Anil        200.9     22000    70000     70000

Amit      30000    30000    100000   80000

Which of the following command returns(4, 4)?

  1. DF.size
  2. DF.shape
  3. DF.values
  4. DF.columns

Q47. Which of the following command is loading the data from “task.csv” to the dataframe “DF”?

  1. DF = DF.read_csv(“C:/NCERT/task. csv”)
  2. DF = pd.Read_csv(“C:/NCERT/task. csv”)
  3. DF = pd.read_csv(“C:/NCERT/task. csv”)
  4. DF = pd.reading_csv (“C:/NCERT/task. csv”)

Q48. Which of the following is not the attribute of dataframe?

  1. index
  2. columns
  3. Transpose
  4. values

Q49. Read the statements given below. Identify the right option from the following for Attribute and method/function.

Statement A: Attribute always ends without parenthesis.

Statement B: Function/Method cannot work without arguments.

  1. Both statements are correct.
  2. Both statements are incorrect.
  3. Statement A is correct, but Statement B is incorrect
  4. Statement A is incorrect, but Statement B is correct

IP Sample Paper Class 12 2021 with Solutions

Section – C

Section C, consists of 6 Question (50 to 55). Attempt any 5 questions.

IP Sample Paper Class 12 2021 with Solutions

IP Sample Paper Class 12 2021 with Solutions
IP Sample Paper Class 12 2021 with Solutions

Case Study

Mr. Singh is working in Data Centre. His friend Mr. Kashyap has given him a data in the form of Python Dataframe named “DF” containing year wise sales figures for four sales persons. Use the years as column labels, and sales person names as row labels.

2014        2015     2016      2017

Mina      100.5     12000   20000     50000

Kiran      150.8     18000    50000     60000

Anil        200.9     22000    70000     70000

Amit      30000    30000    100000   80000

Based on the information given above, answer the questions NO. 50-55.

Q50. He wants to display sales of Kiran. Select the correct option.

  1. print(DF.[‘Kiran’])
  2. print(DF.loc[‘Kiran’])
  3. print(DF.Loc[‘Kiran’])
  4. print(DF_loc[‘Kiran’])

Q51. He wants to display the values of year 2016. Suggest him the suitable option.

  1. print(DF_[2016])
  2. print(DF.loc[2016])
  3. print(DF[2016])
  4. print(DF_(2016))

Q52. He is confused about the command given below, please select the correct explanation.

print(DF[2014]+200)

  1. It will return error.
  2. It will increase value of 2014 by 200 in Dataframe and also display the increased values
  3. It will only display increased values of 2014 by 200.
  4. None of the above

Q53. Output of the following command is:

print(DF.loc[[True,False,True,False]])

1)	  2014   2015   2016   2017
Mina  100.5  12000  20000  50000
Anil    200.9  22000  70000  70000

2)	         2014       2015      2016       2017
Kiran 	 150.8 	18000    50000     60000 
Anil	         200.9 	22000    70000     70000 

3)	        2014       2015       2016       2017
Mina        100.5      12000     20000     50000
Amit	30000 	30000    100000   80000 

4)	None of the above
 

Q54. Which of the following command will help Mr. Singh to set all the values of dataframe as ‘0’?

  1. DF[ : : ] = 0
  2. DF[ : ] == 0
  3. DF[ : ] = 0
  4. None of the above

Q55. What is the output of following command?

print(DF.size )

  1. 16
  2. 8
  3. 4
  4. 10


IP Sample Paper Class 12 2021 with Solutions


Time: 90 min                                                                                                                  MM : 35

General Instructions:

  1. The paper is divided into 3 Sections- A, B and C.
  2. Section A, consists of Question 1 to 25 and student need to attempt 20 questions.
  3. Section B, consists of Question number 26 to 49 and student need to attempt 20 questions.
  4. Section C, consists of Question number 50 to 55 and student need to attempt 5 questions.

IP Sample Paper Class 12 2021 with Solutions

Section – A

Section A consists of 25 questions, attempt any 20 questions

IP Sample Paper Class 12 2021 with Solutions

Q1.  In Pandas ___________ is a two-dimensional data structure.

  1. Series
  2. DataFrame
  3. Matplotlib
  4. Panel

Q2. Ananya is writing a pandas program. She forgot to import library. Help her to choose the correct import statement.

  1. import pandas as PD
  2. import Pandas as pd
  3. import pandas as p@d
  4. import pandas as p d

Q3. Value of Series can be accessed by __________

  1. data
  2. pandas library
  3. index
  4. object

Q4. Write the datatype of the Series ‘S’ created below:

import pandas as pd

S = pd.Series(“Paper”)

  1. float64
  2. Str
  3. object
  4. int64

Q5. Write the output of the following :

import pandas as pd

S = pd.Series(“A”, “B”, “C”)

print S[1]

  1. A
  2. B
  3. C
  4. None of the above

IP Sample Paper Class 12 2021 with Solutions

Q6. How many values will be there in the series “S” given below:

import pandas as pd

S = pd.Series(5, index=range(1,7))

  1. 5
  2. 7
  3. 6
  4. 8

Q7. Which module of matplotlib library is to be imported for creating any chart or graph?

  1. plot
  2. pyplot
  3. py.plot
  4. py_plot

Q8. _____________ chart display information as a series of data points.

  1. Line
  2. Pi
  3. Bar
  4. Histogram

Q9. Ashok was writing features of DataFrame. Help him to identify the wrong feature.

  1. DataFrame is a two-dimensional data structure.
  2. Values in DataFrame cannot be changed.
  3. Rows and columns can be added in DataFrame.
  4. Rows and columns can be deleted from DataFrame.

Q10. Which of the following is correct statement for giving label of Y –axis? #plt is an alias name

  1. plt.ylabel(“Currency”)
  2. plt.yLabel(“Currency”)
  3. plt.ylabel(Currency)
  4. Plt.ylabel(“Currency”)

IP Sample Paper Class 12 2021 with Solutions

Q11. Anil and Sunil are friends. They separately manufacture their sports shoes. What we call that symbol which distinguishes their shoes from each other?

  1. Patent
  2. Copyright
  3. Trademark
  4. Label

Q12. Which of the following is a Net Etiquettes?

  1. Always copy content from internet.
  2. Always use copyright content as it will be authentic
  3. Post comment online using bad language.
  4. Take permission from content owner before using their content

Q13. Ananya purchased licensed software. She creates the multiple copies without the permission of the copyright owner. She is doing an act of ______________

  1. Trademark Infringement
  2. Patent Infringement
  3. Copyright Infringement
  4. Identity Theft

Q14. Complete the following code?

import pandas as pd

S = pd.Series([1,2,3,4], index=range(1, 8, _________ ))

print(S)

  1. 1
  2. 2
  3. 3
  4. 4

Q15. FOSS Stands for ___________________

  1. Free and Open Secure Software
  2. Free and Open Source Software
  3. Frame and Open Source Software
  4. Fresh and Open Source Software

IP Sample Paper Class 12 2021 with Solutions

Q16. Electronic components which are not working or damaged are known as ____________

  1. Computer dump
  2. Electronic dump
  3. Computer waste
  4. E – Waste

Q17. Suman was creating a dataframe from list of dictionaries. While doing her practice, she jotted down few observation. Help her to identify the correct observation.

  1. Dictionary keys are taken as column labels, and the values corresponding to each key are taken as rows.
  2. There will be as many rows as the number of dictionaries present in the list.
  3. Both of the above.
  4. None of the above

Q18. Identify the cyber-crime from the following.

  1. Printing the copies of own document.
  2. Stealing sensitive information (bank detail) and doing some transaction of money.
  3. Publishing post on website.
  4. Stealing jewellery.

Q19. Arjun can add a new row to a DataFrame using the _______________method.

  1. DataFrame.loc[ ]
  2. Dataframe.loc( )
  3. Data( )
  4. DataFrame[ ]

Q20. Rishika found a crumpled paper under her desk. She picked it up and opened it. It contained some text which was struck off thrice. But she could still figure out easily that the struck off text was the email ID and password of Garvit, her classmate. What is ethically correct for Rishika to do?

  1. Inform Garvit so that he may change his password.
  2. Give the password of Garvit’s email ID to all other classmates.
  3. Use Garvit’s password to access his account.
  4. None of the above

IP Sample Paper Class 12 2021 with Solutions

Q21. A user of digital technology needs to follow:

  1. net-etiquettes
  2. communication-etiquettes
  3. social media-etiquettes
  4. All of the above

Q22. What is the purpose of the following statement?

>>> DF = DF.drop(‘Science’, axis=0)

  1. This code will delete the row with label ‘Science’
  2. This code will delete the column with label ‘Science’
  3. This code will add the row with label ‘Science’
  4. This code will add the column with label ‘Science’

Q23. By using append ( ) function we can ____________________

  1. Merge two DataFrame.
  2. Merge Series to a DataFrame
  3. Merge Dictionary to a DataFrame.
  4. All of the above.

Q24. What is the default value of ‘sep’ parameter of read_csv ( ) function?

  1. Colon( : )
  2. Semicolon (;)
  3. Space
  4. Comma ( , )

 Q25. Shape attribute of DataFrame return the result in the form of ______________

  1. List
  2. Tuple
  3. Dictionary
  4. String

IP Sample Paper Class 12 2021 with Solutions

Section – B

Section B consists of 24 Questions (26 to 49). Attempt any 20 questions.

IP Sample Paper Class 12 2021 with Solutions

Q26. Write the output of the following:

import pandas as pd

S1 = pd.Series(1, index = range(1,7,2))

print(S1[0 : 2])

a)

1    1

3    1

dtype: int64

b)

1    1

3    1

5    1      

dtype: int64

c)

1    1

dtype: int64

d)Error

Q27. Consider the following series “S1” and select the statement which returns (3,)

A    1

B    5

C    9

dtype: int64

  1. S1.size
  2. S1.shape( )
  3. S1.shape
  4. S1.values

Q28. How many records of dataframe ‘DF’ will be displayed by the following statement?

print(DF.loc[[False, False, True, False, False, False]])

  1. 1
  2. 2
  3. 5
  4. 6

Q29. ___________ is the unauthorized use or distribution of software.

  1. Software privacy
  2. Software piracy
  3. Private Software
  4. Soft Piracy

Q30. Which of the following is not the attributes of plot( ) function?

  1. marker
  2. markersize
  3. LineWidth
  4. All of the above

IP Sample Paper Class 12 2021 with Solutions

Q31. Suman was trying to plot the histogram. Below is one of the incomplete statement from her code. Help her to complete that statement.

       df.plot(kind = ’ __________ ’)

  1. histogram
  2. histo
  3. hist
  4. Hist

Q32. By looking at the following code of plotting a line plot, identify how many lines will be drawn?

  df.plot(kind=’line’, color=[‘red’, ‘blue’, ‘brown’], marker = “*”, markersize = 10)

  1. 1
  2. 2
  3. 3
  4. 4

Q33. Sam is working in an IT company. His job profile is to find the loopholes in the website or online software of the company. In other words, Sam is helping in improving the security of the software. Who is Sam?

  1. Non-ethical Hacker
  2. Ethical Hacker
  3. Black hat hacker
  4. Grey hat hacker

Q34. Read the statement given below and identify the right options

Assertion: Eye strain is a symptom commonly complained by users of digital devices.

Reason:  When we continuously look at the screen for watching, typing, chatting or playing games, our eyes are continuously exposed to the glare coming from the screens.

  1. Both A and R are true and R is the correct explanation of A.
  2. Both A and R are true but R is not the correct explanation of A
  3. A is true but R is false
  4. A is false but R is true.

Q35. Write the output of the following:

import pandas as pd

S1 = pd.Series((1, 5, 9, 11, 2), index = (“A”, “B”, “C”, “D”, “E”))

print(S1[“C” : “E” ])

a)

C     9

D    11

dtype: int64

b)

C     9

D    11      

E     2

dtype: int64

c)

B     5

D    11

E     2

dtype: int64

d)

C     9

D    11

E     2

dtype: int64

IP Sample Paper Class 12 2021 with Solutions

Q36. ________________is a branch of science that deals with designing or arranging workplaces including the furniture, equipment and systems so that it becomes safe and comfortable for the user

  1. Ergonomics
  2. Economics
  3. Ergono
  4. Aesthetics

Q37. Consider the following dataframe ‘DF’. Ananya wants to display the records of “Tuesday”. Help her to find the correct code.

   Days    Class

0  Mon      5

1  Tue        3

2  Wed      6

  1. print(DF.loc[2])
  2. print(DF.loc[1])
  3. print(DF.loc[0])
  4. print(DF.loc[3])

Q38. Ananya, Rohit, Suman and Simran of class XII are debating on Device Safety. Their statements are given below:

Ananya: Use a liquid solution specifically formulated for the cleaning of electronic screens.

Rohit: Food crumbs that fall into the gaps between the keys or spilled over liquid do not cause any issues/damage to the devices.

Suman: Do not wipe monitor’s screen often using the regular microfiber soft cloth.

Simran: Good maintenance of electronics devices also increases the life of the devices

Identify those who are giving correct statements:

  1. Both Ananya and Rohit are correct
  2. Both Suman and Simran are correct
  3. Both Ananya and Simran are correct
  4. Suman and Simran are correct

Q39. Aman was trying to display the last 3 rows from the DataFrame “DF”. Help him to write the complete statement.

  1. DF.tail( )
  2. DF.tail(1,2,3)
  3. DF.tail(3)
  4. All of the above

Q40. Write the output of the following code:

import pandas as pd

S1 = pd.Series((1,5,9), index = (“A”,”B”,”C”))

print(S1[2]>9)

  1. True
  2. False
  3. 1
  4. 0

IP Sample Paper Class 12 2021 with Solutions

Q41. Aman spends most of its time on internet. Choose the right communication etiquettes which he should show to others:

  1. Be Polite
  2. Be Precise
  3. Be credible
  4. All of the above

Q42. Write the output of the following:

import pandas as pd

L={“A”:”Apple”, “B”:”Ball”,”C”:”Cat”}

S = pd.Series(L)

print(S)

a)

A    Apple

B     Ball

C      Cat

dtype: object

b)

A    Apple

B     Ball

C      Cat

dtype: int64

c)

A          B          C

Apple   Ball      Cat

dtype: object

d)

A          B          C

Apple   Ball      Cat

dtype: int64

IP Sample Paper Class 12 2021 with Solutions

Q43. Complete the following code:

import pandas as pd

L={“A”:65, “B”:45,”C”:23}

DS = pd.__________(L)

print(DS)

  1. series
  2. Dataframe
  3. DataFrame
  4. Series

Q44. Which of the following command will delete the column labeled as “Math” from the dataframe “DF”?

  1. DF = DF.drop(“Math”, axis = 0)
  2. DF = DF.drop(“Math”, axis = 1)
  3. DF = DF.Drop(“Math”, axis = 1)
  4. DF = DF.drop(“Math”, Axis = 1)

Q45. Expand CC in reference to public license.

  1. Create Commons
  2. Common Creative
  3. Creative Commons
  4. Create Creativity

Q46. Write the output of the following code:

import pandas as pd

Nm=[“Ashu”,”Riya”,”Gautam”,”Myra”]

Sc = [23, 24, 25, 12]

M=[30,28,23,26]

S = pd.DataFrame({“Name”:Nm, “Science”:Sc,”Math”:M})

print(S.shape)

  1. (4, 3)
  2. (3, 4)
  3. 4, 3
  4. [4, 3]

Q47. Consider the following DataFrame “S”

   Name           Science            Math

0             Ashu             23                    30

1             Riya              24                    28

2             Gautam       25                    23

3             Myra            12                    26

Which of the following statement will display marks of “Myra” of “Science” and “Math” subject?

  1. print(S.loc[3:3, [“Science”, “Math”]])
  2. print(S.loc[2:3, [“Science”, “Math”]])
  3. print(S.loc[1:3, [“Science”, “Math”]])
  4. print(S.loc[0:3, [“Science”, “Math”]])

IP Sample Paper Class 12 2021 with Solutions

Q48. Consider the following series “S1”

0    30

1    28

2    23

3    26

dtype: int64

Which of the following statement will delete the value “23” from the Series?

  1. S1.drop[2]
  2. S1.drop(1)
  3. S1.drop(2)
  4. S1.drop(‘2’)

IP Sample Paper Class 12 2021 with Solutions

Section – C

Section C consists of 6 Questions (50 to 55). Attempt any 5 questions

IP Sample Paper Class 12 2021 with Solutions

Case Study

Mr. Raman is working in IT Company. He has the following data in the form of DataFrame named ‘S’ containing detail of books.

                      B_id                     Sub                        Price

T1                 1                            Math                     100

T2                 2                            Science                130

T3                 3                            SST                         90

T4                 4                            Eng                         120

T5                 5                            Hindi                     150

Based on the given information, answer the question no. 50 – 55

Q50. Select the code to display detail of “Eng” book.

  1. print(S.loc[2])
  2. print(S.loc[4])
  3. print(S.Loc[2])
  4. print(S.loc[3])

Q51. Mr. Raman wants to display the price column from the dataframe. Help him to write the correct code.

  1. print(S[price])
  2. print(S[“Price”])
  3. print(S[[“Price”]])
  4. Both b) and c)

Q52. Select the correct code to display the first four records.\

  1. print(S.loc[“T1” : “T4”])
  2. print(S.head(4))
  3. Both of the above.
  4. None of the above

Q53. Write a statement to add a new row “T6” with values [6, “Sanskrit”, 125]

  1. S.loc[“T6”]=[6, “Sanskrit”, 125]
  2. S.loc[“T6”]=(6, “Sanskrit”, 125)
  3. S.loc[“T6”]=6, “Sanskrit”, 125
  4. All of the above

Q54. Write a statement to delete the record of “T3”.

  1. print(S.drop(“T3”))
  2. print(S.drop(“T3” : “T3”))
  3. print(S.Drop(“T3”))
  4. print(S.Drop(“T3” : “T3”))

Q55. How many “True” values will be displayed in following code?

print(S.loc[:, “Price”]>90)

  1. 1
  2. 2
  3. 3
  4. 4

IP Sample Paper Class 12 2021 with Solutions

Disclaimer : I tried to give you the correct solution of “ IP Sample Paper Class 12 2021 with Solutions, but if you feel that there is/are mistakes in “IP Sample Paper Class 12 2021 with Solutions” given above, you can directly contact me at csiplearninghub@gmail.com. NCERT Book and Study material available on CBSE official website are used as a reference to create above “IP Sample Paper Class 12 2021 with Solutions

IP Sample Paper Class 12 2021 with Solutions

Important Links

100 Practice Questions on Python Fundamentals

120+ MySQL Practice Questions

90+ Practice Questions on List

50+ Output based Practice Questions

100 Practice Questions on String

70 Practice Questions on Loops

120 Practice Questions of Computer Network in Python

70 Practice Questions on if-else

40 Practice Questions on Data Structure

Computer Science Syllabus 2021-2022.

Informatics Practices Syllabus 2021-2022

Class 12 Computer Science Chapter wise MCQ

IP Sample Paper Class 12 2021 with Solutions

IP Sample Paper Class 12 2021 with Solutions

IP Sample Paper Class 12 2021 with Solutions

IP Sample Paper Class 12 2021 with Solutions

IP Sample Paper Class 12 2021 with Solutions


Share with others

2 thoughts on “BEST Term 1 IP Sample Paper Class 12 2021 with Solutions”

Leave a Reply

%d bloggers like this: