Download as pdf or txt
Download as pdf or txt
You are on page 1of 10

DIGITECH TUTORIAL POINT DIGITECH TUTORIAL POINT DIGITECH TUTORIAL POINT DIGITECH TUTORIAL POINT DIGITECH TUTORIAL POINT

DIGITECH TUTORIAL POINT

SAMPLE PAPER - I (Term-I)


Class-XII
Subject: Informatics Practices (065)
Max Marks: 35 Time: 90 Minutes.
General instructions:
1. The question paper is divided into 3 sections.
2. Section - A contains 25 questions (1-25), Attempt any 20 questions.
3. Section - B contains 24 questions (26-49), Attempt any 20 questions.
4. Section - C contains 6 questions (50-55), Attempt any 5 questions.
5. All questions carry equal marks (0.77 mark per question).
6. There is no negative marking.

SECTION: A
( This section consists of 25 questions (1 to 25), attempt any 20 questions. Choose the best possible option.)

1. In a python dataframe, the columns


a) have to be of same type.
b) can be of different types.
c) can be added to existing dataframes.
d) Both b) and c)
2. A series in pandas has
a) 1 axis b) 3 axis
c) 2 axis d) 0 axis
3. In dataframes, the column index starts from
a) -1 b) 0
c) 'a' d) Columns do not have indexes
4. With pyplot, a line chart is created using
a) plot() b) line()
c) chart() d) linechart()
5. If two series of different indexes are added, the corresponding values are
a) added.
b) elements of second series are appended at the end of first series.
c) raises an error.
d) values are concatenated.
6. The python open source library used for data analysis is
a) random b) matplotlib

© Copyright reserved 2020.


DIGITECH TUTORIAL POINT DIGITECH TUTORIAL POINT DIGITECH TUTORIAL POINT DIGITECH TUTORIAL POINT DIGITECH TUTORIAL POINT DIGITECH TUTOR

Page | 1
DIGITECH TUTORIAL POINT DIGITECH TUTORIAL POINT DIGITECH TUTORIAL POINT DIGITECH TUTORIAL POINT DIGITECH TUTORIAL POINT DIGITECH TUTORIAL POINT

c) numpy d) pandas
7. A series allows
a) appending data b) modifying data
c) removing data d) All of these
8. The ____ function makes a plotted chart visible.
a) plot() b) view()
c) visible() d) show()
9. Python pandas allows sorting of data in a dataframe on
a) one column b) multiple columns
c) Both a) and b) d) indexes only
10. The function used to change the existing order of indexes/labels is
a) set_index() b) reindex()
c) changeindex() d) rename()
11. The term DRM stands for
a) Direct Rights Management b) Digital Rights Management
c) Domain Rights Management d) None of these
12. Which fo the follllowing does not refer to industrial property?
a) Inventions b) Trademarks
c) Patents d) Land
13. Which of the following can be used to avoid plagiarism?
a) Use own words and ideas
b) Use online tools to check fro plagiarism
c) Always provide reference
d) All of the above
14. A series "Sr" exists, the statement Sr[3:3] will display
a) 1 element b) 2 elements
c) 3 elements d) An empty set
15. User tracking is done through
a) Internet Service Provider b) Cookies
c) Both a) and b) d) Cameras
16. The extension of comma-seperated values file is:
a) .txt b) .cvs
c) .csv d) None of these
17. Open data means
a) data on the web is made available for public use without restrictions.

© Copyright reserved 2020.


DIGITECH TUTORIAL POINT DIGITECH TUTORIAL POINT DIGITECH TUTORIAL POINT DIGITECH TUTORIAL POINT DIGITECH TUTORIAL POINT DIGITECH TUTOR

Page | 2
DIGITECH TUTORIAL POINT DIGITECH TUTORIAL POINT DIGITECH TUTORIAL POINT DIGITECH TUTORIAL POINT DIGITECH TUTORIAL POINT DIGITECH TUTORIAL POINT

b) agreement of web sites with users.


c) data that is provided while buying a softwares.
d) trial period agreement of anti-virus softwares.
18. "Universal Participation" is a property of which kind of software?
a) Freewares b) Proprietary softwares
c) Sharewares d) Open source softwares
19. Two dataframes exist with index and a string type column each. The dataframes can be
a) added b) multiplied
c) subtracted d) divided
20. Cyber forensics is also called
a) web forensics b) computer forensics
c) internet forensics d) net forensics
21. Smita is confused whether to use a proprietary or an open source software for her work,
the advantage(s) of open source softwares is/are:
a) usually free
b) no discrimination
c) Both a) and b)
d) keep hidden information
22. Adarsh received a mail saying that he has received a lottery for which he has to click on
the link provided in his e-mail. What should he do?
a) Click on the link b) Block the mail Id as spam
c) Contact the sender d) Both a) and c)
23. A series was created as:
Numericdata=pd.Series([10,12,14,16,18,20])
To get the output as 1 using a property of the series the command will be
a) Numericdata.series b) Numericdata.ndim
c) Numericdata.length d) Numericdata.hasnans
24. The default indexing in pandas is
a) positional index b) sliced index
c) labelled index d) boolean index
25. Multiplying a constant 'n' to a series
a) replicates the element 'n' times
b) multiplies 'n' to each of the elements
c) raises an error
d) raises each element to power 'n'

© Copyright reserved 2020.


DIGITECH TUTORIAL POINT DIGITECH TUTORIAL POINT DIGITECH TUTORIAL POINT DIGITECH TUTORIAL POINT DIGITECH TUTORIAL POINT DIGITECH TUTOR

Page | 3
DIGITECH TUTORIAL POINT DIGITECH TUTORIAL POINT DIGITECH TUTORIAL POINT DIGITECH TUTORIAL POINT DIGITECH TUTORIAL POINT DIGITECH TUTORIAL POINT

SECTION: B
( This section consists of 24 questions (26 to 49), attempt any 20 questions.)

26. Which of the statements are valid for creating the following series using the range()
function?
A 10
B 12
C 14
D 16
dtype: int64
a) import pandas as pd
S1=pd.Series(range(10,16,2), index=[x for x in 'ABCD'])
b) import pandas as pd
S1=pd.Series(range(10,17,2), index= x[for x in 'ABCD'])
c) import pandas as pd
S1=pd.Series(range(10,17,2), [x for x in 'ABCD'])
d) import pandas as pd
S1=pd.Series(range(10,17,2), index=[x for x in 'ABCD'])
27. Given a series "Fan" storing data of some types of Fan as follows:
0 Table Fan
1 Ceiling Fan
2 Kitchen Fan
3 Pedestrial Fan
dtype: object
To get the length of each of the Fan names the command will be
a) Len(Fan) b) Len('Fan')
c) for fn in Fan.values: print(len(fn)) d) None of these
28. Ms. Kate has created a series "Pets" storing the names of her favourite pets as indexes
and their price as values as follows:
Monkey 8000
Dog 12000
Rabbit 4000
Cat 2000
dtype: int64
To see the names and prices of the pets whose price is >10000, the command she has

© Copyright reserved 2020.


DIGITECH TUTORIAL POINT DIGITECH TUTORIAL POINT DIGITECH TUTORIAL POINT DIGITECH TUTORIAL POINT DIGITECH TUTORIAL POINT DIGITECH TUTOR

Page | 4
DIGITECH TUTORIAL POINT DIGITECH TUTORIAL POINT DIGITECH TUTORIAL POINT DIGITECH TUTORIAL POINT DIGITECH TUTORIAL POINT DIGITECH TUTORIAL POINT

has to write
a) print(Pets[Pets>10000]) b) print([Pets>10000])
c) print(Pets(Pets>10000)) d) None of these
29. Which of the following is not a role of social media campaign?
a) Getting feedback from users.
b) Increasing website traffic.
c) Building e-mail marketing lists.
d) Sending comments on user posts.
30. Given below is a bar chart showing names of some elements and their atomic numbers.

The code to plot the chart and show it will


a) import matplotlib.pyplot as plt
elements=['Neon','Sulphur','Calcium','Hydrogen']
plt.bar(elements,atomicnumber,color='orange')
plt.show()
b) import matplotlib.pyplot as plt
atomicnumber=[10,16,20,1]
plt.bar(elements,atomicnumber,color='orange')
plt.show()
c) import matplotlib.pyplot as plt
elements=['Neon','Sulphur','Calcium','Hydrogen']
atomicnumber=[10,16,20,1]
plt.bar(elements,atomicnumber,color='orange')
plt.show()
d) import matplotlib.pyplot as plt
elements=['Neon','Sulphur','Calcium','Hydrogen']
atomicnumber=[10,16,20,1]
plt.bar(atomicnumber,elements,color='orange')
plt.show()

© Copyright reserved 2020.


DIGITECH TUTORIAL POINT DIGITECH TUTORIAL POINT DIGITECH TUTORIAL POINT DIGITECH TUTORIAL POINT DIGITECH TUTORIAL POINT DIGITECH TUTOR

Page | 5
DIGITECH TUTORIAL POINT DIGITECH TUTORIAL POINT DIGITECH TUTORIAL POINT DIGITECH TUTORIAL POINT DIGITECH TUTORIAL POINT DIGITECH TUTORIAL POINT

31. Given below two statements.


Statement A The attribute loc in legend() is used to specify the location of the legend.
Statement B legend(labels) is used to automatically detect legend elements.
a) Statement A is correct.
b) Statement B is correct.
c) Statement A is correct, Statement B is incorrect.
d) Statement A is incorrect, Statement B is correct.
32. Which of the following is not a type of chart under matplotlib?
a) Line b) Pie
c) Scatter d) Dotted
33. Which of the following is/are type(s) of plagiarism?
a) Submitting someone else's work as their own.
b) Rewriting someone else's work.
c) Using quotations without citing the source.
d) All of the above.
34. Given statements regarding softwares:
Statement A Windows 10 is a proprietary software.
Statement B Mozilla Firefox is a free web browsing software.
Statement C Adobe Photoshop is a free software.
Statement D The source code of linux is not available.
Which of the above statements are correct about the softwares?
a) Statements A and B b) Statements B and C
c) Statements C and D b) Statements B and D
35. Given the following code for a series creation:
S1=pd.Series(range(10,22,3), index=range(11,23,3))
The output of the code print(S1.tail(2)*2) will be
a) 17 32 b) 34 32
20 38 40 38
c) 40 38 d) 24 32
36. Which of the following is/are sign(s) of cyber bullying in children?
a) Sudden increased web activity.
b) Refusal to allow to see what they are doing online.
c) Both a) and b)
d) Refusal to see their notebooks.

© Copyright reserved 2020.


DIGITECH TUTORIAL POINT DIGITECH TUTORIAL POINT DIGITECH TUTORIAL POINT DIGITECH TUTORIAL POINT DIGITECH TUTORIAL POINT DIGITECH TUTOR

Page | 6
DIGITECH TUTORIAL POINT DIGITECH TUTORIAL POINT DIGITECH TUTORIAL POINT DIGITECH TUTORIAL POINT DIGITECH TUTORIAL POINT DIGITECH TUTORIAL POINT

37. Which of the following statements will return 3 values for a dataframe "df" whose indexes
are 0, 1, 2, 3, 4, 5, 6, 7?
a) df.iloc[1:4] b) df.loc[1:3]
c) df.tail(3) d) All of these
38. The crimes for which cyber laws are not applicable.
a) Identity theft b) Stealing physical properties
c) IPR infringement d) Phishing
39. The attribute ____ in legend() is used to specify the location of the legend.
a) iloc b) loc
c) Both a) and b) d) None of these
40. Given the dataframe "mdf" created as
mdf=pd.DataFrame({'a':[1,2,3,4,5],'b':[6,6,7,8,9],'c':[11,12,13,14,15]})
for a in mdf['b']:
if a%2==0:
print(a,end=' ')
will print
a) 6 6 8 b) 6 7 8
c) 6 8 d) None of these
41. Which of the following is/are cyber etiquette(s)?
a) Asking other confidential data.
b) Obeying copyright laws.
c) Including subject line in e-mail.
d) Both b) and c)
42. To display the number of rows in a dataframe "dft", the command would be
a) len(dft) b) dft.size
c) dft.rows d) Both b) and c)
43. Given two series created as:
s1=pd.Series([1,2],index=[1,'a'])
s2=pd.Series([7,8],index=[1,'b'])
The statement: print(s1*s2) will display
a) 1 7.0 b) 0 7.0
1 16.0 a NaN
b) 1 16.0 d) 0 7.0
a NaN a NaN
b NaN

© Copyright reserved 2020.


DIGITECH TUTORIAL POINT DIGITECH TUTORIAL POINT DIGITECH TUTORIAL POINT DIGITECH TUTORIAL POINT DIGITECH TUTORIAL POINT DIGITECH TUTOR

Page | 7
DIGITECH TUTORIAL POINT DIGITECH TUTORIAL POINT DIGITECH TUTORIAL POINT DIGITECH TUTORIAL POINT DIGITECH TUTORIAL POINT DIGITECH TUTORIAL POINT

44. Mrs. Graf has created a dataframe "Watch" consisting of data of watches as follows:
Brand Type Price
0 Casio Digital 5600
1 Rolex Analog 1200
2 Tata SmartWatch 8700
To display the rows of watches whose price is greater than 2000 the statement will be
a) Watch[Watch['Price']>2000] b) Watch['Price']>2000
c) 'Price'>2000 d) None of these
45. Which of the following is/are e-waste(s)?
a) Cell phones b) GPS devices
b) Laptops d) All of these
46. Mr. Rajkiran a teacher has created a dataframe "School" storing the details of some
schools as follows:
Schoolname Location
0 APS Kolkata
1 KVS Delhi
2 AVS Assam
To get the school name only the command will be
a) School['Schoolname'] b) School.Schoolname
c) Both a) and b) d) School[1]
47. A series "Rivers" is created containing data as follows:
0 Ganga
1 Yamuna
2 Saraswati
3 Amazon
dtype: object
What will be the output after execution of the code?
Rivers[0:2] = 'Indian Rivers'
print(Rivers)
a) 0 Indian Rivers b) 0 Indian Rivers
1 Indian Rivers 1 Indian Rivers
2 Saraswati
3 Amazon
c) 1 Indian Rivers d) None of the these
2 Saraswati
© Copyright reserved 2020.
DIGITECH TUTORIAL POINT DIGITECH TUTORIAL POINT DIGITECH TUTORIAL POINT DIGITECH TUTORIAL POINT DIGITECH TUTORIAL POINT DIGITECH TUTOR

Page | 8
DIGITECH TUTORIAL POINT DIGITECH TUTORIAL POINT DIGITECH TUTORIAL POINT DIGITECH TUTORIAL POINT DIGITECH TUTORIAL POINT DIGITECH TUTORIAL POINT

48. A dataframe "SocialNetworks" has following data:


Society Subscribers
0 Facebook 45
1 Twitter 78
2 Instagram 20
The output of the command SocialNetworks['Subscribers']%2==0 will give
a) 1 False, 1 True b) 2 False, 2 True
b) 0 False, 2 True d) 1 False, 2 True
49. Given the statements with respect to pandas dataframe:
Statement A The loc() function uses to specify the index range while extracting slices.
Statement B The iloc() function uses to specify the index range while extracting slices.
a) Both statements are correct.
b) Both statements are incorrect.
c) Statement A is correct, Statement B is incorrect.
d) Statement A is incorrect, Statement B is correct.

SECTION: C
(Case Study Based)
( This section consists of 6 questions (50 to 55), attempt any 5 questions.)

Ms. Priyanjana has written a code by which she wants to plot the following chart showing
some endangered species and their number in India. She also wants to save the plot into
a file. She is missing some of the statements/commands. Help her with the missing
commands.

Code
_______ matplotlib.pyplot as plt #Blank 1
Animals = ['Tiger','Leopard','Deer','Crocodile']
number = [100,160,200,155]
plt.______(Animals, _______ ,color='red') #Blank 2, #Blank 3
plt.______ = 2 #Blank 4
plt.title("Endangered Species")

© Copyright reserved 2020.


DIGITECH TUTORIAL POINT DIGITECH TUTORIAL POINT DIGITECH TUTORIAL POINT DIGITECH TUTORIAL POINT DIGITECH TUTORIAL POINT DIGITECH TUTOR

Page | 9
DIGITECH TUTORIAL POINT DIGITECH TUTORIAL POINT DIGITECH TUTORIAL POINT DIGITECH TUTORIAL POINT DIGITECH TUTORIAL POINT DIGITECH TUTORIAL POINT

plt.______ #Blank 5
plt._____ ("Species.jpg") #Blank 6
50. The content of Blank 1 will be
a) imports b) add
b) include d) import
51. The content of Blank 2 to plot the chart will be
a) box b) bar
c) graph d) barh
52. What should be filled in Blank 3 to get the plot as shown in the figure?
a) num c) value
c) number d) values
53. The content of Blank 4 to change the thickness of the bars to 2 will be
a) thickness b) barwidth
c) width d) None of these
54. To display chart Blank 5 should carry the function call
a) view() b) Show()
c) show() d) View()
55. To save the graph Blank 6 should be filled with
a) savegraph() b) save()
c) savefig() d) savepic()

**************************

© Copyright reserved 2020.


DIGITECH TUTORIAL POINT DIGITECH TUTORIAL POINT DIGITECH TUTORIAL POINT DIGITECH TUTORIAL POINT DIGITECH TUTORIAL POINT DIGITECH TUTOR

Page | 10

You might also like