Python Concepts/Quizzes/NumPy & Co.

{With the follow code choose one or more of the following: -+ The first element in the result is 2
 * type=""}
 * True | False

{With the above code +- The map function iterates over two lists/iterators.
 * type=""}
 * True | False

{With the above code +- The first input argument to the "map" function is a function itself
 * type=""}
 * True | False

{With the above code -+ The last element of the result is 92=81
 * type=""}
 * True | False

{With the follow code B is: - An ordinary list (of lists) Python object: - A numpy array + A numpy matrix
 * type=""}
 * numpy.array and numpy.asarray both constructs a numpy.array
 * numpy.matrix and numpy.mat both constructs a numpy.matrix object

{With the above code and the result is + A matrix product - An elementwise product of the matrix elements: - TypeError: can't multiply sequence by non-int of type 'list' - Concatenation of the two lists
 * type=""}
 * You would get this result if you had used "*" on two arrays

{With the following code the result is + - -  -
 * type=""}

{With the following code the result is - An error as "np.sin" only works for a single value + A plot with 1000 elements - A plot with 2000 elements as "np.sin(x)" and "x" is concatenated
 * type=""}

{With the following code the result is - Two random values between 0 and 1 + approximately array([ 1.50000971, 0.99996545]) - approximately array([ 1.24996107]) - The minimum of two random numbers and the value of the function
 * type=""}

{With the following code "m" is - 1000 - 10 + approximately 10 - 3 - np.nan
 * type=""}