
aiml fast track day2
Authored by Nithin G
Professional Development
University
Used 2+ times

AI Actions
Add similar questions
Adjust reading levels
Convert to real-world scenario
Translate activity
More...
Content View
Student View
5 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
45 sec • 1 pt
What is the correct syntax to print the number 8 from the array below:
arr = np.array([[1,2,3,4,5], [6,7,8,9,10]])
print(arr[1, 2])
print(arr[7, 2])
print(arr[3, 0])
print(arr[7, 0])
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the correct syntax to create an array of type float?
arr = np.array([1, 2, 3, 4], dtype='f')
arr = np.float([1, 2, 3, 4])
arr = np.array([1, 2, 3, 4]).toFloat()
arr = np.array.float([1, 2, 3, 4])
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the correct syntax to add the labels "x", "y", and "z" to a Pandas Series?
pd.Series(mylist, labels = ["x", "y", "z"])
pd.Series(mylist, names = ["x", "y", "z"])
pd.Series(mylist, index = ["x", "y", "z"])
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the correct Pandas function for loading CSV files into a DataFrame?
read_file()
ReadFile()
read_csv()
ReadCSV()
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
For the Pandas head() method, how many rows are returned by default, if you do not specify it?
10
5
0
1
Access all questions and much more by creating a free account
Create resources
Host any resource
Get auto-graded reports

Continue with Google

Continue with Email

Continue with Classlink

Continue with Clever
or continue with

Microsoft
%20(1).png)
Apple
Others
Already have an account?