Professional Documents
Culture Documents
(This Section Consists of 25 Questions (1 To 25), Attempt Any 20 Questions. Choose The Best Possible Option.)
(This Section Consists of 25 Questions (1 To 25), Attempt Any 20 Questions. Choose The Best Possible Option.)
SECTION: A
( This section consists of 25 questions (1 to 25), attempt any 20 questions. Choose the best possible option.)
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.
Page | 2
DIGITECH TUTORIAL POINT DIGITECH TUTORIAL POINT DIGITECH TUTORIAL POINT DIGITECH TUTORIAL POINT DIGITECH TUTORIAL POINT DIGITECH TUTORIAL POINT
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
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.
Page | 5
DIGITECH TUTORIAL POINT DIGITECH TUTORIAL POINT DIGITECH TUTORIAL POINT DIGITECH TUTORIAL POINT DIGITECH TUTORIAL POINT DIGITECH TUTORIAL POINT
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
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
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")
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()
**************************
Page | 10