
Data Preprocessing - 1
Authored by Lilesh Pathe
Computers
Professional Development
Used 2+ times

AI Actions
Add similar questions
Adjust reading levels
Convert to real-world scenario
Translate activity
More...
Content View
Student View
40 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
What does np.random.rand(2,3) generate?
2D array with random integers
2D array with random floats between 0 and 1
3D array with random integers
Array with random Gaussian distribution
2.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
What does np.linspace(0, 10, 5) produce?
Five evenly spaced numbers from 0 to 10
Ten evenly spaced numbers from 0 to 5
Sequence of integers
None of the above
3.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
What is the output of np.eye(3)?
3×3 identity matrix
3×3 zero matrix
3×3 matrix of ones
None of the above
4.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
Which NumPy method is used to check for NaN values?
np.isnan()
np.isnull()
np.missing()
np.check_nan()
5.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
Which NumPy function is used to compute the cumulative sum?
np.cumsum()
np.sum()
np.add()
np.total()
6.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
In NumPy, axis=1 in a sum function means:
Sum across columns
Sum across rows
Sum diagonally
Sum all elements
7.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
Which function is used to write a DataFrame to a CSV file?
to_csv()
write_csv()
save_csv()
export_csv()
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?