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 students

Question 1 of 15

$100

Which 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 Game

Questions by ladder level

Level 1 · Local features

Which operation lets a convolutional layer use the same learned weights to look for a feature in different parts of an image?

  1. Sliding a filter across the image
  2. Sorting the pixels by intensity
  3. Assigning independent weights to each image position
  4. 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.

Question reference

Level 2 · The receptive window

What does a 3 by 3 kernel describe for an ordinary two-dimensional convolution with dilation 1?

  1. Three passes over the entire image
  2. An output with three channels
  3. A window three pixels high and three pixels wide
  4. 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.

Question reference

Level 3 · Movement across an image

Which setting says how far the filter window moves between neighboring positions?

  1. Bias
  2. Stride
  3. Batch size
  4. 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.

Question reference

Level 4 · Putting values around a border

What gets added just outside an image when a layer uses zero padding?

  1. New learned pixel values
  2. The image-wide average
  3. A copy of each corner pixel
  4. 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.

Question reference

Level 5 · Selecting from a window

A max-pooling window contains 2, 7, 4, and 1. What single value does the layer return for that window?

  1. 2
  2. 7
  3. 3.5
  4. 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.

Question reference

Level 6 · Counting feature maps

An ordinary 2D convolution takes an RGB image and applies 12 learned filters. How many channels does its output have?

  1. 12
  2. 3
  3. 4
  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.

Question reference

Level 7 · Reading pooling shapes

What spatial shape comes from 2 by 2 max pooling on a 14 by 14 feature map with stride 2 and no padding?

  1. 13 by 13
  2. 6 by 6
  3. 12 by 12
  4. 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.

Question reference

Level 8 · An unpadded convolution

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?

  1. 7 by 7
  2. 5 by 5
  3. 6 by 6
  4. 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.

Question reference

Level 9 · Preserving spatial size

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?

  1. 2
  2. 1
  3. 3
  4. 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.

Question reference

Level 10 · A convolution with stride

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?

  1. 7
  2. 4
  3. 6
  4. 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.

Question reference

Level 11 · Weights and biases

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?

  1. 216
  2. 72
  3. 224
  4. 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.

Question reference

Level 12 · A dilated window

A 3 by 3 kernel uses dilation 2. Along one axis, what input span does the kernel cover, counting the gaps?

  1. 3 cells
  2. 5 cells
  3. 6 cells
  4. 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.

Question reference

Level 13 · A floor in the pooling formula

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?

  1. 5
  2. 2
  3. 4
  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.

Question reference

Level 14 · Counting grouped weights

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?

  1. 216
  2. 108
  3. 228
  4. 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.

Question reference

Level 15 · Stacked receptive fields

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?

  1. 6 by 6
  2. 3 by 3
  3. 5 by 5
  4. 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.

Question reference