Convolutional Neural Networks Quiz
Practice convolutional neural network (CNN) concepts with 15 original multiple-choice questions. Work through filters, stride, padding, pooling, and output shapes with explained answers.
Introductory machine learning and computer vision studentsWhich operation lets a convolutional layer use the same learned weights to look for a feature in different parts of an image?
Ready to play?
Open at Step 3 with every question loaded. Play solo, host live, or customize your game.
Play & Customize GameQuestions by ladder level
Which operation lets a convolutional layer use the same learned weights to look for a feature in different parts of an image?
- Sliding a filter across the image
- Sorting the pixels by intensity
- Assigning independent weights to each image position
- Replacing all pixel values with their global mean
Show answer and explanation
Correct answer: A. Sliding a filter across the image
A filter shares its weights across spatial positions, so it can respond to a similar pattern wherever the filter fits.
What does a 3 by 3 kernel describe for an ordinary two-dimensional convolution with dilation 1?
- Three passes over the entire image
- An output with three channels
- A window three pixels high and three pixels wide
- A step size of three pixels in each direction
Show answer and explanation
Correct answer: C. A window three pixels high and three pixels wide
The kernel size describes the spatial window. The number of filters and the stride govern different properties.
Which setting says how far the filter window moves between neighboring positions?
- Bias
- Stride
- Batch size
- Learning rate
Show answer and explanation
Correct answer: B. Stride
A stride of two moves the window two positions at a time along the corresponding spatial axis.
What gets added just outside an image when a layer uses zero padding?
- New learned pixel values
- The image-wide average
- A copy of each corner pixel
- Zeros
Show answer and explanation
Correct answer: D. Zeros
Zero padding extends the input with zeros, changing which windows can be evaluated near its boundary.
A max-pooling window contains 2, 7, 4, and 1. What single value does the layer return for that window?
- 2
- 7
- 3.5
- 14
Show answer and explanation
Correct answer: B. 7
Max pooling keeps the greatest value in the window. Here 7 is larger than each of the other entries.
An ordinary 2D convolution takes an RGB image and applies 12 learned filters. How many channels does its output have?
- 12
- 3
- 4
- 36
Show answer and explanation
Correct answer: A. 12
Each filter spans all three input channels and produces one output feature map, giving 12 output channels.
What spatial shape comes from 2 by 2 max pooling on a 14 by 14 feature map with stride 2 and no padding?
- 13 by 13
- 6 by 6
- 12 by 12
- 7 by 7
Show answer and explanation
Correct answer: D. 7 by 7
Nonoverlapping windows cover two rows and two columns at a time. Fourteen divides evenly into seven windows along each axis.
A 3 by 3 filter scans an 8 by 8 input with stride 1 and no padding or dilation gaps. What is the output’s spatial shape?
- 7 by 7
- 5 by 5
- 6 by 6
- 8 by 8
Show answer and explanation
Correct answer: C. 6 by 6
Along each axis the window has 8 - 3 + 1 = 6 positions that fit entirely inside the input.
How many input cells must be padded on each side to preserve the spatial size with a 5 by 5 convolution, stride 1, and dilation 1?
- 2
- 1
- 3
- 4
Show answer and explanation
Correct answer: A. 2
The kernel shrinks each axis by four positions without padding. Two cells on each side supply those four positions.
A 3 by 3 convolution uses stride 2 and one cell of padding on every side. With dilation 1, what output width comes from an input width of 10?
- 7
- 4
- 6
- 5
Show answer and explanation
Correct answer: D. 5
The padded width is 12. The window fits when its starting position is 0, 2, 4, 6, or 8.
An ungrouped 2D convolution maps 3 input channels to 8 output channels using 3 by 3 kernels and one bias per output channel. How many trainable values are there?
- 216
- 72
- 224
- 288
Show answer and explanation
Correct answer: C. 224
Each of the 8 filters has 3 × 3 × 3 = 27 weights and one bias, so there are 8 × 28 = 224 values.
A 3 by 3 kernel uses dilation 2. Along one axis, what input span does the kernel cover, counting the gaps?
- 3 cells
- 5 cells
- 6 cells
- 7 cells
Show answer and explanation
Correct answer: B. 5 cells
There is one gap between each pair of sampled positions, so positions 0, 2, and 4 span five cells.
Using floor rounding, how many output positions along one axis does a 3-cell pooling window get from 10 input cells, stride 3, and no padding?
- 5
- 2
- 4
- 3
Show answer and explanation
Correct answer: D. 3
Complete windows start at positions 0, 3, and 6. A start at 9 leaves too few input cells for another complete window.
A 3 by 3 convolution maps 8 input channels to 12 output channels with 4 groups and no biases. How many weights does it have?
- 216
- 108
- 228
- 864
Show answer and explanation
Correct answer: A. 216
Each filter sees 8 ÷ 4 = 2 input channels. There are 12 filters, each with 3 × 3 × 2 = 18 weights.
Two 3 by 3 convolutions are stacked with stride 1, dilation 1, and no pooling. What spatial region of the original input can affect one interior output location in the second layer?
- 6 by 6
- 3 by 3
- 5 by 5
- 9 by 9
Show answer and explanation
Correct answer: C. 5 by 5
The first convolution gives each intermediate cell a 3 by 3 receptive field. The second sees three neighboring cells along each axis, extending that span by two to five.