Section A Consists of 25 Questions, Attempt Any 20 Questions
Section A Consists of 25 Questions, Attempt Any 20 Questions
Section A Consists of 25 Questions, Attempt Any 20 Questions
11.---------------------------is made when information is collected from the user without the person
knowing this is happening.
(a) active footprint (b) passive footprint (c) pass footprint (d) known footprint
12. Repeated posting of rumours online is the violation of
(a) Copyright (b) Cybercrime (c) plagiarism (d) None of these
13. ‘O’ in ODF stands for:
(a) Original (b) Open (c) Operating (d) Operator
20. Which of the following method can be used to change the name of column in dataframe?
(a) colname (b) newname (c) rename (d) reindex
21. Which of the following statement is correct to set the value True to ignore_index?
(a) ignore.index:true (b) ignore_index:True (c) ignore_index=True (d) ignore_index=true
22. Which of the following is incorrect statement to create DataFrame using list?
(a) df=pd.DataFrame(data=[‘red’,’green’,’blue’,’yellow’])
(b) df=pd.DataFrame(list=[‘red’,’green’,’blue’,’yellow’])
(c) df=pd.DataFrame([‘red’,’green’,’blue’,’yellow’])
(d) all of these
23. Which of the following command is used to display all records having rollno>3?
(a) print(df[df[‘Roll’]>3]) (b) print(df[‘Roll’]>3) (c) print(df.Roll>3]) (d)
print(df(‘Roll’)>3)
24. Which function will be used to write data into dataframe from CSV file?
(a) readcsv() (b) to_csv() (c) read_csv() (d) csv_read()
25. Which of the following code will display the total number of rows?
(a) print(len(stud.axes[0]) (b) print(stud.len(0))
SECTION -B
Section B consists of 24 Questions (26 to 49). Attempt any 20 questions.
28. Write a single line command to calculate 10% from ‘sale’ column from dataframe df and
assign to new column‘Commission’.
(a) df.insert[‘Commission’]=df.sale*10/100
(b) df[‘Commission’]=df.sale*10/100
(c) df.loc[‘Commission’]=df.sale*10/100
(d) df[‘Commission’,axis=1]=df.sale*10/100
29. ___________refers to the proper manners and behaviour we need to exhibit while being
online.
(a) Human Etiquets (b) Net Etiquettes
(c) Web Etiquets (d) Online Etiquets
30. Observe the following figure and Identify the location of legend.
(a) loc=1 (b) loc=2 (c) loc=3 (d) loc=4
31. Read the statements given below and identify the right option while draw a Line Chart.
34. Consider the following statements with reference to the plagiarism.Which of the following is
not considered as plagiarism?
(a) The practice of taking someone else’s work or ideas and passing them off as one’s
own
(b) Copy data from internet
(c) Credit the original author in an in-text citation and reference list.
(d) Using graphs, charts, figures, or images without reference of source
35. Consider the following series named Result.
Rohan 90
Aman 60
Divya 34
Jeet 78
Raj 25
Jyoti 85
Gagan 32
Write the output of the command: print(Result[::)
(a)
Rohan 90
Aman 60
Divya 34
Jeet 78
Raj 25
Jyoti 85
Gagan 32
(b)
Gagan 32
Jyoti 85
Raj 25
Jeet 78
Divya 34
Aman 60
Rohan 90
( c) No output
(d) Error
36. Rajiv received a fake email from an unknown person who claimed that Rajiv won Lottery of
`50 Lacs. They asked Rajiv to provide his personal information for verification. What do you
think he should do?
41. A research student is expected to write a thesis on a topic. The student browses Internet for
the topic and luckily finds it on the Internet. He copies and submits the entire thesis as his own
research work. Which of the following activities appropriately categories the act of the writer:
44. Naman has created the following dataframe “Climate” to record the data about climatic
conditions of four years.
Which of the following code snippets will return the MaxTemp and Rainfall for year 2018 and
2019?
(a) Climate[[‘MaxTemp’,’Rainfall’]][1:3] (b) Climate[‘MaxTemp’, ‘Rainfall’][1:3]
(c) Climate.iloc[1:3] (d) Climate.iloc[1:3,1:2]
49. Read the statements given below. Identify the right option from the following for series and
dataframe
Statement A: Series is size immutable but value mutable.
Statement B: Dataframe is size and value mutable.
(a) Both statements are correct.
(b) Both statements are incorrect.
(c) Statement A is correct, but Statement B is incorrect
(d) Statement A is incorrect, but Statement B is correct
SECTION - C
Section C consists of 6 Questions (50 to 55). Attempt any 5 questions
Mr. Ankit is working in an University as data analyst. He uses Python Pandas and Matplotlib for
the same. He got a dataset of the students for the year 2010 and 2011. His management wants
certain information from him, but he isfacing some problems. Help him by answering few
questions given below.
CODE
import pandas as pd
df1 = pd.DataFrame({‘mark1’:[30,40,15,40],’mark2’:[20,45,30,70]}); #values change
df2 = pd.DataFrame({‘mark1’:[10,20,20,50],’mark2’:[15,25,30,30]});
print(df1)
print(df2)
53. He wants to change index label of df1 from 0 to zero and from 1 to one.
(a) df1.rename(index = {0: “zero”, 1:”one”}, inplace = True)
(b) df1.rename(row = {0: “zero”, 1:”one”}, inplace = True)
(c) df1.rename(rows = {0: “zero”, 1:”one”}, inplace = True)
(d) df1.rename(index{0: “zero”, 1:”one”}, inplace = True)
54. He wants to delete column mark2 from dataframe df1.
(a) df1.drop(‘mark2’,axis=0,inplace=True)
(b) df1.del(‘mark2’,axis=1,inplace=True)
(c) del df[‘marks’,axis=1,inplace=True)
(d) df1.drop(‘mark2’,axis=1,inplace=True)
55. Add new column Total in dataframe df2 which is the sum of mark1 and mark2.
(a) df2[‘Total’]=df2.mark1+df2.mark2
(b) df2.column[‘Total’]=df2[mark1+mark2]
(c) df2.add[‘Total’]=df2[mark1+mark2]
(d) df2.newcolumn[‘Total’]=df2[mark1+mark2]
ANSWERS:
1. (d) 2. (c) 3. (d) 4. (a) 5. (a) 6. (b) 7. (d) 8. (c) 9. (b) 10. (b)
11. (b) 12. (b) 13. (b) 14. (c) 15. (a) 16. (b) 17. (a) 18. (d) 19. (a) 20. (c)
21. (c) 22. (b) 23. (a) 24. (c) 25. (a) 26. (a) 27. (b) 28. (b) 29. (b) 30. (d)
31. (d) 32. (c) 33. (b) 34. (c) 35. (a) 36. (d) 37. (b) 38. (b) 39. (a) 40. (a)
41. (c) 42. (c) 43. (a) 44. (a) 45. (a) 46. (b) 47. (c) 48. (b) 49. (a) 50. (d)
51. (d) 52. (b) 53. (a) 54. (d) 55. (a)