Sovi.AI - AI Math Tutor

Scan to solve math questions

QUESTION IMAGE

question 5 what type of values can a numpy array contain? only values o…

Question

question 5
what type of values can a numpy array contain?
only values of multiple types.
only strings.
only values of a single type.
only integers.

question 6
what is the result of using a boolean array for subsetting a numpy array?
it returns a new array with elements set to true or false.
it selects elements corresponding to true in the boolean array.
it converts the numpy array into a list of booleans.
it performs a logical and operation on the array.

Explanation:

Answer:

Only values of a single type.
It selects elements corresponding to True in the boolean array.