Notice: Due to an ongoing migration of our storage and publishing system, material requested since last month will not be uploaded for the time being, and new requests are paused. All existing notes remain available.
Keras is a high-level library used to build and train neural network models.
Question 2 of 60 · Keras installation · Easy
Which command is commonly used to install Keras with pip?
Not quite. Try another option.
Answer: pip install keras
Keras can be installed using the standard Python package manager with pip install keras.
Question 3 of 60 · Keras layers and models · Easy
Which Keras class is often used to build a model layer by layer?
Not quite. Try another option.
Answer: Sequential
The Sequential model is used for stacking layers in a simple linear order.
Question 4 of 60 · Keras layers and models · Easy
What does a dense layer do in a neural network?
Not quite. Try another option.
Answer: Connects every input to every neuron
A dense layer is a fully connected layer where each neuron receives input from all neurons in the previous layer.
Question 5 of 60 · Building a regression model · Easy
What type of output is usually produced by a regression model?
Not quite. Try another option.
Answer: A numeric value
Regression models predict continuous numeric values such as prices or temperatures.
Question 6 of 60 · Building a regression model · Easy
Which loss function is commonly used for regression in Keras?
Not quite. Try another option.
Answer: Mean squared error
Mean squared error is a standard loss for measuring prediction error in regression tasks.
Question 7 of 60 · Multi-layer Perceptron learning for classification · Easy
What does MLP stand for?
Not quite. Try another option.
Answer: Multi-layer Perceptron
MLP is short for Multi-layer Perceptron, a basic feedforward neural network.
Question 8 of 60 · Multi-layer Perceptron learning for classification · Easy
For a binary classification task, what activation is often used in the output layer?
Not quite. Try another option.
Answer: Sigmoid
Sigmoid is commonly used for binary classification because it outputs a value between 0 and 1.
Question 9 of 60 · Image classification with Keras · Easy
What kind of data is image classification designed to predict?
Not quite. Try another option.
Answer: An image category
Image classification assigns an image to one of several predefined classes.
Question 10 of 60 · Image classification with Keras · Easy
Which layer is commonly used to work with image data in Keras models?
Not quite. Try another option.
Answer: Convolutional layer
Convolutional layers are widely used for image features such as edges and patterns.
Question 11 of 60 · Building a text classification model · Easy
What is a common first step in text classification?
Not quite. Try another option.
Answer: Convert text into numbers
Text must usually be represented numerically before it can be used by a neural network.
Question 12 of 60 · Building a text classification model · Easy
Which Keras layer is often used to turn word indices into dense vectors?
Not quite. Try another option.
Answer: Embedding
An embedding layer maps word IDs to learned vector representations.
Question 13 of 60 · Overfitting and underfitting · Easy
What does overfitting mean?
Not quite. Try another option.
Answer: The model learns the training data too well
Overfitting happens when a model fits training data closely but performs poorly on new data.
Question 14 of 60 · Overfitting and underfitting · Easy
What is a common method to reduce overfitting?
Not quite. Try another option.
Answer: Dropout
Dropout helps prevent overfitting by randomly disabling some neurons during training.
Question 15 of 60 · Saving and loading a model · Easy
Why do we save a trained Keras model?
Not quite. Try another option.
Answer: To reuse it later
Saving a model lets you load it later without retraining from scratch.
Question 16 of 60 · Saving and loading a model · Easy
Which function is used to load a saved Keras model?
Not quite. Try another option.
Answer: load_model()
Keras provides load_model() to restore a saved model and its weights.
Question 17 of 60 · Hyperparameter tuning · Easy
What is a hyperparameter?
Not quite. Try another option.
Answer: A setting chosen before training
Hyperparameters are values like learning rate or batch size that are set before training.
Question 18 of 60 · Hyperparameter tuning · Easy
Which of the following is a hyperparameter?
Not quite. Try another option.
Answer: Learning rate
Learning rate is a common hyperparameter that controls how fast a model learns.
Question 19 of 60 · Introduction to NVIDIA DGX Station A100 · Easy
What is NVIDIA DGX Station A100 primarily designed for?
Not quite. Try another option.
Answer: AI and deep learning workloads
DGX Station A100 is built as a powerful system for AI training and inference tasks.
Question 20 of 60 · Hardware Architecture · Easy
Which component is a key part of the DGX Station A100 hardware architecture?
Not quite. Try another option.
Answer: A100 GPUs
The DGX Station A100 is built around NVIDIA A100 GPUs for high-performance AI computation.
Question 21 of 60 · Introduction to Keras · Medium
A developer wants to train, validate, and generate predictions from a neural network without manually writing the complete training loop. Which Keras feature most directly supports this requirement?
Not quite. Try another option.
Answer: The fit(), evaluate(), and predict() methods
Keras provides high-level methods such as fit(), evaluate(), and predict() for training, testing, and inference.
Question 22 of 60 · Keras installation · Medium
A student wants to use TensorFlow-backed Keras in a new Python virtual environment. Which installation and import combination is most appropriate?
Not quite. Try another option.
Answer: pip install tensorflow, followed by from tensorflow import keras
Installing TensorFlow provides its integrated Keras API, which can be imported using from tensorflow import keras.
Question 23 of 60 · Keras layers and models · Medium
A neural network must accept an image and a metadata vector as separate inputs before combining them. Which Keras model-building approach is most suitable?
Not quite. Try another option.
Answer: A Functional API model with multiple input tensors
The Functional API supports non-linear architectures, including models with multiple inputs, multiple outputs, and shared layers.
Question 24 of 60 · Keras layers and models · Medium
A Dense layer has 32 input features and 64 output units, with one bias per output unit. How many trainable parameters does it contain?
Not quite. Try another option.
Answer: 2112 parameters
The layer has weights and 64 biases, giving parameters.
Question 25 of 60 · Building a regression model · Medium
A Keras model predicts unrestricted real-valued house prices. Which output layer and loss function are most appropriate?
Not quite. Try another option.
Answer: Dense(1, activation="linear") with mean squared error
A single linear output can represent unrestricted continuous values, while mean squared error is a standard regression loss.
Question 26 of 60 · Building a regression model · Medium
Before training a regression model, a normalization layer must learn the mean and variance of each feature. Which data should be passed to the layer's adapt() method?
Not quite. Try another option.
Answer: Only the training feature data
Normalization statistics should be learned from training features only. Using validation or test data would introduce data leakage.
Question 27 of 60 · Multi-layer Perceptron learning for classification · Medium
An MLP classifies samples into five mutually exclusive classes, and the labels are integers from 0 to 4. Which configuration is appropriate for the output layer and loss?
Not quite. Try another option.
Answer: Five softmax units with sparse categorical cross-entropy
Softmax produces probabilities across five exclusive classes, and sparse categorical cross-entropy accepts integer class labels.
Question 28 of 60 · Image classification with Keras · Medium
A Conv2D layer receives an RGB image represented as a single sample using Keras's default channels-last format. Which input shape should be specified for a image?
Not quite. Try another option.
Answer: (128, 128, 3)
With channels-last format, an image input shape is (height, width, channels), so an RGB image uses (128, 128, 3).
Question 29 of 60 · Image classification with Keras · Medium
A small image dataset causes a CNN to memorize training images. Which Keras strategy can increase input diversity without permanently creating additional image files?
Not quite. Try another option.
Answer: Apply random flips and rotations during training
Data augmentation layers generate varied training examples dynamically, helping the model generalize instead of memorizing the dataset.
Question 30 of 60 · Building a text classification model · Medium
Text sequences in a batch are padded with zeros to obtain equal lengths. Which configuration helps an embedding-based model ignore those padding positions?
Not quite. Try another option.
Answer: Use Embedding(..., mask_zero=True)
Setting mask_zero=True marks zero-valued tokens as padding so compatible downstream sequence layers can ignore them.
Question 31 of 60 · Building a text classification model · Medium
A text classifier assigns each document to exactly one of four categories, and the targets are one-hot encoded. Which final layer and loss should be used?
Not quite. Try another option.
Answer: Four softmax units with categorical cross-entropy
For one-hot labels and four mutually exclusive categories, use four softmax outputs with categorical cross-entropy.
Question 32 of 60 · Overfitting and underfitting · Medium
During training, the training loss keeps decreasing, but the validation loss begins increasing after epoch 12. What does this pattern most strongly indicate?
Not quite. Try another option.
Answer: The model starts overfitting after epoch 12
A widening gap between improving training performance and worsening validation performance is a common sign of overfitting.
Question 33 of 60 · Saving and loading a model · Medium
A developer wants to save a trained Keras model so that its architecture, weights, and optimizer state can later be restored together. Which approach is most appropriate?
Not quite. Try another option.
Answer: Save the model using model.save("model.keras")
The native .keras format can store the model configuration, learned weights, and optimizer state in one file.
Question 34 of 60 · Hyperparameter tuning · Medium
A tuner is comparing learning rates of , , and . Which evaluation procedure best avoids optimistic bias?
Not quite. Try another option.
Answer: Select the rate with the best validation performance
Hyperparameters should be selected using validation data. The test set should remain unused until the final model evaluation.
Question 35 of 60 · NVIDIA DGX Station A100 · Medium
Which workload is the strongest match for an NVIDIA DGX Station A100 rather than a conventional office workstation?
Not quite. Try another option.
Answer: Training a large GPU-accelerated deep learning model
DGX Station A100 is designed for demanding AI development and training workloads that benefit from multiple high-performance GPUs.
Question 36 of 60 · Introduction to NVIDIA DGX Station A100 · Medium
A research team needs data-center-class AI computing in a local office without installing a full server rack. Why is DGX Station A100 suitable?
Not quite. Try another option.
Answer: It combines a workstation form factor with integrated AI hardware
DGX Station A100 brings powerful, integrated AI infrastructure into a workstation-style system suitable for local use.
Question 37 of 60 · Hardware Architecture · Medium
A model is distributed across the multiple A100 GPUs in a DGX Station A100 and frequently transfers tensors between GPUs. Which hardware feature primarily accelerates these transfers?
Not quite. Try another option.
Answer: NVLink high-speed GPU interconnection
NVLink provides high-bandwidth communication between GPUs, which benefits model parallelism and multi-GPU tensor transfers.
Question 38 of 60 · DGX Station A100 Software Stack · Medium
A team wants a tested container containing a deep learning framework and GPU-optimized dependencies for DGX Station A100. Which NVIDIA resource is most appropriate?
Not quite. Try another option.
Answer: NVIDIA NGC container catalog
NGC provides optimized and tested containers for frameworks, libraries, and AI applications that run on NVIDIA GPU systems.
Question 39 of 60 · CUDA Toolkit · Medium
A developer needs to compile a custom CUDA kernel for use in a deep learning operation. Which CUDA Toolkit component performs the CUDA source compilation?
Not quite. Try another option.
Answer: The nvcc compiler
nvcc is the CUDA compiler driver used to compile CUDA source code containing GPU kernels.
Question 40 of 60 · Future of AI with DGX Station A100 · Medium
A company prototypes models locally on DGX Station A100 and later moves them to larger NVIDIA-based infrastructure. Which practice best supports this scaling path?
Not quite. Try another option.
Answer: Package models and dependencies in portable GPU containers
Containerized environments improve reproducibility and make it easier to move AI workloads from a DGX Station to larger compatible infrastructure.
Question 41 of 60 · Introduction to Keras · Hard
A Keras Functional model applies the same encoder instance to two different inputs and then combines the resulting embeddings. Which statement correctly describes training behavior?
Not quite. Try another option.
Answer: The encoder has one shared set of weights, and gradient contributions from both branches update those weights.
Reusing the same layer or model instance creates weight sharing. Gradients from every computational path involving those weights contribute to the update.
Question 42 of 60 · Keras installation · Hard
A developer installs Keras 3 in a fresh environment and wants to run it with the JAX backend rather than TensorFlow. Which setup is correct?
Not quite. Try another option.
Answer: Install JAX and set KERAS_BACKEND=jax before importing Keras.
Keras 3 requires a separately installed backend. The backend must normally be selected before Keras is imported into the process.
Question 43 of 60 · Keras layers and models · Hard
A two-output Keras model is compiled with losses and , loss weights and , and several layer regularizers producing penalties . Ignoring metric values, what objective is minimized?
Not quite. Try another option.
Answer:
Keras weights the configured output losses and then adds regularization losses collected from the model's layers.
Question 44 of 60 · Keras layers and models · Hard
A subclassed Keras layer creates a new trainable matrix inside call() every time it receives an input. This causes state-creation and tracing errors. What is the most appropriate redesign?
Not quite. Try another option.
Answer: Create the matrix with add_weight() in build() using the input shape.
Input-dependent state should be created once in build(). add_weight() registers it for optimization, saving, and device placement.
Question 45 of 60 · Building a regression model · Hard
Regression targets are standardized as , where . A model achieves an MSE of in standardized target space. What is its MSE after predictions are converted back to the original units?
Not quite. Try another option.
Answer:
Inverse transformation multiplies every prediction error by . Squaring the error therefore multiplies MSE by .
Question 46 of 60 · Building a regression model · Hard
A regression network models heteroscedastic Gaussian noise by outputting a mean and . Ignoring constants, which per-example loss is the Gaussian negative log-likelihood?
Not quite. Try another option.
Answer:
Because the variance is , inverse variance is . The term prevents the model from increasing its predicted variance without penalty.
Question 47 of 60 · Multi-layer Perceptron learning for classification · Hard
An MLP performs three-class classification with integer labels in . Its output layer returns three unrestricted values with no activation. Which loss configuration is mathematically consistent and numerically stable?
Integer class indices require sparse categorical cross-entropy. Since the network returns logits rather than probabilities, from_logits=True is required.
Question 48 of 60 · Image classification with Keras · Hard
A pretrained image backbone is frozen, but validation accuracy is unexpectedly poor. The new dataset is supplied in , whereas the backbone was trained with a different normalization convention. What is the best correction?
Not quite. Try another option.
Answer: Apply the backbone's required preprocessing identically during training and inference.
A frozen backbone expects the input distribution used during pretraining. Consistent model-specific preprocessing is necessary at both training and inference time.
Question 49 of 60 · Image classification with Keras · Hard
An input pipeline is ordered as dataset.map(random_augment).cache().shuffle(...).batch(...). After the first epoch, each image receives the same augmentation repeatedly. Which change preserves caching while generating fresh stochastic augmentations?
Not quite. Try another option.
Answer: Use dataset.cache().shuffle(...).map(random_augment).batch(...).
Caching must occur before the stochastic transformation. Otherwise, the first augmented realization is cached and reused in later epochs.
Question 50 of 60 · Building a text classification model · Hard
Sequences are padded with token ID 0, and Embedding(mask_zero=True) is used. Which architecture can automatically exclude padding positions when aggregating sequence features?
GlobalAveragePooling1D can consume the propagated mask and omit padded positions. Flattening, ordinary convolution, and an unmasked mean do not automatically provide this behavior.
Question 51 of 60 · Building a text classification model · Hard
A TextVectorization layer is adapted on the entire corpus before the data is split. Why can this make the reported validation result optimistic, and what is the correct procedure?
Not quite. Try another option.
Answer: Vocabulary statistics leak validation information; adapt only on training text and reuse the resulting vocabulary.
Adapting on all text exposes validation-set vocabulary and frequency information. Preprocessing state should be learned exclusively from training data.
Question 52 of 60 · Overfitting and underfitting · Hard
During fit(), training loss is consistently higher than validation loss. The model uses strong data augmentation and dropout. Which diagnostic best determines whether this is an artifact of different execution conditions rather than underfitting?
Not quite. Try another option.
Answer: Evaluate a clean training subset with training=False and compare it with validation evaluation.
Training loss may include augmentation noise and active dropout, while validation uses clean data and inference mode. Evaluating both sets under the same conditions enables a fair comparison.
Question 53 of 60 · Saving and loading a model · Hard
A model containing a custom layer must be saved in the native Keras format and loaded without passing a custom_objects dictionary. Which implementation is most appropriate?
Not quite. Try another option.
Answer: Register the layer as serializable and implement get_config() for its constructor arguments.
Serialization registration lets Keras locate the class, while get_config() records the information needed to reconstruct the layer.
Question 54 of 60 · Hyperparameter tuning · Hard
Hundreds of hyperparameter configurations are compared on the same validation set, and the best one is reported using that validation score. What is the strongest evaluation design for reducing selection bias?
Not quite. Try another option.
Answer: Reserve an untouched test set for one final evaluation after tuning.
Repeated selection can overfit the validation set. A test set not used by the tuner provides a less biased estimate of final generalization.
Question 55 of 60 · NVIDIA DGX Station A100 · Hard
A DGX Station A100 has its GPUs partitioned into Multi-Instance GPU instances for several independent users. A new job requires the maximum resources of complete GPUs and high-bandwidth multi-GPU communication. What should the administrator do?
Not quite. Try another option.
Answer: Disable the relevant MIG partitions and launch the job across full GPUs.
MIG partitions provide isolated GPU slices; they cannot be merged into a single logical GPU. Full-GPU mode is appropriate when a job needs complete GPU resources.
Question 56 of 60 · Introduction to NVIDIA DGX Station A100 · Hard
Which use case most directly reflects the purpose of the NVIDIA DGX Station A100?
Not quite. Try another option.
Answer: Running data-center-class AI development locally with an integrated GPU software stack.
DGX Station A100 is designed to bring substantial AI compute and NVIDIA's integrated software environment into a workstation-class system.
Question 57 of 60 · Hardware Architecture · Hard
A model is placed on multiple A100 GPUs connected by NVLink, but a single-GPU Keras script still uses only one GPU. Which statement best explains this result?
Not quite. Try another option.
Answer: NVLink accelerates peer communication, but software must explicitly use a multi-GPU distribution strategy.
Hardware interconnects do not automatically parallelize a model. Keras or the selected backend must be configured with an appropriate distribution mechanism.
Question 58 of 60 · DGX Station A100 Software Stack · Hard
A CUDA-enabled NGC container includes its own user-space CUDA libraries. What host-side compatibility condition is still essential on a DGX Station A100?
Not quite. Try another option.
Answer: The host NVIDIA driver must support the CUDA version required by the container.
GPU containers normally use the host's NVIDIA driver while supplying user-space CUDA libraries internally. The host driver must therefore be sufficiently compatible.
Question 59 of 60 · CUDA Toolkit · Hard
A custom CUDA operation built for older GPUs fails on an A100 with no kernel image is available for execution on the device. What is the most direct build-level remedy?
Not quite. Try another option.
Answer: Recompile with code generation for sm_80 or compatible compute_80 PTX.
A100 GPUs use compute capability 8.0. The binary must contain compatible machine code or PTX that the installed driver can compile for that architecture.
Question 60 of 60 · Future of AI with DGX Station A100 · Hard
An organization wants future AI workloads to share a DGX Station efficiently while preserving isolation between teams. Which strategy is most technically sound?
Not quite. Try another option.
Answer: Use MIG and containers for compatible workloads, while scheduling full GPUs for tightly coupled training jobs.
MIG and containers support isolation and higher utilization for independent workloads, while full GPUs remain preferable for jobs requiring complete resources and multi-GPU communication.
That's unit 2
Answer a few questions and your score shows up here.
Nearly through. Did unit 2 of INT422 save you a night before the exam?
LPU Notes is free. A student pays for the servers.
Did unit 2 of INT422 save you a night before the exam?
Then you can help keep it free for the next batch. 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.