Computer Vision MCQs for the NSCT

By the NSCT Exam Editorial Team · Updated 2026-11-24 · Facts checked against official sources on 2026-11-24

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:

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

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

Interactive quiz loading. The first 10 questions are shown below.

  1. In an 8-bit grayscale image, what range of values can a single pixel take?

    1. 0 to 1
    2. 0 to 255
    3. -128 to 127
    4. 0 to 1023
    Show answer

    Answer: B. 0 to 255

    8 bits give 2^8 = 256 levels, stored as 0 (black) to 255 (white). Images are often rescaled to 0-1 before training, but the stored 8-bit range is 0-255.

  2. Why do convolutional layers need far fewer parameters than fully connected layers on images?

    1. They only process the centre of the image
    2. The same small filter is shared across every position of the image
    3. They store no weights at all
    4. They convert images to text first
    Show answer

    Answer: B. The same small filter is shared across every position of the image

    A convolutional filter (say 3×3) slides over the whole image and reuses its weights at every position. This parameter sharing, plus local connectivity, means the weight count does not depend on image size, unlike a dense layer.

  3. What does a 2×2 max pooling layer do to each 2×2 window of a feature map?

    1. Keeps the average value
    2. Multiplies the values by learned weights
    3. Keeps the largest value
    4. Keeps the smallest value
    Show answer

    Answer: C. Keeps the largest value

    Max pooling outputs the maximum of each window. It shrinks the feature map and adds some tolerance to small shifts, and it has no learnable weights. Taking the mean is average pooling.

  4. In a convolution, what does the stride control?

    1. How many filters the layer has
    2. The number of zero pixels added around the border
    3. The depth of each filter
    4. How many pixels the filter moves between positions
    Show answer

    Answer: D. How many pixels the filter moves between positions

    Stride is the step size of the sliding filter. Stride 1 visits every position; stride 2 skips every other position and roughly halves each spatial dimension. Padding and the number of filters are separate settings.

  5. Why is zero padding added around an image before convolution?

    1. To increase the number of colour channels
    2. To keep the output size from shrinking and let edge pixels be used fully
    3. To remove noise from the image
    4. To make the filter weights zero
    Show answer

    Answer: B. To keep the output size from shrinking and let edge pixels be used fully

    Without padding, each k×k convolution with stride 1 shrinks the map by k-1 and border pixels are covered less often. Adding zeros around the border ('same' padding) keeps the spatial size and treats edges more fairly.

  6. How does object detection differ from image classification?

    1. Detection outputs one label for the whole image
    2. Detection labels every pixel
    3. Detection outputs a class and a bounding box for each object
    4. Detection only works on grayscale images
    Show answer

    Answer: C. Detection outputs a class and a bounding box for each object

    Classification gives one label (or score set) per image. Detection finds each object, giving its class and box coordinates, so one image can produce many detections. Labelling every pixel is segmentation.

  7. Which task assigns a class label (road, car, sky) to every pixel of an image?

    1. Image classification
    2. Object detection
    3. Semantic segmentation
    4. Image compression
    Show answer

    Answer: C. Semantic segmentation

    Semantic segmentation produces a dense label map the same size as the image, with one class per pixel. Detection only gives boxes, and classification gives one label for the whole image.

  8. What is the main purpose of data augmentation (random flips, crops, rotations) when training an image model?

    1. Reduce the number of model parameters
    2. Speed up inference on the test set
    3. Increase the variety of training images to reduce overfitting
    4. Convert colour images to grayscale
    Show answer

    Answer: C. Increase the variety of training images to reduce overfitting

    Augmentation creates realistic variations of existing images, so the model learns features that survive flips, shifts and lighting changes. This acts as regularisation and reduces overfitting, especially on small datasets.

  9. YOLO (You Only Look Once) is best described as:

    1. A two-stage detector that first proposes regions
    2. A one-stage detector that predicts boxes and classes in a single pass
    3. A semantic segmentation network
    4. An image compression format
    Show answer

    Answer: B. A one-stage detector that predicts boxes and classes in a single pass

    YOLO frames detection as one regression problem: a single network pass predicts boxes, confidences and class scores. Two-stage detectors such as Faster R-CNN first propose regions, then classify them.

  10. A 3×3 kernel such as [[-1, 0, 1], [-2, 0, 2], [-1, 0, 1]] (Sobel) is used mainly to:

    1. Detect edges by measuring intensity change
    2. Blur the image evenly
    3. Convert the image to binary
    4. Increase the image resolution
    Show answer

    Answer: A. Detect edges by measuring intensity change

    The Sobel kernel approximates the horizontal gradient: it responds strongly where intensity changes from left to right, i.e. at vertical edges. A blur kernel would have all positive weights.

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.