Bird
0
0

Which of the following is the correct syntax to find the minimum value of a NumPy array named data?

easy📝 Conceptual Q3 of 15
NumPy - Aggregation Functions
Which of the following is the correct syntax to find the minimum value of a NumPy array named data?
Adata.min()
Bnp.min(data)
Cnp.min[data]
Ddata.min
Step-by-Step Solution
Solution:
  1. Step 1: Identify correct function call syntax

    np.min() is a function and requires parentheses with the array as argument.
  2. Step 2: Check each option

    np.min(data) uses correct function call syntax. data.min() is a method call on the array, which is valid but not the question's focus. np.min[data] uses brackets incorrectly. data.min misses parentheses.
  3. Final Answer:

    np.min(data) -> Option B
  4. Quick Check:

    Function call syntax uses parentheses [OK]
Quick Trick: Use parentheses () to call np.min() function [OK]
Common Mistakes:
  • Using square brackets instead of parentheses
  • Missing parentheses
  • Confusing method and function syntax

Want More Practice?

15+ quiz questions · All difficulty levels · Free

Free Signup - Practice All Questions
More NumPy Quizzes