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. Predicting stock interest rates
C. Translating speech into text
D. Sorting records alphabetically

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 manage network traffic
C. To compress audio recordings
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 manually designed
B. They are entered by users
C. They are randomly discarded
D. They are copied from labels

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

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

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

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

6 What is a pixel?

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

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

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

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

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

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

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

10 What does resizing an image change?

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

11 What happens when an image is cropped?

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

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

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

13 What do neural network weights represent?

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

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

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

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

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

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

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

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

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

18 Why are activation functions used in neural networks?

Activation functions Easy
A. To introduce nonlinear behavior
B. To rename the output classes
C. To count the input channels
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 brightness of the display
C. The number of images in a folder
D. The physical size of the computer

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

Optimization methods Easy
A. To increase image resolution
B. To convert RGB into grayscale
C. To add labels to the dataset
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 compression
B. Image classification
C. Object detection
D. Color normalization

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 eliminates the need for optimization
B. It requires no labeled training examples
C. It guarantees correct predictions on new data
D. It learns task-specific features from data

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. 65,536 bytes
B. 32,768 bytes
C. 16,384 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 brighter
B. The pixel becomes more saturated
C. The image gains another channel
D. The pixel moves to a new position

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. RGB
B. HSV
C. Grayscale
D. CMYK

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

Resizing Medium
A. The image may gain extra channels
B. Pixel values may become binary
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 guarantees balanced class counts
B. It converts labels into probabilities
C. It preserves every border pixel
D. It improves robustness to object position

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. 650
D. 704

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

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

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

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

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. Sigmoid
B. Leaky ReLU
C. Softmax
D. 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. Negative log-likelihood
B. Categorical cross-entropy
C. Binary cross-entropy
D. Mean squared error

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. Decrease the learning rate
B. Remove the loss function
C. Increase the learning rate
D. Freeze every model parameter

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. Use test images as training labels
B. Fine-tune a pretrained vision model
C. Train a large model from random weights
D. Replace all images with edge histograms

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 input distribution will differ from training
B. The output classes will become perfectly balanced
C. The model will automatically add new channels
D. The image resolution will increase automatically

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. Sensitivity and specificity remain similar, but positive predictive value decreases
B. Specificity decreases, while sensitivity and positive predictive value remain similar
C. Sensitivity decreases, while specificity and positive predictive value remain similar
D. Sensitivity and specificity increase, but positive predictive value decreases

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 pixel-level nearest-neighbor classifier using raw Euclidean distance
B. A rotation-invariant handcrafted descriptor followed by a regularized linear classifier
C. A fully connected network trained on flattened images with dropout
D. A large unconstrained CNN trained from random initialization without augmentation

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. Pixel values are normalized correctly, but channel means are exchanged
B. Values are reinterpreted in the wrong channel-spatial order without moving data correctly
C. Channels are reordered correctly, but each spatial axis is reversed
D. The image is transposed correctly, but its memory becomes noncontiguous

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. Discard RGB in opaque pixels, interpolate alpha alone, then reconstruct boundary colors
B. Interpolate straight RGB and alpha independently, then clamp RGB to the alpha value
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. Apply an appropriate low-pass filter before subsampling
B. Increase contrast before selecting every eighth source pixel
C. Apply nearest-neighbor sampling followed by edge sharpening
D. Subsample first and then apply a Gaussian smoothing filter

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

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 remain identical because they receive identical gradients, reducing the effective layer width
B. They specialize automatically because each neuron receives a different loss derivative
C. They become orthogonal because gradient descent implicitly decorrelates equal features
D. They remain identical only until the first bias update, after which symmetry is broken

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. The classifier exists with equal positive weights and a threshold between 0 and 1
C. The classifier exists with opposite-signed weights and a zero decision threshold
D. No classifier exists only because the perceptron activation is nondifferentiable

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 affine, and its linear component has rank at most
C. It is quadratic, and its Hessian rank is at most
D. It is affine, and its linear component always has full rank

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 differentiates the penalty twice, while decoupled decay differentiates it once
B. Adam removes momentum from the penalty, while decoupled decay adds separate momentum
C. Adam adaptively rescales the penalty gradient, while decoupled decay directly scales parameters
D. Adam applies the penalty only to biases, while decoupled decay applies it only to weights

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. Chrominance resolution is halved only in the vertical direction
B. Chrominance resolution is halved in both horizontal and vertical directions
C. All three channels are halved only in the horizontal direction
D. Luminance resolution is halved in both horizontal and vertical directions

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

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. Divide both the learning rate and momentum coefficient by four
B. Multiply the momentum coefficient by four before the optimizer step
C. Perform four momentum updates while delaying only the parameter assignment
D. Divide the accumulated gradient by four before the single optimizer step