Computer Vision MCQs for the NSCT
Computer Vision is the part of AI that lets models understand images: convolution extracts features, pooling shrinks them, detection finds and boxes objects, and segmentation labels every pixel. It is one of the 17 topics in the AI, Machine Learning & Data Analytics area, which carries 10% of the NSCT according to HEC's Areas of Competencies. Candidates averaged 50.8% accuracy in this area in 2026, per the HEC NSCT report and APP.
A computer sees an image as numbers. An 8-bit grayscale image is a grid of values from 0 to 255; a colour image has three such grids (red, green, blue). Most questions in this topic are about what a convolutional neural network (CNN) does to those grids, so revise Deep Learning Fundamentals first.
Convolution
A convolutional layer slides a small filter (kernel), such as 3×3, across the image. At each position it multiplies the overlapping values and sums them into one output number. The same filter weights are reused everywhere, which is called parameter sharing.
The output size formula is the one to learn:
Output = (W − K + 2P) ÷ S + 1, rounded down, where W is the input size, K the kernel size, P the padding and S the stride.
Example: a 6×6 input with a 3×3 filter, stride 1 and no padding gives (6 − 3 + 0) ÷ 1 + 1 = 4, so a 4×4 output. Parameters per layer = (K × K × input channels + 1) × number of filters. Sixteen 3×3 filters on an RGB image need (27 + 1) × 16 = 448 parameters.
Exam angle: the number of output channels equals the number of filters, not the number of input channels.
Pooling
Pooling reduces the height and width of a feature map and adds some tolerance to small shifts. It has no learnable weights and works on each channel separately.
| Type | Output of each window | Typical use |
|---|---|---|
| Max pooling | Largest value | Most CNN hidden layers |
| Average pooling | Mean value | Smoother summaries, older nets |
| Global average pooling | Mean of the whole channel | Before the final classifier |
A 2×2 window with stride 2 halves each side: 28×28×16 becomes 14×14×16.
Exam angle: pooling changes height and width, never depth.
Detection
Object detection outputs a class and a bounding box for each object. Boxes are compared with Intersection over Union (IoU): overlap area ÷ combined area. For boxes (0,0,4,4) and (1,1,5,5), the overlap is 3 × 3 = 9 and the union is 16 + 16 − 9 = 23, so IoU ≈ 0.39.
| Detector family | Stages | Examples | Trade-off |
|---|---|---|---|
| Two-stage | Propose regions, then classify | R-CNN, Fast R-CNN, Faster R-CNN | Usually more accurate, slower |
| One-stage | Predict boxes in one pass | YOLO, SSD, RetinaNet | Faster, suits real time |
Detectors often produce several overlapping boxes per object. Non-maximum suppression (NMS) keeps the highest-scoring box and removes others whose IoU with it exceeds a threshold, often 0.5.
Exam angle: a prediction counts as a true positive only if its IoU with a ground-truth box reaches the evaluation threshold.
Segmentation
Segmentation works at pixel level:
- Semantic segmentation gives every pixel a class (road, car, sky) but does not separate one car from another.
- Instance segmentation gives each object its own mask, e.g. Mask R-CNN.
- Panoptic segmentation combines both.
Networks such as U-Net use an encoder to downsample and a decoder to upsample, with skip connections that carry fine detail from the encoder, so the edges of the masks stay sharp.
Exam angle: if a task needs counting or separating touching objects, the answer is instance segmentation, not semantic.
Common traps
- Forgetting the "+ 1" or the padding term in the output-size formula.
- Thinking pooling has trainable weights or changes the number of channels.
- Leaving out bias terms when counting convolution parameters.
- Computing IoU as overlap ÷ one box's area instead of overlap ÷ union.
- Mixing up semantic and instance segmentation.
- Calling YOLO a two-stage detector.
Worked examples
1. Understanding. How many learnable parameters does a 2×2 max-pooling layer have? Answer: Zero. Max pooling just picks the largest value in each window; there are no weights or biases to train.
2. Application. A 64×64 image passes through a 3×3 convolution (stride 1, padding 1) and then 2×2 max pooling with stride 2. What is the final height and width? Answer: 32×32. The convolution keeps the size: (64 − 3 + 2) ÷ 1 + 1 = 64. Pooling then halves it to 32.
3. Analysis. A detector names every object correctly, but its mAP at IoU 0.5 is very low. Inspection shows its boxes are consistently too small, with IoU around 0.4 against the ground truth. What is happening? Answer: Each prediction falls below the 0.5 IoU threshold, so it counts as a false positive and the real object as a false negative. Classification is fine; the box regression (or anchor sizes) needs fixing.
Practise
The quiz below has 100 Computer Vision questions you can filter by tier and difficulty.
Practise: 100 questions
FAQs
What is the formula for the output size of a convolution?
Output = (W − K + 2P) ÷ S + 1, rounded down, where W is the input width, K the kernel size, P the padding and S the stride. Apply it separately to height and width. The output depth is simply the number of filters in the layer.
Why do CNNs work better than fully connected networks on images?
A fully connected layer links every pixel to every neuron, which needs millions of weights and ignores which pixels are neighbours. A CNN reuses one small filter across the image, so it needs far fewer parameters and learns local patterns such as edges that appear anywhere.
What is the difference between object detection and segmentation?
Detection draws a bounding box and a class label around each object. Segmentation labels individual pixels: semantic segmentation by class only, instance segmentation with a separate mask for each object. Segmentation gives exact shapes, while detection gives rough rectangles.
Which IoU threshold is used to evaluate detections?
0.5 is the classic threshold (the PASCAL VOC standard). COCO averages results over thresholds from 0.5 to 0.95. In an MCQ, always use the threshold given in the question.
Next step
Continue with Big Data Analytics MCQs, go back to the AI & ML MCQs hub, or try a timed NSCT mock test.