wayground logo

Free Printable Worksheets

NEW

Font size

S
M
L
XL
Worksheets

2021 Sample Paper 14 (TERM 1)

Total questions: 55

Worksheet time: 55mins

Name
Class
Date
1.

Statement A Histograms are used to describe distributions.

Statement B To specify the intervals in x-axis, the property used is “interval”.

a)

Statement A is correct.

b)

Statement B is correct

c)

Statement A is correct, but Statement B is incorrect

d)

Statement A is incorrect, but Statement B is correct.

2.

What happens, if the show() function is not used in a chart plotting code?

a)

The chart is not plotted

b)

An error is generated

c)

Chart is plotted but not displayed

d)

Chart is plotted , shown but with improper data

3.

Firewalls are

a)

softwares that destroy viruses

b)

commercial softwares

c)

utilities that filter the entry of malwares

d)

cleaner softwares

4.

Given the statements regarding Internet use :

Statement A We can freely comment on anything.

Statement B Age and gender should not be asked.

Statement C Bulk E-mail attachments cannot be send to people.

Statement D We can try to get access to other’s E-mails.

Which of the statements justify proper use of Internet?

a)

Statement A and Statement B

b)

Statement B and Statement C

c)

Statement C and Statement D

d)

Statement B and Statement D

5.

Index Values

“Exec” 125000

“Officer’’ 90000

“Clerk” 75000

The output of the code Empgrade.iloc[1:10] will be

a)

"officer" 90000

b)

"officer" 90000

"clerk" 75000

c)

Error in code

d)

Empty Set

6.

The activities to be done, if someone has mistakenly responded to a phishing attack.

a)

Change the passwords

b)

Contact the fraud department of the institution

c)

Ignore it

d)

Change Password and Contact Fraud Department

7.

collegedf=pd.DataFrame({‘Name’:[‘Jack’,‘Priya’,‘Subodh’],‘Maths’:[45,89,98],‘IP’

:[89,78,66]})

The number of columns and rows in the dataframe is

a)

3,4

b)

3,3

c)

1,3

d)

None of the above

8.

Ways to prevent identity theft are

a)

use strong and unique password

b)

avoid posting confidential information online

c)

do not post personal information on social media

d)

All of the above

9.

What is the difference between pop() and drop() functions?

a)

pop() removes permanently, but drop() removes temporarily

b)

No difference

c)

drop() function does not exist.

d)

pop() is used to remove a row , but drop() removes a column

10.

Which of the following come under cyber crime?

a)

Theft of a new laptop

b)

Access of a bank account in unauthorised way

c)

Unauthenticated modification of a company’s data online

d)

Both except Theft of laptop

11.

The command to make an empty dataframe “df1” is

a)

df1=Empty

b)

df1=[]

c)

df1=blank

d)

df.clear()

12.

Given a dataframe “Marksdf” storing the following :

Index Name Maths Physics

0 Anil 67 89

1 Anirban 23 96

2 Souvik 100 45

To print the marks in Physics that are >65, the code would be

a)

for a in Marksdf [‘Physics’]:

if a>65:

print(a)

b)

for a in range(Marksdf.length):

if a>65:

print(a)

c)

a=0

while a<Marksdf.‘Physics’.values:

if a>65:

print(a)

d)

None

13.

Ankita created a dataframe “Student” storing data of students as follows :

Name Maths IP

0 Jack 45 89

1 Priya 89 78

2 Subodh 98 66

The output of the command : Student ['Maths']<56 will display

a)

0 True

1 False

2 False

b)

0 True

c)

1 False

2 False

d)

Error

14.

Which among the following cannot be a source of phishing?

a)

A financial institution

b)

A chain store

c)

A school

d)

Both chain store and school

15.

Predict output of the following code:

s1=pd.Series([20,40,60,80])

s1=s1%3

s2=s1.head(3)

print(s2)

a)

0 2

1 1

2 0

b)

0 1

2 2

c)

2 2

d)

1 1

2 0

16.

With respect to the dataframe “Bank”:

Index BankName Type

0 SBI Govt

1 Axis Private

2 PNB Govt

3 CBI Govt

What will be the output of the code?

m=‘Pr’

for a in Bank[‘Type’]:

if m in a:

print(a)

a)

Govt

b)

Private

c)

1

d)

Empty

17.

Index Patient Eye Power

0 Mr. Rakesh 2.5

1 Ms. Sita 1.2

2 Ms. Julie 1.0

The output of the command print(Eye[2:10]) will be

a)

Error

b)

2 Ms. Julie 1.0

c)

Empty Set

d)

0 Mr. Rakesh 2.5

18.

Statement A In Python Pandas, all functions start with uppercase alphabets.

Statement B All function calls must end by a semicolon (;).

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

19.

The statement to create the dataframe will be :

a)

Football=pd.Dataframe(‘Player’:[‘Ronaldo’,‘Pele’,‘Maradona’],‘Club’:

[‘AC Milan’,‘Real Madrid’,‘Royal Argentina’],‘Charges’:[9.6,10.5,19.5])

b)

Football=pd.DataFrame({‘Player’:[‘Ronaldo’,‘Pele’,‘Maradona’],‘Club’:

[‘AC Milan’,‘Real Madrid’,‘Royal Argentina’],‘Charges’:[9.6,10.5,19.5]})

c)

Football= DataFrame{‘Player’:[‘Ronaldo’,‘Pele’,‘Maradona’],‘Club’:

[‘AC Milan’,‘Real Madrid’,‘Royal Argentina’],‘Charges’:[9.6,10.5,19.5]}

d)

Football= DataFrame(‘Player’:[‘Ronaldo’,‘Pele’,‘Maradona’],‘Club’:

[‘AC Milan’,‘Real Madrid’,‘Royal Argentina’],‘Charges’:[9.6,10.5,19.5])

20.

The shape of the dictionary is given by

a)

Football.dim

b)

Football.size

c)

Shape(Football)

d)

None of these

21.

To set the index as ‘R’,’P’ and ‘M’ respectively for the three rows, the command she

should write is

a)

Football= Football.re_index([‘R’,‘P’,‘M’])

b)

Football= Football.index([‘R’,‘P’,‘M’])

c)

Football=Football.reindex([‘R’,‘P’,‘M’])

d)

Football.newindex(‘R’,‘P’,‘M’)

22.

To make all the charges to 11.9, the statement would be

a)

Football.‘Charges’=11.9

b)

Football(‘Charges’)=11.9

c)

Football[‘Charges’]=11.9

d)

None of these

23.

The output of the statement : Football[‘Charges’]/2 will be

a)

0 4.0

1 5.0

2 9.0

b)

0 40

1 50

2 90

c)

0 4.80

1 5.25

2 9.75

d)

Error

24.

What will be the output of the command Football.size?

a)

10

b)

9

c)

12

d)

15

25.

Arithmetic operations are possible on a dataframe’s

a)

rows

b)

columns

c)

rows and columns

d)

Arithmetic operations are not possible

26.

In a dataframe, columns can store

a)

same type of data

b)

different types of data

c)

only integers

d)

None of the above

27.

The indexes of a series can be seen by the property

a)

indexes

b)

index

c)

values

d)

indices

28.

While slicing a series, if user specifies an index that is more than the last index

a)

no error will occur

b)

python will give an index error

c)

abnormal output will be produced

d)

only the element at the last index will be returned

29.

Which of the following method(s) is/are not available for a series?

a)

Head()

b)

Tail()

c)

iloc()

d)

Head and Tail

30.

Ahitagni was confused whether a dataframe has integer indexes for rows or columns

or both. Columns in a dataframe have by default indexes

a)

starting from ‘a’

b)

starting from 1

c)

starting from 0

d)

starting from 2

31.

Simran wanted to see the number of bytes occupied by her series “mseries”, the

command she should write is

a)

mseries.bytes

b)

mseries.size

c)

mseries.nbytes

d)

mseries.ndim

32.

The ................... function displays a grid in the chart wall

a)

datagrid()

b)

grid()

c)

chartgrid()

d)

pattern()

33.

To plot two lines in two different views of the same window, the function used is

a)

Plot()

b)

plot()

c)

subplot()

d)

plotviews()

34.

Charts cannot be shown

a)

without data

b)

without legends

c)

without title

d)

without axis labels

35.

Which of the following is not true about a freeware?

a)

Available free of cost

b)

Can be modified

c)

Can be copied

d)

Can be redistributed

36.

W3C stands for

a)

World Wide Web

b)

World Web Concerns

c)

World Wide Web Consortium

d)

World Wide Web Concerts

37.

Which of the following is/are not open source software(s)?

a)

Tally

b)

Adobe Photoshop

c)

MS-Windows

d)

All of the above

38.

The drop() function can remove from a dataframe

a)

rows

b)

columns

c)

both rows and columns

d)

drop() function is not available for dataframes

39.

Practice of obtaining contribution from online community is called

a)

communitysourcing

b)

multisourcing

c)

crowdsourcing

d)

crowdgathering

40.

Free softwares allow

a)

free usage

b)

modification

c)

copying

d)

All of these

41.

If two dataframes containing numeric values are added, the resultant dataframe will

have

a)

corresponding elements joined

b)

corresponding elements added

c)

dataframes cannot be added

d)

None of these

42.

The least restrictive open source license is

a)

GNU

b)

Apache

c)

CC

d)

MIT

43.

Which of the following attribute(s) is/are not available with the read_csv() function,

while reading a CSV file?

a)

names

b)

skiprows

c)

heading

d)

nrows

44.

Theft of personal digital information in order to commit crime is called

a)

data theft

b)

identity theft

c)

mail theft

d)

personal theft

45.

The original code written by programmers for a software is called

a)

program code

b)

object code

c)

source code

d)

original code

46.

In a URL, https:// means

a)

the site is simple

b)

the website is secured

c)

the website is owned by the state government

d)

the website is not safe

47.

Missing values in a series can be inserted as

a)

NaN

b)

NULL

c)

NIL

d)

All of these

48.

While reading a CSV file Debanjan wanted to skip 2 rows each time, what parameter

he has to write with the read_csv() function?

a)

Skip=2

b)

skip=2

c)

rows=2

d)

skiprows=2

49.

A dataframe “studs” is created with columns “Name”,”Age” . The column “Age” can

now be

a)

renamed

b)

deleted

c)

modified

d)

All of the above operations are possible

50.

A Series “practice” was created as follows:

import pandas as als

practice=als.Series(20,index=range(1,10,3))

How many values does the Series contain?

a)

3

b)

4

c)

1

d)

Series cannot be created using range()

51.

Given below is a code , what will be the output of the print statement?

import pandas as pd

import numpy as np

s1=np.arange(1,6,2)

s2=pd.Series(index=s1,data=s1**2)

print(s2)

a)

1 3

3 9

5 25

b)

2 4

4 16

6 36

c)

1 1

2 4

3 9

d)

None of the above

52.

Mack a student at Stanford University has created a Series “os” storing names of some

operating systems as values, as follows :

import pandas as pd

os=pd.Series([“Windows”,“Linux”,“Unix”,“DOS”],index=[10,20,30,40])

Now, he wants to create another Series “newos” with values same as “os” but index as

double of the indexes of “os”. The statement he should write

a)

newos=pd.Series(os.value,index=os.index*2)

b)

newos=pd.series(os.values,indexes=index*2)

c)

newos=pd.Series(os.values,index=os.index*2)

d)

None of the above

53.

An echo chamber is

a)

small group of like minded people in a web app or social media

b)

a chatting room of a state

c)

a common room of a country

d)

a room of employees of an organisation

54.

Statement A A legend box must be given when data of multiple elements are plotted

to compare , in a bar chart.

Statement B The legend is shown using the description() function

a)

Statement A is correct

b)

Statement B is correct

c)

Statement A is correct, but Statement B is incorrect

d)

Statement A is incorrect, but Statement B is correct.

55.

In plotting a line chart, the abbreviation “-“ produces a

a)

dotted line

b)

solid line

c)

dash-dot line

d)

dashed line