nvidia-smi reports the status of NVIDIA GPUs, including utilization and memory use.
Incorrect! Try again.
20Which command can be used to display the installed NVIDIA CUDA compiler version?
NVIDIA Command Line Tools and Utilities
Easy
A.git --version
B.nvcc --version
C.nvidia-smi -L
D.python --version
Correct Answer: nvcc --version
Explanation:
nvcc --version displays version information for the installed NVIDIA CUDA compiler.
Incorrect! Try again.
21An input tensor has shape . A convolutional layer applies 12 filters of size with stride 1 and same padding. What is the output shape?
Building blocks of convolutional neural networks
Medium
A.
B.
C.
D.
Correct Answer:
Explanation:
same padding preserves the spatial dimensions at stride 1, while the 12 filters produce 12 output channels.
Incorrect! Try again.
22Why is a ReLU activation commonly placed after a convolutional layer?
Building blocks of convolutional neural networks
Medium
A.It normalizes every channel to unit variance
B.It replaces convolution by calculating a weighted average over every pixel in the complete input image
C.It determines the number of convolutional filters
D.It introduces nonlinearity into the learned features
Correct Answer: It introduces nonlinearity into the learned features
Explanation:
Without nonlinear activations, stacked convolutional layers would behave like a single linear transformation and could not model complex patterns.
Incorrect! Try again.
23A image is convolved with a filter using stride 1 and no padding. What is the spatial size of the output?
Determining the size of the convolution output
Medium
A.
B.
C.
D.
Correct Answer:
Explanation:
For each dimension, the output size is .
Incorrect! Try again.
24A one-dimensional input of size 31 is processed using a filter of size 3, padding 1, and stride 2. What is the output size?
Determining the size of the convolution output
Medium
A.17
B.15
C.16
D.31
Correct Answer: 16
Explanation:
The output size is .
Incorrect! Try again.
25Using the cross-correlation convention commonly used by CNN libraries, what is the result of applying the kernel to the image patch ?
Performing a discrete convolution in 2D
Medium
A.
B.
C.
D.
Correct Answer:
Explanation:
The element-wise products sum to .
Incorrect! Try again.
26A CNN applies the kernel to the image patch . What output value is produced?
Performing a discrete convolution in 2D
Medium
A.
B.
C.
D.
Correct Answer:
Explanation:
The left column contributes , and the right column contributes , giving .
Incorrect! Try again.
27A max-pooling operation with stride 2 is applied to the input . What is the output?
Subsampling
Medium
A.
B.
C.
D.
Correct Answer:
Explanation:
The maximum values in the four non-overlapping regions are 5, 8, 7, and 9.
Incorrect! Try again.
28A feature map is processed by a pooling layer with stride 2 and no padding. What is the output size?
Subsampling
Medium
A.
B., because pooling preserves all spatial positions while only reducing channel depth
C.
D.
Correct Answer:
Explanation:
The output dimension is , producing a feature map.
Incorrect! Try again.
29A CNN produces a feature map before classification. Which change most directly reduces the number of parameters in the classifier while retaining one value per feature channel?
Putting everything together to build a CNN
Medium
A.Replace ReLU with a sigmoid activation
B.Increase the feature map to
C.Add another fully connected hidden layer
D.Replace flattening with global average pooling
Correct Answer: Replace flattening with global average pooling
Explanation:
Global average pooling converts the feature map into 512 values, avoiding the large vector of values created by flattening.
Incorrect! Try again.
30Which layer sequence is most appropriate for a basic CNN image classifier?
Convolution extracts features, ReLU adds nonlinearity, pooling reduces spatial size, and dense plus softmax layers perform classification.
Incorrect! Try again.
31In TensorFlow, a Conv2D layer has 32 filters of size , uses a bias, and receives an RGB input. How many trainable parameters does it have?
Implementing a deep convolutional neural network using TensorFlow
Medium
A.928
B.1024
C.896
D.864
Correct Answer: 896
Explanation:
Each filter has weights and one bias. Thus, the layer has parameters.
Incorrect! Try again.
32A TensorFlow classifier outputs probabilities for 10 classes, and the target labels are integers from 0 to 9. Which loss is most appropriate?
Implementing a deep convolutional neural network using TensorFlow
Medium
A.BinaryCrossentropy
B.MeanSquaredError
C.SparseCategoricalCrossentropy
D.CategoricalCrossentropy after converting every input image into a one-hot encoded feature vector before convolution
Correct Answer: SparseCategoricalCrossentropy
Explanation:
SparseCategoricalCrossentropy is designed for multiclass classification when targets are stored as integer class indices.
Incorrect! Try again.
33You have a small dataset of labeled flower images and a CNN pre-trained on ImageNet. What is a suitable first transfer-learning strategy?
Transfer learning with pre-trained CNN
Medium
A.Freeze the convolutional base and train a new classifier
B.Freeze the new classifier and update only its biases
C.Randomize all pre-trained weights and train every layer
D.Remove the convolutional base and use raw pixels directly
Correct Answer: Freeze the convolutional base and train a new classifier
Explanation:
The frozen base provides reusable visual features, while the new classifier learns to map those features to the flower classes.
Incorrect! Try again.
34After training a new classification head on top of a frozen pre-trained model, what is an appropriate fine-tuning procedure?
Transfer learning with pre-trained CNN
Medium
A.Keep every layer frozen and increase the number of epochs
B.Delete the trained classification head and restart randomly
C.Unfreeze all layers and use a very high learning rate
D.Unfreeze selected upper layers and use a low learning rate
Correct Answer: Unfreeze selected upper layers and use a low learning rate
Explanation:
A low learning rate allows upper pre-trained layers to adapt without rapidly destroying useful learned representations.
Incorrect! Try again.
35A dataset contains images of handwritten digits 6 and 9. Which augmentation is most likely to create incorrectly labeled training examples?
Data augmentation
Medium
A.Slight random zoom
B. image rotation
C.Mild brightness adjustment
D.Small horizontal translation
Correct Answer: image rotation
Explanation:
A rotation can transform the appearance of a 6 into a 9 or vice versa, potentially violating the original label.
Incorrect! Try again.
36How should random data augmentation normally be used when estimating a model's validation accuracy?
Data augmentation
Medium
A.Apply it only to validation examples
B.Apply identical random changes to every split
C.Generate validation examples from heavily transformed training images so that both sets contain nearly identical samples
D.Apply it only to training examples
Correct Answer: Apply it only to training examples
Explanation:
Training augmentation improves generalization, while validation data should remain representative and consistent for reliable evaluation.
Incorrect! Try again.
37A binary segmentation model receives images and predicts one foreground probability per pixel. What should its output shape be for each image?
Image segmentation
Medium
A.
B.
C.
D.
Correct Answer:
Explanation:
Binary segmentation requires one probability for each spatial location, giving one output channel over the grid.
Incorrect! Try again.
38What is the main purpose of skip connections between the encoder and decoder in a U-Net?
Image segmentation
Medium
A.Force all intermediate feature maps to contain only one channel
B.Convert segmentation into image-level classification
C.Recover fine spatial details lost during downsampling
D.Eliminate the need for nonlinear activation functions
Correct Answer: Recover fine spatial details lost during downsampling
Explanation:
Skip connections pass high-resolution encoder features to the decoder, helping it reconstruct precise object boundaries.
Incorrect! Try again.
39Which NVIDIA command is commonly used to inspect GPU utilization, memory usage, temperature, and active GPU processes?
NVIDIA Command Line Tools and Utilities
Medium
A.nvcc --version
B.cuda-gdb
C.nvidia-smi
D.nvidia-smi followed by recompiling every CUDA source file to determine which kernel generated each memory allocation
Correct Answer: nvidia-smi
Explanation:
nvidia-smi reports the status of NVIDIA GPUs, including utilization, memory consumption, temperature, and running processes.
Incorrect! Try again.
40A developer wants to check the installed NVIDIA CUDA compiler version. Which command should be used?
NVIDIA Command Line Tools and Utilities
Medium
A.nvidia-smi -q
B.nvcc --version
C.nvidia-debugdump --list
D.cuda-gdb --pid
Correct Answer: nvcc --version
Explanation:
nvcc is the CUDA compiler driver, and the --version option displays the installed CUDA compiler toolkit version.
Incorrect! Try again.
41A convolution receives an input of spatial size . It uses a kernel, dilation , stride , and padding . What is the output spatial size?
Determining the size of the convolution output
Hard
A.
B.
C.
D.
Correct Answer:
Explanation:
The effective kernel is . Thus, and .
Incorrect! Try again.
42TensorFlow applies a 1D convolution to an input of length using kernel size , stride , dilation , and padding='same'. What output length and total padding are used?
Determining the size of the convolution output
Hard
A.Output length with total padding
B.Output length with total padding
C.Output length with total padding
D.Output length , because same padding always preserves the input length even when the stride exceeds one
Correct Answer: Output length with total padding
Explanation:
For same padding, the output length is . Required padding is .
Incorrect! Try again.
43Given input and kernel , what is the top-left output of a true mathematical 2D convolution with unit stride and no padding?
Performing a discrete convolution in 2D
Hard
A.
B.
C.
D.
Correct Answer:
Explanation:
True convolution flips the kernel to . Its product with the top-left input patch sums to .
Incorrect! Try again.
44A grouped convolution has input channels, output channels, a kernel, groups, and one bias per output channel. How many trainable parameters does it contain?
Building blocks of convolutional neural networks
Hard
A.
B.
C.
D.
Correct Answer:
Explanation:
Each filter sees channels. The count is .
Incorrect! Try again.
45Starting from a single input pixel receptive field, a network applies: a convolution with stride , a pooling layer with stride , and a convolution with dilation and stride . What is the final receptive-field size along one spatial dimension?
Building blocks of convolutional neural networks
Hard
A.
B.
C.
D.
Correct Answer:
Explanation:
The receptive field and jump evolve as . The dilated kernel has effective size , giving .
Incorrect! Try again.
46Why can a one-pixel translation of an input fail to produce a corresponding translation after non-overlapping max pooling with stride ?
Subsampling
Hard
A.Pooling windows are tied to a fixed sampling grid
B.Max pooling converts spatial translations into channel permutations
C.The maximum operator is linear only for nonnegative feature maps
D.Every translated maximum remains in its original pooled cell because max pooling is exactly translation invariant at all integer shifts
Correct Answer: Pooling windows are tied to a fixed sampling grid
Explanation:
A one-pixel shift can move an activation across or within fixed pooling boundaries, so the pooled representation is not equivariant to arbitrary one-pixel translations.
Incorrect! Try again.
47A feature map contains substantial energy above the Nyquist frequency of a planned stride- downsampling operation. Which modification most directly reduces aliasing?
Subsampling
Hard
A.Apply a low-pass filter before downsampling
B.Increase channel count after downsampling
C.Apply batch normalization after downsampling
D.Apply a high-pass filter before downsampling
Correct Answer: Apply a low-pass filter before downsampling
Explanation:
Stride- sampling halves the representable frequency range. Low-pass filtering suppresses frequencies that would otherwise fold into lower frequencies.
Incorrect! Try again.
48A final convolutional feature tensor has shape , and the classifier has outputs. By how many parameters does global average pooling followed by a dense layer reduce the parameter count compared with flattening followed by the same dense layer, including biases?
Putting everything together to build a CNN
Hard
A.
B.
C.
D.
Correct Answer:
Explanation:
Flattening uses parameters; global average pooling uses . Their difference is .
Incorrect! Try again.
49A TensorFlow classification model ends with Dense(C) and no activation, while labels are integer class indices. Which loss configuration is mathematically consistent?
Implementing a deep convolutional neural network using TensorFlow
Hard
The model emits unnormalized logits and the labels are sparse integers, so sparse categorical cross-entropy must be told to process logits.
Incorrect! Try again.
50In a custom TensorFlow training loop, the model contains dropout, batch normalization, and kernel regularizers. Which computation correctly forms the training loss inside GradientTape?
Implementing a deep convolutional neural network using TensorFlow
Hard
A.logits = model(x, training=True); loss = data_loss(y, logits) - tf.add_n(model.losses)
B.logits = model(x, training=False); loss = data_loss(y, logits)
C.logits = model(x, training=False); loss = data_loss(y, logits) + tf.add_n(model.losses)
D.logits = model(x, training=True); loss = data_loss(y, logits) + tf.add_n(model.losses)
training=True activates training behavior for dropout and batch normalization. Regularization terms stored in model.losses must be added to the data loss.
Incorrect! Try again.
51A residual block receives a tensor. Its main branch produces a tensor using a stride- convolution. What shortcut operation permits elementwise addition while introducing the fewest convolution parameters?
Putting everything together to build a CNN
Hard
A.A max pool followed by zero-padding to channels
B.A convolution with stride and filters
C.A convolution with stride and filters
D.A convolution with stride and filters
Correct Answer: A convolution with stride and filters
Explanation:
The shortcut must match both spatial size and channel count. A stride-, projection performs both changes with minimal convolution parameters.
Incorrect! Try again.
52During fine-tuning of a small dataset, a pre-trained backbone is unfrozen, but its batch-normalization statistics should remain fixed. Which approach is most appropriate?
Transfer learning with pre-trained CNN
Hard
A.Keep the backbone frozen permanently, because batch-normalization statistics cannot remain fixed once any convolutional layer becomes trainable
B.Delete batch-normalization layers and replace each one with dropout
C.Unfreeze every layer and invoke the backbone with training=True
D.Unfreeze selected layers but invoke the backbone with training=False
Correct Answer: Unfreeze selected layers but invoke the backbone with training=False
Explanation:
Selected weights can remain trainable while training=False keeps batch-normalization layers in inference mode, preventing moving-statistic updates.
Incorrect! Try again.
53After changing several backbone layers from trainable=False to trainable=True in a compiled Keras model, what should be done before continuing training?
Transfer learning with pre-trained CNN
Hard
A.Run one inference epoch before resuming optimization
B.Replace the optimizer with a non-gradient-based optimizer
C.Reset all newly trainable layers to random initialization
D.Recompile the model with a suitably small learning rate
Correct Answer: Recompile the model with a suitably small learning rate
Explanation:
Keras captures the set of trainable variables during compilation. Recompiling registers the changed variables, while a small learning rate limits damage to learned features.
Incorrect! Try again.
54For semantic-segmentation training, an image and its integer-valued class mask undergo random rotation and resizing. Which interpolation policy is correct?
Data augmentation
Hard
A.Use bilinear interpolation for the image and nearest-neighbor interpolation for the mask
B.Use bilinear interpolation for both and round the mask values afterward
C.Use bicubic interpolation for both the image and the integer mask
D.Use nearest-neighbor interpolation for the image and bilinear interpolation for the mask
Correct Answer: Use bilinear interpolation for the image and nearest-neighbor interpolation for the mask
Explanation:
Images benefit from smooth interpolation, whereas nearest-neighbor interpolation preserves discrete class IDs without creating invalid intermediate labels.
Incorrect! Try again.
55MixUp forms for examples from different classes. If the original labels are sparse integers, what target and loss should be used?
Data augmentation
Hard
A.Rounded integer targets with sparse cross-entropy
B.Two independent integer targets with binary cross-entropy
C.The first integer target with categorical cross-entropy
D.Mixed one-hot targets with categorical cross-entropy
Correct Answer: Mixed one-hot targets with categorical cross-entropy
Explanation:
The target becomes , a probability vector rather than one integer class, so categorical cross-entropy is appropriate.
Incorrect! Try again.
56A segmentation dataset uses label for pixels that must not contribute to training. What is the correct way to compute sparse cross-entropy?
Image segmentation
Hard
A.Map label to class before computing loss
B.Compute all pixel losses and set the final scalar loss to zero when any ignored pixel occurs
C.Clip label to the highest valid class index
D.Mask ignored pixels and average loss over valid pixels
Correct Answer: Mask ignored pixels and average loss over valid pixels
Explanation:
Ignored locations should contribute neither loss nor normalization weight. Mapping them to a real class would introduce incorrect supervision.
Incorrect! Try again.
57A segmentation backbone has output stride . Its final stage begins with a stride- convolution. Which modification most plausibly changes the output stride to while approximately preserving the final receptive field?
Image segmentation
Hard
A.Change that stride to and reduce subsequent kernels to
B.Change that stride to and use dilation in subsequent kernels
C.Change that stride to and bilinearly upsample the final features
D.Keep the stride at and use dilation in all earlier kernels
Correct Answer: Change that stride to and use dilation in subsequent kernels
Explanation:
Removing the final downsampling doubles feature resolution. Dilated convolutions compensate for the lost sampling spacing and approximately preserve receptive-field coverage.
Incorrect! Try again.
58A model assigns exactly one of classes to every pixel, including background. Which output and decoding scheme best matches this mutually exclusive formulation?
Image segmentation
Hard
A. sigmoid probabilities followed by independent thresholds
B. logits followed by independent binary decisions
C.One scalar per pixel followed by rounding modulo
D. logits per pixel followed by argmax
Correct Answer: logits per pixel followed by argmax
Explanation:
Mutually exclusive classes are modeled by a categorical distribution over logits. argmax selects exactly one class at each pixel.
Incorrect! Try again.
59The environment variable is set as CUDA_VISIBLE_DEVICES=2,5 before launching TensorFlow. Assuming both GPUs are available, how are they identified inside the process?
CUDA_VISIBLE_DEVICES both filters and reorders visible GPUs. The process receives a new zero-based logical numbering in the listed order.
Incorrect! Try again.
60A custom TensorFlow CUDA operation intermittently performs an out-of-bounds device-memory access. Which command is most directly suited to locating the invalid access?
Compute Sanitizer's memcheck tool detects invalid CUDA memory accesses and reports the associated kernel and location when debugging information is available.
Incorrect! Try again.
Did this save you a night before the exam?
LPU Notes is free, and it stays free. Ads cover part of the server bill.
The rest comes out of a student's own pocket: the domain, the storage,
and keeping the site up through the weeks everyone needs it at once.
The payment button didn't load. An ad blocker or a filtered network is the usual reason.
to try again.
Nothing here is ever locked, and nothing unlocks. Chip in only if it was worth it.
What it pays for →