Best 3 – IP Sample Paper Class 12 2021 with answer

Share with others

Term 1 – IP Sample Paper Class 12 2021

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

Term 1 – IP Sample Paper Class 12 2021


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

2. IP Sample Paper Class 12 2021 with SolutionsPaper 2

3. IP Sample Paper Class 12 2021 with SolutionsPaper 3


Term 1 – IP Sample Paper Class 12 2021

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

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. ___________ library is used for Data Analysis in Python.

  1. Pandas
  2. Matplotlib
  3. Numpy
  4. All of the above

Q2. An empty Series object have ____________ as a default data type.

  1. float16
  2. float48
  3. float32
  4. float64

Q3. Which of the following function help to create an empty series?

  1. DataFrame( )
  2. Series( )
  3. series( )
  4. Series(n)

Q4. A series in python can be created from ___________

  1. List
  2. Dictionary
  3. Scalar Value
  4. All of the aobove

Q5.  Anil is trying to create a series from the given list L = [1, 2, 3]. He has written the following code. As a friend of Anil help him to complete the code.

import pandas as pd

S1 = _______ .Series(L)

  1. Pandas
  2. Pd
  3. pd
  4. List

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

Q6. In Series, if data is a scalar value, then the __________ argument to Series( ) function must be provided.

  1. indexes
  2. index
  3. Index
  4. None of the above

Q7. Write the output of the following:

import pandas as pd

S = pd.Series(“HE”, index=range(1,3))

print(S[1])

  1. HE
  2. H
  3. E
  4. None of the above

Q8. Which of the following function help us to create the chart?

  1. plot( )
  2. show( )
  3. Plot( )
  4. Create( )

Q9. DataFrame can be created from:

  1. Series
  2. List of Dictionaries
  3. Numpy Arrays
  4. All of the above

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

  1. plt.xlabel(“Currency”)
  2. plt.XLabel(“Currency”)
  3. plt.xlabel(Currency)
  4. Plt.xlabel(“Currency”)

Term 1 – IP Sample Paper Class 12 2021

Q11. Sending an email, posting a comment on website are examples of _________________

  1. Passive digital footprint
  2. Active digital footprint
  3. Inactive digital footprint
  4. None of the above

Q12. Anil is using some copyrighted material without the permission of content owner. This act of Anil is _____________

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

Q13. _____________ is a kind of cyber-crime where the attacker blackmails the victim to pay for getting access to the data.

  1. Identity Theft
  2. Phishing
  3. Ransomware
  4. Spam

Q14. Which library (other than pandas) Shubham has to import, if he is creating series from NumPy Arrays?

  1. NumPy
  2. numpy
  3. NumPyArrays
  4. Numpy

Q15. Which of the following is proprietary software?

  1. Adobe Acrobat reader
  2. Libre Office
  3. Linux
  4. Mozilla Firefox

Term 1 – IP Sample Paper Class 12 2021

Q16. FSF stands for ____________

  1. Free System Foundation
  2. Free Software Foundation
  3. Free and Secure Foundation
  4. Free and Software Foundation

Q17. Pandas store tabular data like the result of a class, reservation chart of a train using a ________________

  1. Series
  2. DataFrame
  3. Table
  4. Dictionary

Q18. Code of the software will be protected by _________________

  1. Patent
  2. Trademark
  3. Copyright
  4. None of the above

Q19. Read the statement given below. Identify the right option from the following

Statement 1: >>> DF[‘Ram’]=[25, 32, 28, 49] This code will add a new column  in a dataframe “DF” (if the column label does not exist)

Statement 2: >>> DF.loc[‘Ram’]=[25, 32, 28, 49] This code will update the values of already existing column

  1. Both the statements are True
  2. Statement 1 is True and Statement 2 is False.
  3. Both the statements are False
  4. Statement 1 is False and Statement 2 is True.

Q20. Violation of intellectual property right may happen in the following ways. Select the odd one out.

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

Term 1 – IP Sample Paper Class 12 2021

Q21. Digital footprint is created _______________________________

  1.  When a person is doing some offline money transaction.
  2. When a person copy content from one document to another document.
  3. When a person start virus scan.
  4. When a person is surfing the web.

Q22.To delete a row, the parameter axis of drop( ) function is assigned the value __________

  1. 1
  2. index
  3. 0
  4. columns

Q23. Which of the following statement appends rows of the second DataFrame (DF2) at the end of the first DataFrame (DF1)?

  1. >>> DF1 = DF1.append(DF2)
  2. >>> DF1 = DF2.append(DF1)
  3. >>> DF1 = append(DF1, DF2)
  4. >>> DF1 + DF2

Q24. Which of the following are parameter of read_csv( ) function?

  1. Sep
  2. Header
  3. Both of the above
  4. None of the above

Q25. Aman wants to check whether a dataframe “DF” is empty or not. He writes the following statements. Help him to find the correct statement.

  1. >>>DF.Empty
  2. >>>DF.empty
  3. >>>DF.empty( )
  4. >>>DF.Empty( )

Term 1 – IP Sample Paper Class 12 2021

Section – B

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

Q26. Write the output of the following:

import pandas as pd

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

print(S1[5])

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

Q27. Consider the following series “S1” and select the statement which returns “False”

A    1

B    5

C    9

dtype: int64

  1. S1.empty
  2. S1.isempty
  3. S1.empty( )
  4. S1.isempty( )

Q28. Consider the given dataframe ‘DF’ and write the output of the following code:

Days    Class

0              Mon      5

1              Tue       3

2              Wed     6

3              Thur     8

4              Fri        2

5              Sat       7

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

a)

     Days    Class

0  Mon      5

2  Wed      6

b)

     Days    Class

0  Mon      5

1  Tue       3

c)

     Days    Class

1  Tue        3

2  Wed      6

d)  Error

Term 1 – IP Sample Paper Class 12 2021

Q29. ___________is the most widely used free software license which grants the recipients, rights to copy, modify and redistribute the software.

  1. CC
  2. GNU
  3. GPL
  4. GC

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

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

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

Statement 1 : We can substitute the ticks at x axis with a list of values of our choice by using plt.xticks(ticks,label)

Statement 2 :  In plt.xticks(ticks,label) label is a list of items to place at the given ticks.

  1. Both the statements are True
  2. Statement 1 is True and Statement 2 is False
  3. Both the statements are False
  4. Statement 2 is True and Statement 1 is False

Q32. To make a histogram, the data is sorted into _____________

  1. Points
  2. Height
  3. Size
  4. bins

Term 1 – IP Sample Paper Class 12 2021

Q33. Which of the following is not a cyber-crime?

  1. Phishing
  2. Ransom ware Attack
  3. Tracing
  4. Hacking

Q34. The most common phishing method is through _____________ where a fake or forged email address is used and the user presumes it to be from an authentic source.

  1. Email spoofing
  2. Web Spoofing
  3. Text Message Spoofing
  4. GPS spoofing

Q35. Write the output of the following:

import pandas as pd

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

print(S1[: : -2])

a)

C    9

A    1

dtype: int64

b)

C    9

B    5

dtype: int64

c)

C    9

dtype: int64

d)

A    1

dtype: int64

Term 1 – IP Sample Paper Class 12 2021

Q36. After a fight with your friend, you did the following activities. Which of these activities is not an example of cyber bullying?

  1. You sent an email to your friend with a message saying that “I am sorry”.
  2. You sent a threatening message to your friend saying “Do not try to call or talk to me”.
  3. You created an embarrassing picture of your friend and uploaded on your account on a social networking site
  4. None of the above

Q37. Fill in the blank in the output of the given code:

import pandas as pd

DF = pd.DataFrame({‘Days’:[“Mon”,”Tue”,”Wed”],’Class’:[5,3,6]})

print(DF[“Days”])

OUTPUT :

0    Mon

1    Tue

2    Wed

Name: __________, dtype: object

  1. Class
  2. Days
  3. None
  4. NaN

Q38. Ananya, Rohit, Suman and Simran are debating on E-waste management. Their statements are given below:

Ananya: Feasible methods of e-waste management are reduce, reuse and recycle

Rohit: Recycling is the process of re-using the electronic or electric waste after slight modification.

Suman: E-waste is causing soil and sound pollution.

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. Which of the following function is used to delete a column in Dataframe?

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

Term 1 – IP Sample Paper Class 12 2021

Q40. Write the output of the following code:

import pandas as pd

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

a = S1[2]>10

print(type(a))

  1. Boolean
  2. <class ‘numpy.bool_’>
  3. <class ‘bool_’>
  4. <class ‘pandas.bool_’>

Q41. As a responsible netizen, we should follow __________ etiquettes.

  1. Net
  2. Communication
  3. Social Media
  4. All of the above

Q42. Rani wants to display the first and second row from the dataframe “DF”. Help her to choose the right syntax:

  1. DF.loc[[0:1]]
  2. DF[[0,1]]
  3. DF.loc[[0,1]]
  4. DF[[0:1]]

Q43. Suhani wants the output of the following code is “45”. Help her to complete the code

import pandas as pd

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

S = pd.Series(L)

print(S[“_________”])

  1. B
  2. “B”
  3. 1
  4. 2

Q44. Sam created a DataFrame from 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})

After creating a dataframe, by mistake he executed the following command. Choose whose name will be deleted from the dataframe.

S=S.drop(2,axis=0)

  1. Ashu
  2. Riya
  3. Gautam
  4. Myra

Term 1 – IP Sample Paper Class 12 2021

Q45. Which of the following is popular category of public licenses?

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

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.size)

  1. 11
  2. 10
  3. 12
  4. 8

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 “Gautam” of only “Science” subject?

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

Q48. Consider the following series “S2”.

0    30

1    28

2    23

3    26

dtype: int64

Which statement will return the following output?

0    35

1    33

2    28

3    31

dtype: int64

  1. print(S1 +[ 5])
  2. print(S1 + 5)
  3. Both of the above
  4. None of the above

Q49. Read the statement given below. Identify the right option from the following.

Statement 1: We can add a new row to a DataFrame using the DataFrame.loc[ ] method.

Statement 2: DataFrame can be created from List of Dictionaries.

  1. Both the statements are False
  2. Statement1 is True and Statement2 is False
  3. Statement1 is False and Statement2 is True
  4. Both the statements are True

Term 1 – IP Sample Paper Class 12 2021

Section – C

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

Case Study

Arun is a student of class 12. His teacher has given him data of heights and weights 

in the following two lists.

ht = [120, 125, 80, 110, 110]

wt= [20, 22, 23, 25, 21]

His teacher asked him to write the code to plot a line chart according to the following criteria:

  1. x axis will represent weight
  2. y axis will represent height
  3. x axis label should be “Weight in kg”
  4. y axis label should be “Height in cm”
  5. colour of the line should be green
  6. use * as marker
  7. Marker size as 10
  8. The title of the chart should be “Average weight with respect to average height”.

Arun has written the incomplete code. Help him to complete the code.

import matplotlib._____________ as plt  #Statement1

import pandas as pd

ht = [120, 125, 80, 110, 110]

wt= [20, 22, 23, 25, 21]

df=pd.DataFrame({“height” : ht, “weight” : __________}) #Statement2

plt.______________(‘Weight in kg’) #Statement3

plt.ylabel(‘Height in cm’)

plt._______________(‘Average weight with respect to average height’) #Statement4

plt.________________(df.wt, df.ht, marker=’*’, markersize=10, color=’green ‘) #Statement5

plt._________________ #Statement6

Q50. Identify the correct command for statement1.

  1. plt
  2. pyplot()
  3. pyplot
  4. plot

Term 1 – IP Sample Paper Class 12 2021

Q51. Identify the correct command for statement2.

  1. Wt
  2. wt
  3. weight
  4. ht

Q52. Identify the correct command for statement3.

  1. label
  2. labelx
  3. xlabel
  4. Xlabel

Q53. Identify the correct command for statement4.

  1. Top
  2. Title( )
  3. title
  4. top

Q54. Identify the correct command for statement5.

  1. plot
  2. draw
  3. create
  4. new

Q55. Identify the correct command for statement6.

  1. show( )
  2. display( )
  3. show
  4. display

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

Term 1 – IP Sample Paper Class 12 2021

Computer Science Syllabus 2021-2022.

Informatics Practices Syllabus 2021-2022

Class 12 Computer Science Chapter wise MCQ

Term 1 – IP Sample Paper Class 12 2021


Share with others

Leave a Reply

%d bloggers like this: