Unit 1: Foundations of Computer Vision and Deep Learning - Practice Quiz

CSE471 — Deep Learning For Computer Vision 60 Questions
0 Correct 0 Wrong 60 Left
0/60

1 Which task is a common application of computer vision?

Role of computer vision in modern AI applications Easy
A. Detecting pedestrians in images
B. Sorting records alphabetically
C. Predicting stock interest rates
D. Translating speech into text

2 What is the main goal of computer vision?

Role of computer vision in modern AI applications Easy
A. To understand visual information
B. To compress audio recordings
C. To manage network traffic
D. To generate database queries

3 How are visual features commonly obtained in traditional computer vision?

Traditional versus deep-learning-based vision approaches Easy
A. They are copied from labels
B. They are entered by users
C. They are manually designed
D. They are randomly discarded

4 What is a key advantage of deep-learning-based vision systems?

Traditional versus deep-learning-based vision approaches Easy
A. They automatically learn useful features
B. They require no training data
C. They always use grayscale images
D. They avoid all mathematical operations

5 How is a digital image commonly represented inside a computer?

Image fundamentals Easy
A. As a table of file names
B. As a collection of sound waves
C. As a sequence of instructions
D. As a matrix of numeric values

6 What is a pixel?

Pixels Easy
A. A basic unit of an image
B. A method for image labeling
C. A type of neural network
D. A complete image dataset

7 How many color channels does a standard RGB image have?

Channels Easy
A. Three
B. Two
C. Four
D. One

8 What do the letters in the RGB color space represent?

Color spaces Easy
A. Red, Gray, and Black
B. Rose, Gold, and Brown
C. Red, Green, and Blue
D. Ruby, Gray, and Beige

9 Which color space represents an image using hue, saturation, and value?

Color spaces Easy
A. YUV
B. RGB
C. HSV
D. CMYK

10 What does resizing an image change?

Resizing Easy
A. Its file owner
B. Its width and height
C. Its class label
D. Its capture date

11 What happens when an image is cropped?

Cropping Easy
A. A selected region is retained
B. Its colors are inverted
C. Random noise is removed
D. Its channels are duplicated

12 What is a common result of dividing 8-bit pixel values by ?

Normalization Easy
A. Values range from to
B. Values remain from to
C. Values become only or
D. Values range from to

13 What do neural network weights represent?

Neural network basics Easy
A. The number of class names
B. The order of input files
C. The image file sizes
D. The strength of connections

14 During neural network training, what is learned from the data?

Neural network basics Easy
A. Monitor resolution
B. Camera battery level
C. Folder permissions
D. Network parameters

15 What does a basic perceptron compute before applying its activation function?

Perceptron Easy
A. A list of training labels
B. A count of image channels
C. A weighted sum of inputs
D. A crop of the input image

16 In a feedforward neural network, which direction does information move?

Feedforward networks Easy
A. In repeated circular paths
B. Between random layers only
C. From output to input only
D. From input toward output

17 What is the output of the ReLU function when its input is negative?

Activation functions Easy
A. Zero
B. Positive infinity
C. One
D. The input itself

18 Why are activation functions used in neural networks?

Activation functions Easy
A. To count the input channels
B. To rename the output classes
C. To introduce nonlinear behavior
D. To resize the training images

19 What does a loss function measure during training?

Loss functions Easy
A. The difference between predictions and targets
B. The physical size of the computer
C. The number of images in a folder
D. The brightness of the display

20 What is the purpose of gradient descent in neural network training?

Optimization methods Easy
A. To add labels to the dataset
B. To convert RGB into grayscale
C. To increase image resolution
D. To update parameters and reduce loss

21 A warehouse robot must identify damaged packages and determine their locations on a conveyor belt. Which computer vision task is most directly suited to this requirement?

Role of computer vision in modern AI applications Medium
A. Image classification
B. Color normalization
C. Object detection
D. Image compression

22 A traditional image classifier uses manually designed edge and texture descriptors, while a convolutional neural network is trained on raw images. What is the main advantage of the deep-learning approach?

Traditional versus deep-learning-based vision approaches Medium
A. It requires no labeled training examples
B. It learns task-specific features from data
C. It guarantees correct predictions on new data
D. It eliminates the need for optimization

23 An RGB image has dimensions and uses 8 bits for each channel value. How much uncompressed storage does it require?

Image fundamentals Medium
A. 16,384 bytes
B. 32,768 bytes
C. 65,536 bytes
D. 49,152 bytes

24 A grayscale image uses pixel values from 0 to 255. If a pixel changes from 40 to 200, what is the most direct interpretation?

Pixels Medium
A. The pixel becomes more saturated
B. The pixel moves to a new position
C. The image gains another channel
D. The pixel becomes brighter

25 A model expects input tensors in the shape . How should an RGB image stored as be rearranged?

Channels Medium
A.
B.
C.
D.

26 A vision system must detect brightly colored road signs under varying illumination. Which color space is useful for separating color type from brightness?

Color spaces Medium
A. Grayscale
B. CMYK
C. RGB
D. HSV

27 A image is resized directly to without preserving its aspect ratio. What is the most likely effect?

Resizing Medium
A. Pixel values may become binary
B. The image may gain extra channels
C. Objects may appear geometrically distorted
D. Colors may be converted to grayscale

28 During training, random crops are taken from large images before classification. What is a likely benefit of this procedure?

Cropping Medium
A. It preserves every border pixel
B. It improves robustness to object position
C. It guarantees balanced class counts
D. It converts labels into probabilities

29 Pixel intensities are stored as integers from 0 to 255. Which transformation maps them linearly to the interval ?

Normalization Medium
A.
B.
C.
D.

30 A dense layer receives 64 input features and produces 10 outputs, with one bias per output. How many trainable parameters does it contain?

Neural network basics Medium
A. 640
B. 740
C. 704
D. 650

31 A perceptron computes and outputs 1 when , otherwise 0. What is its output for and ?

Perceptron Medium
A. 1, because
B. 1, because
C. 0, because
D. 0, because

32 Why can a feedforward network with nonlinear hidden layers represent decision boundaries that a single perceptron cannot?

Feedforward networks Medium
A. Each layer always reduces the loss exactly
B. Hidden layers combine multiple nonlinear transformations
C. Each neuron stores a complete training image
D. Hidden layers remove all trainable parameters

33 For the ReLU activation , what gradient is normally used during backpropagation when ?

Activation functions Medium
A.
B.
C.
D.

34 The output layer of a network must produce probabilities for five mutually exclusive classes. Which activation is most appropriate?

Activation functions Medium
A. ReLU
B. Softmax
C. Sigmoid
D. Leaky ReLU

35 A three-class classifier predicts probabilities , and the true class is the second class. What is the categorical cross-entropy loss for this sample?

Loss functions Medium
A.
B.
C.
D.

36 A model predicts continuous bounding-box coordinates. Which loss is commonly suitable for measuring basic coordinate regression error?

Loss functions Medium
A. Mean squared error
B. Categorical cross-entropy
C. Negative log-likelihood
D. Binary cross-entropy

37 A parameter has value , its gradient is , and gradient descent uses a learning rate of . What is the updated parameter value?

Optimization methods Medium
A.
B.
C.
D.

38 Training loss oscillates strongly and sometimes increases after parameter updates. Which adjustment is the most reasonable first response?

Optimization methods Medium
A. Freeze every model parameter
B. Remove the loss function
C. Increase the learning rate
D. Decrease the learning rate

39 A small medical-image dataset contains only a few hundred labeled samples. Which strategy best uses a deep-learning model while reducing data requirements?

Traditional versus deep-learning-based vision approaches Medium
A. Replace all images with edge histograms
B. Train a large model from random weights
C. Fine-tune a pretrained vision model
D. Use test images as training labels

40 A pretrained model was trained using per-channel mean and standard deviation normalization. What is the likely consequence of supplying only raw 0-to-255 pixel values during inference?

Normalization Medium
A. The model will automatically add new channels
B. The image resolution will increase automatically
C. The input distribution will differ from training
D. The output classes will become perfectly balanced

41 A calibrated disease-screening model is deployed in a population where disease prevalence is much lower than in the validation population. Assume the class-conditional score distributions remain unchanged. Which consequence is most likely if the original decision threshold is retained?

Role of computer vision in modern AI applications Hard
A. Specificity decreases, while sensitivity and positive predictive value remain similar
B. Sensitivity and specificity remain similar, but positive predictive value decreases
C. Sensitivity and specificity increase, but positive predictive value decreases
D. Sensitivity decreases, while specificity and positive predictive value remain similar

42 A manufacturer must classify parts from only 80 labeled images. Parts may rotate arbitrarily, and engineers know that edge-orientation distributions are highly diagnostic. Which approach has the strongest inductive bias for this setting?

Traditional versus deep-learning-based vision approaches Hard
A. A fully connected network trained on flattened images with dropout
B. A large unconstrained CNN trained from random initialization without augmentation
C. A rotation-invariant handcrafted descriptor followed by a regularized linear classifier
D. A pixel-level nearest-neighbor classifier using raw Euclidean distance

43 An image stored as an interleaved HWC array is passed to a framework expecting CHW format. The programmer uses reshape(C, H, W) instead of transposing axes. What is the principal result?

Image fundamentals Hard
A. Channels are reordered correctly, but each spatial axis is reversed
B. The image is transposed correctly, but its memory becomes noncontiguous
C. Pixel values are normalized correctly, but channel means are exchanged
D. Values are reinterpreted in the wrong channel-spatial order without moving data correctly

44 An RGBA image contains fully transparent pixels whose stored RGB values are bright red. It is resized using bilinear interpolation and later composited over black. Which procedure best prevents red fringes near opaque object boundaries?

Pixels Hard
A. Interpolate straight RGB and alpha independently, then clamp RGB to the alpha value
B. Discard RGB in opaque pixels, interpolate alpha alone, then reconstruct boundary colors
C. Premultiply RGB by alpha, interpolate all components, then unpremultiply where alpha is nonzero
D. Convert alpha to a binary mask, resize RGB normally, then blur the resized mask

45 Ignoring biases, compare a standard convolution with 32 input channels and 64 output channels against a depthwise-separable version with a depthwise stage and a pointwise stage. How many weights does the separable version use?

Channels Hard
A. weights instead of
B. weights instead of
C. weights instead of
D. weights instead of

46 A black pixel and a white pixel, represented by sRGB values 0 and 1, are averaged. Approximately what sRGB value represents their physically correct equal-energy mixture, assuming the usual sRGB transfer function?

Color spaces Hard
A. , because encoded sRGB values are proportional to light intensity
B. , because the sRGB transfer function squares the arithmetic mean
C. , because equal-energy mixing preserves the brighter endpoint
D. , because averaging should occur after conversion to linear light

47 A one-pixel black-and-white checkerboard is downsampled by a factor of 8. Which operation most directly prevents aliasing while preserving the correct average intensity?

Resizing Hard
A. Subsample first and then apply a Gaussian smoothing filter
B. Apply an appropriate low-pass filter before subsampling
C. Apply nearest-neighbor sampling followed by edge sharpening
D. Increase contrast before selecting every eighth source pixel

48 An image of size is cropped using the rectangle with top-left corner and size . A bounding box in the original image is in format. After clipping to the crop and converting to crop-local coordinates, what is the box?

Cropping Hard
A.
B.
C.
D.

49 A pretrained network expects channel normalization , but deployment supplies . Retraining is unavailable. Which modification can exactly preserve the network's output, assuming normalization is channelwise affine and the first layer is affine?

Normalization Hard
A. Reparameterize the first layer's channelwise weights and bias to absorb the affine mismatch
B. Replace the first activation with softmax to make the network invariant to normalization
C. Scale every hidden-layer bias by while leaving weights unchanged
D. Adjust only the final layer's bias using the difference between the two channel means

50 Every neuron in a hidden layer is initialized with the same weight vector and bias. Under deterministic full-batch gradient descent, what typically happens to those neurons?

Neural network basics Hard
A. They become orthogonal because gradient descent implicitly decorrelates equal features
B. They remain identical only until the first bias update, after which symmetry is broken
C. They specialize automatically because each neuron receives a different loss derivative
D. They remain identical because they receive identical gradients, reducing the effective layer width

51 A single perceptron with a threshold activation must classify the four binary inputs so that and are positive, while and are negative. Which statement is correct?

Perceptron Hard
A. No weights and bias can satisfy the labels because the positive set is not linearly separable
B. No classifier exists only because the perceptron activation is nondifferentiable
C. The classifier exists with equal positive weights and a threshold between 0 and 1
D. The classifier exists with opposite-signed weights and a zero decision threshold

52 Consider with no activation between the two affine layers. If the hidden width is , which statement best characterizes the resulting mapping?

Feedforward networks Hard
A. It is nonlinear, and its Jacobian rank is always exactly
B. It is quadratic, and its Hessian rank is at most
C. It is affine, and its linear component always has full rank
D. It is affine, and its linear component has rank at most

53 For a leaky ReLU with negative slope , what weight variance approximately preserves activation variance in a wide layer whose zero-mean inputs are symmetric, under the usual independence assumptions?

Activation functions Hard
A.
B.
C.
D.

54 For -class cross-entropy with label smoothing target , what probabilities minimize the expected loss for a single deterministic training label, assuming the model can represent any distribution?

Loss functions Hard
A. and
B. and
C. and
D. and

55 Why is adding an penalty to the loss generally not equivalent to decoupled weight decay when using Adam?

Optimization methods Hard
A. Adam adaptively rescales the penalty gradient, while decoupled decay directly scales parameters
B. Adam removes momentum from the penalty, while decoupled decay adds separate momentum
C. Adam applies the penalty only to biases, while decoupled decay applies it only to weights
D. Adam differentiates the penalty twice, while decoupled decay differentiates it once

56 A vision pipeline converts an RGB image to YCbCr 4:2:0 before storage. Which spatial information is reduced by this representation?

Color spaces Hard
A. Luminance resolution is halved in both horizontal and vertical directions
B. Chrominance resolution is halved in both horizontal and vertical directions
C. All three channels are halved only in the horizontal direction
D. Chrominance resolution is halved only in the vertical direction

57 An image of size is letterboxed into a input while preserving aspect ratio and centering the result. Under the scale-and-pad convention, how should a point be transformed?

Resizing Hard
A.
B.
C.
D.

58 A CNN with batch normalization is trained correctly, but during inference each batch contains only one highly atypical image and the layer is accidentally left in training mode. What failure is most directly expected?

Normalization Hard
A. Predictions depend on unstable per-batch statistics instead of stored population estimates
B. Gradients vanish because batch normalization cannot process a batch of size one
C. Weights are permanently overwritten by the atypical image during the forward pass
D. Predictions use stored means but recompute only the learned scale parameter

59 For binary classification with logit , which expression computes binary cross-entropy stably without explicitly evaluating or ?

Loss functions Hard
A.
B.
C.
D.

60 Four microbatches are used to emulate one large batch. Their gradients are summed, and the optimizer performs one SGD update with momentum. Under what adjustment does this match using the mean gradient of the combined large batch, assuming no batch-dependent layers?

Optimization methods Hard
A. Multiply the momentum coefficient by four before the optimizer step
B. Divide both the learning rate and momentum coefficient by four
C. Perform four momentum updates while delaying only the parameter assignment
D. Divide the accumulated gradient by four before the single optimizer step