Daily Coding Quiz: Saturday, 7 November 2026
All 10 coding questions with answers and explanations. 0 players took part.
What does a convolutional layer mainly learn?
Computer Vision · easy
- Sorting rules
- Small filters that detect local patterns like edges and textures
- The image size
- Colour histograms only
Answer: B. Small filters that detect local patterns like edges and textures
Explanation: Each filter slides over the image computing dot products. Early layers learn edges; deeper layers combine them into parts and objects.
What does max pooling with a 2×2 window and stride 2 do to a 32 × 32 feature map?
Computer Vision · easy
- Keeps it 32 × 32
- Halves it to 16 × 16, keeping the largest value in each block
- Doubles it to 64 × 64
- Turns it into a single number
Answer: B. Halves it to 16 × 16, keeping the largest value in each block
Explanation: Each non-overlapping 2×2 block becomes one value, the maximum, so height and width are halved.
Which algorithm finds the shortest path from one source in a graph with non-negative edge weights?
DSA · medium
- Kruskal’s
- Dijkstra’s
- Prim’s
- Topological sort
Answer: B. Dijkstra’s
Explanation: Dijkstra’s algorithm greedily settles the closest unvisited node using a priority queue. Kruskal’s and Prim’s build minimum spanning trees.
What is the logical order in which SQL evaluates these clauses?
SQL · medium
- SELECT → FROM → WHERE → GROUP BY
- FROM → WHERE → GROUP BY → HAVING → SELECT → ORDER BY
- FROM → SELECT → WHERE → ORDER BY
- WHERE → FROM → GROUP BY → SELECT
Answer: B. FROM → WHERE → GROUP BY → HAVING → SELECT → ORDER BY
Explanation: That is why a column alias defined in SELECT usually can’t be used in WHERE, but can be used in ORDER BY.
What does Non-Maximum Suppression (NMS) do in object detection?
Computer Vision · medium
- Removes low-resolution images
- Removes duplicate overlapping boxes for the same object, keeping the highest-scoring one
- Normalises pixel values
- Increases the number of anchors
Answer: B. Removes duplicate overlapping boxes for the same object, keeping the highest-scoring one
Explanation: Detectors propose many overlapping boxes. NMS keeps the top box and discards others whose IoU with it exceeds a threshold (often 0.5).
How many learnable parameters does a 3 × 3 convolution with 64 input channels and 128 output channels (with bias) have?
Computer Vision · medium
- 73,856
- 73,728
- 1,152
- 8,192
Answer: A. 73,856
Explanation: Weights: 3 × 3 × 64 × 128 = 73,728, plus 128 biases = 73,856.
Depthwise separable convolution (as in MobileNet) reduces compute by:
Computer Vision · hard
- Using smaller images
- Splitting a standard convolution into a per-channel spatial convolution followed by a 1 × 1 pointwise convolution
- Removing biases
- Quantising weights to 8 bits
Answer: B. Splitting a standard convolution into a per-channel spatial convolution followed by a 1 × 1 pointwise convolution
Explanation: The cost drops roughly by a factor of 1/N + 1/K² (N output channels, K kernel size): about 8–9× fewer operations for 3 × 3 kernels.
What is the receptive field of one output unit after two stacked 3 × 3 convolutions (stride 1)?
Computer Vision · hard
- 3 × 3
- 5 × 5
- 6 × 6
- 9 × 9
Answer: B. 5 × 5
Explanation: Each extra 3 × 3 layer adds 2. Two of them see 5 × 5 with fewer parameters (2 × 9 = 18 vs 25 per channel pair) and an extra non-linearity: the VGG insight.
What does mAP@0.5:0.95 measure in COCO-style detection evaluation?
Computer Vision · hard
- Accuracy at a single IoU of 0.5
- Mean average precision averaged over IoU thresholds 0.50, 0.55, …, 0.95 and over all classes
- Mean pixel accuracy
- Frames per second
Answer: B. Mean average precision averaged over IoU thresholds 0.50, 0.55, …, 0.95 and over all classes
Explanation: Averaging over strict IoU thresholds rewards precise localisation, not just finding the object. mAP@0.5 (the old PASCAL VOC metric) is more lenient.
Why do 1 × 1 convolutions appear so often in modern CNNs (Inception, ResNet bottlenecks, MobileNet)?
Computer Vision · hard
- They enlarge the receptive field
- They mix channels cheaply, changing the channel count (e.g. to reduce it before an expensive 3 × 3)
- They replace pooling
- They act only as an activation function
Answer: B. They mix channels cheaply, changing the channel count (e.g. to reduce it before an expensive 3 × 3)
Explanation: A 1 × 1 conv is a per-pixel linear layer across channels. Bottlenecks shrink channels, apply the 3 × 3, then expand, cutting compute heavily.