NEW
Font size
WorksheetsML/AI internship Intermediate assessment
Total questions: 30
Worksheet time: 15mins
From the given choices point out the wrong statement.
Series is 1D labeled homogeneously-typed array
DataFrame is general 2D labeled, size-mutable tabular structure with potentially heterogeneously-typed columns
None of the mentioned
Panel is generally 2D labeled, also size-mutable array
How do we install numpy in the system ?
install numpy
pip install python numpy
pip install numpy python
pip install numpy
How to find the last element of list in Python? Assume `bikes` is the name of list.
bikes[0]
bikes[:-1]
bikes[lpos]
bikes[-1]
Operators with the same precedence are evaluated in which manner?
None of the mentioned
Right to Left
Can’t say
Left to Right
Select the reserved keyword in Python
else
import
raise
All the mentioned
Suppose listExample is [3, 4, 5, 20, 5, 25, 1, 3]. What is list1 after listExample.pop(1)?
[3, 4, 5, 20, 5, 25, 1, 3]
[1, 3, 3, 4, 5, 5, 20, 25]
[1, 3, 4, 5, 20, 5, 25]
[3, 5, 20, 5, 25, 1, 3]
Suppose listExample is [‘h’,’e’,’l’,’l’,’o’].What is len(listExample)?
error
4
1
5
The ________ project builds on top of pandas and matplotlib to provide easy plotting of data.
yhat
None of the mentioned
Vincent
Seaborn
To add a new element to a list which of the following command to be used.
list1.add(5)
list1.addEnd(5)
list1.addLast(5)
list1.append(5)
To insert 5 to the third position in list1, which of the following command to be used.
list1.append(3, 5)
list1.insert(5, 3)
list1.add(3, 5)
list1.insert(3, 5)
What data type is the object below?L = [1, 23, 'hello', 1]
tuple
dictionary
array
list
What is the use of the size attribute in Numpy array in Python ?
It finds the direction
All the mentioned
It finds the shape
It finds the number of items
What will be the output of the following Python code?t=(1,2,4,3)t[1:3]
(1,2)
(1,2,4)
(2,4,3)
(2,4)
What will be the output of the following Python expression?round(4.576)
4.5
4.6
4
5
What would be the best value for “random_state(Seed value)”?
np.random.seed(1)
np.random.seed(42)
np.random.seed(32)
Can't say
Which is the correct operator for power(xy)?
x^y
None of the mentioned
x^^y
x**y
Which of the following cannot be a variable?
__init__
on
it
in
Which of the following data type is not supported in Python?
Numbers
String
List
Slice
Which of the following function gives information about top level data?
None of the mentioned
tail
summary
head
Which of the following graph can be used for simple summarization of data?
Scatterplot
Overlaying
All of the mentioned
Barplot
Which of the following input can be accepted by DataFrame?
Structured array
Series
DataFrame
All of the mentioned
Which of the following is a Python tuple?
[1, 2, 3]
None of the mentioned
{1, 2, 3}
(1, 2, 3)
Which of the following is not a step in the Data Analysis process?
Data gathering
Modeling
Pre-processing
None of the mentioned
Which of the following is used for Machine Learning in Python?
None of the mentioned
seaborn-learn
stats-learn
scikit-learn
Which of the following keyword is used to access the numpy module in Python?
access
from
fetch
import
Which of the following library is similar to Pandas?
Seaborn
RPy
OutPy
NumPy
Which of the following object has a method cov to compute covariance between series?
None of the mentioned
DataFrame
Panel
Series
Which of the following object you get after reading CSV file?
All of the mentioned
Character Vector
Panel
DataFrame
Which of the following statements create a dictionary?
d={}
d={“john”:40,“peter”:45}
d={40:”john”,45:”peter”}
All of the mentioned
Which of the following value is provided by kind keyword for barplot?
None of the mentioned
kde
hexbin
bar
