Tensor Shapes and Indices Checkpoint

Reconstruct a new trace and diagnose implementation mistakes. Select one answer per multiple-choice question.


Get every question correct to pass this checkpoint. You can review feedback, revise your answers, and submit again.

1. Reshape [[1,2,3],[4,5,6]] to (3,2) preserving traversal order. What is the result?

Select one answer.

2. For [[1,2,3],[4,5,6]], what does summing axis 0 return?

Select one answer.

3. What shape results from broadcasting (2,1,3) and (4,1)?

Select one answer.

4. For A:(2,1,3) and B:(4,1), output index (1,2,2) reads which B entry?

Select one answer.

5. [[1,2,3]] + [10,20,30] uses broadcasting. What shape must be retained?

Select one answer.

6. Why can create_zeros implemented as [[0]*3]*2 be wrong?

Select one answer.

Join Discord