Font size
WorksheetsSeason 2 #Spaic Python Weekly Quiz
Total questions: 20
Worksheet time: 10mins
Which pandas function can be used to create a data frame from a large text file?
read_json
read_pickle
read_hdf
read_csv
Which among the following options can be used to create a DataFrame in Pandas?
A Scalar value
An ndarray
A Python dict
All of the above
A series is a one-dimensional array which is labelled and can hold any data type.
True
False
Data structures in Pandas can be mutated in the terms of ____ but not of _____.
size, value
value, size
semantic,size
None of the above
Which of the following is prominent python “statistics and econometrics library”?
Bokeh
Seaborn
Statsmodels
None of the mentioned
The ________ project builds on top of pandas and matplotlib to provide easy plotting of
yhat
Seaborn
Vincent
None of the mentioned
Which of the following is used for testing for membership in the list of column names?
in
out
elseif
none of the mentioned
Can the shape attribute of a NumPy array be used to change its shape?
Yes
No
What will be the following code's output?
1
2
5
4
What will be the following code's output?
[[ 4 5]
[ 7 8]
[10 11]]
error
[[ 4 ]
[ 7 ]
[ 10 ]]
[[ 4 5]
[ 7 8]]
Minimum number of arguments to pass in full() function in Numpy array ?
0
1
2
3
Which of these is an invalid writer function in Pandas?
to_clipboard
to_text
to_stata
to_msgpack
What happens to the indexes when any operations are done to unaligned series?
Total
Union
Intersection
All of the above
What relationship is best suited for employee and Person?
Association
Composition
Inheritance
None of the above
What relationship is best suited for course and faculty?
Association
Composition
Inheritance
None of the above
Polymorphism is when a subclass can modify the behavior of its superclass?
False
True
Depends on the content of the class
Invalid Question
Which of the following statement can be used to check whether an object "obj" is an instanvce of class A or not?
obj.instance(A)
A.isinstance(obj)
isinstace(obj , A)
isinstance(A, obj)
In python , what is method inside class?
attribute
object
argument
function
Which of the following is correct ?
5
6
0
Error
Which of the following can be used to invoke the __init__ method in B from A , Where A is a subclass of B?
super().__init__()
super().__init__(self)
B.__init__()
B.__init(self)
