WorksheetsCLASS_XII_SERIES_MCQ
Total questions: 20
Worksheet time: 15mins
To create an empty Series object, you can use:
pd.Series(empty)
pd.Series( )
pd.Series(np.NaN)
all of these
To get the number of elements in a Series object, attribute may be used
index
size
itemsize
ndim
To specify datatype int16 for a Series object, you can write :
pd.Series(data = array, dtype = int16)
pd.Series(data = array, dtype = numpy.int16)
pd.Series(data = array.dtype pandas.int16)
pd.Series(data = array.dtype pandas.int16)
. To get the number of dimensions of a Series object,
index
size attribute is displayed.
itemsize
ndim
To get the size of the datatype of the items in Series object, you can display attribute.
index
size
itemsize
ndim
To get the number of elements in a Series object, attribute may be used.
index
size
itemsize
ndim
To display third element of a Series object S, you will write
S[:3]
S[02]
S[2]
S[:2]
To display first three elements of a Series object S, you may write
S[:3]
S[3]
S[3rd]
all of these
To display last five rows of a Series object S, you may write
head()
head()
tail(15 )
tail(5)
Pandas object cannot grow in size.
Dataframe
Panel
Series
None of these
The axis 0 identifies a dataframe's
rows
rows
values
datatype
To display the 3rd, 4th and 5th columns from the 6th to 9th rows of a dataframe you can write
DF.LOC[6:9, 3:5]
DF.LOC[6:10, 3:6]
DF.iloc[6:10, 3:6]
DF.iloc[6:9, 3:5]
Identify the correct statement:
Data frames can change their size.
Series act in a way similar to that of an array.
Both (a) and (b)
None of the above
To delete a column from a DataFrame, you may use statement.
remove
Crop
drop
cancel statement.
Which of the following statement will import Pandas library ?
import pandas as pd
import pandas as py
import panda as py
All of these
What will be the output for the following code ?
>>> import pandas as pd
>>> S = pd. Series([1,2,3,4,5],index = ['a', 'b', 'c', 'd', 'e'])
>>> print ( s[ 'a'] )
2
1
3
4
What is the purpose of using ndim attribute ?
It returns the number of elements in the given data structure.
It returns the Series object in the form of an ndarray.
It returns a list of the indexes / labels.
It returns the number of dimensions of the given data structure.
Which of the following are modules/libraries in Python?
NumPy
Pandas
Matplotlib
All of the above
NumPy stands for ____
Number Python
Numerical Python
Numbers in Python
None of the above
PANDAS stands for _____________
Panel Data Analysis
Panel Data analyst
Panel Data
Panel Dashboard
