I was recently asked at an interview to calculate the number of parameters needed, for a convolutional layer. I am deeply ashamed to admit I didn't know how to do that, even though I've been working and using CNN for years now.

The question was: given a CNN with ten $3 \times 3$ filters and an input of $24 \times 24 \times 3$, what is the total number of parameters?