Data Fundamentals (H) - Week 01 Quiz
1. An array has shape (13, 5). What would we call it?
A vector
A tensor
A vectrix
A matrix
An ellipsis
2. Vectorised operations:
Do not work on numbers
Do one operation on one number at a time
Do many operations to the same data items at once
Do operations without a defined order
Do the same operation on many data items at once
3. Arrays have fixed:
shape and dtype
variable names
elements
legs
sums
4. An (8,4) array has:
4 legs, 8 arms
8 rows, 4 columns
2 frames, 4 rows, 4 columns
8 rows, 1 column, 1 depth
4 rows, 8 columns
5.
x[::2, 1:5]
is a slice which indexes:
Every row, all columns
Every other row, columns 1-5
Every row, columns 0-6
Every row, columns 1-5
Every column, rows 1-6
6.
np.arange(1,5)
produces the array:
[0,1,2,3,4,5]
[[1], [1,2], [1,2,3], [1,2,3,4], [1,2,3,4,5]]
[1,1,1,1,1]
[0,1,2,3,4]
[1,2,3,4]
Submit Quiz