wayground logo

Free Printable Worksheets

NEW

Font size

S
M
L
XL
Worksheets

AIFB Midterm Oct 2025 — Variant A (Grade 13)

Total questions: 65

Worksheet time: 33mins

Name
Class
Date
1.

2.50 p. | single choice. Which of the following best describes what happens during the training phase of a supervised learning model?

a)

The model finds output data when input data and model parameters are given to make predictions.

b)

The model finds model parameters when input and output data are provided in the dataset.

c)

The model randomly assigns weights to features and evaluates their performance on new data.

d)

The model creates new input features from existing data without using output labels.

e)

The model splits the available data into training, validation, and test sets for evaluation.

2.

2.50 p. | single choice. What is the primary difference between regression and classification tasks in supervised learning?

a)

Regression uses categorical data while classification uses numerical data as input features.

b)

Regression predicts infinite ordered values while classification predicts a small number of possible outputs.

c)

Regression requires more training data while classification works with smaller datasets efficiently.

d)

Regression models are always more accurate while classification models are faster to train.

e)

Regression uses gradient descent while classification uses different optimization algorithms exclusively.

3.

2.50 p. | single choice. In the context of data splitting, what is the primary purpose of the test set?

a)

The test set is used to train the model and find optimal model parameters.

b)

The test set is used to validate model performance during the training process iteratively.

c)

The test set is used to test the model after completing training for final evaluation.

d)

The test set is used to perform feature engineering and data preprocessing transformations.

e)

The test set is used to select which features should be included in the model.

4.

2.50 p. | single choice. What is the purpose of the validation set in the machine learning pipeline?

a)

The validation set is used to train the model and optimize its parameters.

b)

The validation set is used to evaluate model performance during training and tune hyperparameters.

c)

The validation set is used to make final predictions on completely new data.

d)

The validation set is used to collect additional data for the training process.

e)

The validation set is used to replace the test set when data is limited.

5.

2.50 p. | single choice. In logistic regression, what transformation is applied to the output of linear regression to produce predictions?

a)

The exponential function is applied to convert linear outputs into probability estimates.

b)

The sigmoid function is applied to convert linear outputs into probability estimates.

c)

The softmax function is applied to convert linear outputs into probability estimates.

d)

The tangent hyperbolic function is applied to convert linear outputs into probability estimates.

e)

The rectified linear unit function is applied to convert linear outputs into probability estimates.

6.

2.50 p. | single choice. What is the key difference between label encoding and one-hot encoding for categorical variables?

a)

Label encoding assigns integers to categories while one-hot encoding creates binary columns for each category.

b)

Label encoding creates binary columns while one-hot encoding assigns continuous numerical values.

c)

Label encoding is used for numerical data while one-hot encoding is used for text data exclusively.

d)

Label encoding works only for ordinal data while one-hot encoding works only for binary data.

e)

Label encoding requires more memory while one-hot encoding is always more computationally efficient.

7.

2.50 p. | single choice. What is the primary purpose of regularization techniques like L1 and L2 in machine learning models?

a)

Regularization increases model complexity to capture more intricate patterns in training data effectively.

b)

Regularization prevents overfitting by adding penalties that discourage excessively large weight values.

c)

Regularization speeds up the training process by reducing the number of features automatically.

d)

Regularization improves accuracy by increasing the learning rate during gradient descent optimization.

e)

Regularization eliminates the need for validation sets by preventing all types of errors.

8.

2.50 p. | single choice. Which evaluation metric is most appropriate for assessing model performance on highly imbalanced classification datasets?

a)

Accuracy is most appropriate because it considers all predictions equally regardless of class distribution.

b)

Mean squared error is most appropriate because it penalizes large errors more heavily than small ones.

c)

F1 score is most appropriate because it balances precision and recall for imbalanced classes.

d)

Root mean squared error is most appropriate because it measures prediction error in original units.

e)

Mean absolute error is most appropriate because it treats all classes with equal importance.

9.

2.50 p. | single choice. Why is feature scaling (normalization or standardization) important for machine learning algorithms?

a)

Feature scaling increases the number of features available for the model to learn from.

b)

Feature scaling ensures features are on a common scale without distorting value ranges or losing information.

c)

Feature scaling automatically removes outliers and missing values from the dataset.

d)

Feature scaling converts categorical variables into numerical representations effectively.

e)

Feature scaling guarantees that the model will achieve perfect accuracy on test data.

10.

2.50 p. | single choice. What does precision measure in a classification model's performance evaluation?

a)

Precision measures the ratio of correct predictions to all actual positive class instances.

b)

Precision measures the ratio of correct positive predictions to all positive class predictions made.

c)

Precision measures the ratio of all correct predictions to the total number of predictions.

d)

Precision measures the ratio of false positives to all negative class instances predicted.

11.

(2.50 p.) | single choice — What is the key difference between MinMax normalization and z-score standardization?

a)

MinMax scales features to a range between 0 and 1 while z-score transforms data to have mean 0 and standard deviation 1.

b)

MinMax uses mean and variance while z-score uses minimum and maximum values for transformation.

c)

MinMax is used for classification while z-score is used exclusively for regression tasks.

d)

MinMax removes outliers automatically while z-score preserves all data points without changes.

e)

MinMax works only with categorical data while z-score works only with numerical data.

12.

(2.50 p.) | single choice — What does recall measure in the evaluation of a classification model?

a)

Recall measures the ratio of correct predictions to all predictions made by the model.

b)

Recall measures the ratio of correct positive predictions to all actual positive class instances.

c)

Recall measures the ratio of false positives to all positive predictions made by the model.

d)

Recall measures the ratio of true negatives to all actual negative class instances overall.

e)

Recall measures the ratio of correct predictions to the number of features used in training.

13.

(2.50 p.) | single choice — Why should one-hot encoding be used for nominal categorical variables rather than label encoding?

a)

One-hot encoding is faster to compute and requires less memory than label encoding methods.

b)

One-hot encoding avoids imposing artificial ordering relationships between unordered categories unlike label encoding.

c)

One-hot encoding automatically normalizes the data while label encoding does not perform normalization.

d)

One-hot encoding reduces the dimensionality of the dataset while label encoding increases dimensions.

e)

One-hot encoding works only with binary classification while label encoding works with multi-class problems.

14.

(2.50 p.) | single choice — What is the fundamental reason why logistic regression uses the sigmoid function rather than outputting linear regression values directly?

a)

The sigmoid function increases computational efficiency by simplifying gradient calculations during optimization procedures.

b)

The sigmoid function transforms unbounded linear outputs into probability values bounded between 0 and 1.

c)

The sigmoid function automatically performs feature selection by zeroing out less important features.

d)

The sigmoid function reduces overfitting by adding implicit regularization to the model architecture.

e)

The sigmoid function allows the model to handle multi-class classification problems more effectively.

15.

(2.50 p.) | single choice — Given three house price predictions with the following values: Predicted = 350,000350{,}000 , Actual = 400,000400{,}000 ; Predicted = 450,000450{,}000 , Actual = 420,000420{,}000 ; Predicted = 500,000500{,}000 , Actual = 480,000480{,}000 . What is the Mean Absolute Error (MAE)?

a)

The Mean Absolute Error is 30,00030{,}000 for these three predictions.

b)

The Mean Absolute Error is 33,33333{,}333 for these three predictions.

c)

The Mean Absolute Error is 35,59035{,}590 for these three predictions.

d)

The Mean Absolute Error is 40,00040{,}000 for these three predictions.

e)

The Mean Absolute Error is 50,00050{,}000 for these three predictions.

16.

(2.50 p.) | single choice — A binary classification model makes predictions on 100 samples with the following results: 40 True Positives, 10 False Positives, 45 True Negatives, and 5 False Negatives. What is the accuracy of this model?

a)

The accuracy is 75% for this binary classification model overall.

b)

The accuracy is 80% for this binary classification model overall.

c)

The accuracy is 85% for this binary classification model overall.

d)

The accuracy is 89% for this binary classification model overall.

e)

The accuracy is 90% for this binary classification model overall.

17.

(2.50 p.) | single choice — Given the following actual and predicted values: (Actual= 1010 , Predicted= 1212 ), (Actual= 1515 , Predicted= 1313 ), (Actual= 2020 , Predicted= 2323 ). Calculate the Mean Squared Error (MSE).

a)

The Mean Squared Error is 4.004.00 for these three predictions.

b)

The Mean Squared Error is 4.334.33 for these three predictions.

c)

The Mean Squared Error is 5.005.00 for these three predictions.

d)

The Mean Squared Error is 6.006.00 for these three predictions.

e)

The Mean Squared Error is 7.337.33 for these three predictions.

18.

(2.50 p.) | single choice — A dataset is normalized using MinMax scaling where the original values are: 1010 , 2020 , 3030 , 4040 , 5050 . After normalization, what will be the scaled value of 3535 ?

a)

The normalized value of 3535 is 0.500.50 after MinMax scaling.

b)

The normalized value of 3535 is 0.550.55 after MinMax scaling.

c)

The normalized value of 3535 is 0.600.60 after MinMax scaling.

d)

The normalized value of 3535 is 0.6250.625 after MinMax scaling.

e)

The normalized value of 3535 is 0.700.70 after MinMax scaling.

19.

(2.50 p.) | single choice — A dataset is normalized using MinMax scaling where the original values are: 1010 , 2020 , 3030 , 4040 , 5050 . After normalization, what will be the scaled value of 3535 ?

a)

The normalized value of 3535 is 0.500.50 after MinMax scaling.

b)

The normalized value of 3535 is 0.550.55 after MinMax scaling.

c)

The normalized value of 3535 is 0.600.60 after MinMax scaling.

d)

The normalized value of 3535 is 0.6250.625 after MinMax scaling.

e)

The normalized value of 3535 is 0.700.70 after MinMax scaling.

20.

(2.50 p.) | single choice — A classification model achieves 99.5%99.5\% training accuracy, 85%85\% validation accuracy, and 84%84\% test accuracy. What is the BEST first step to try to further improve the model performance?

a)

Increase the model complexity by adding more layers or parameters to capture patterns better.

b)

Collect more training data and train more to improve performance further.

c)

Apply regularization techniques like L1, L2 penalties to reduce overfitting significantly.

d)

Remove features from the model to simplify it and improve validation accuracy dramatically.

e)

Change the learning rate to a higher value to speed up convergence to optimal solution.

21.

(2.50 p.) | single choice — A classification model achieves 99.5%99.5\% training accuracy, 85%85\% validation accuracy, and 84%84\% test accuracy. What is the BEST first step to try to further improve the model performance?

a)

Increase the model complexity by adding more layers or parameters to capture patterns better.

b)

Collect more training data and train more to improve performance further.

c)

Apply regularization techniques like L1, L2 penalties to reduce overfitting significantly.

d)

Remove features from the model to simplify it and improve validation accuracy dramatically.

e)

Change the learning rate to a higher value to speed up convergence to optimal solution.

22.

(2.50 p.) | single choice — Model Alpha: train accuracy= 0.940.94 , train loss= 0.120.12 , val accuracy= 0.930.93 , val loss= 0.130.13 , test accuracy= 0.920.92 . Model Beta: train accuracy= 0.880.88 , train loss= 0.220.22 , val accuracy= 0.870.87 , val loss= 0.230.23 , test accuracy= 0.860.86 . What is the best interpretation?

a)

Model Alpha is overfitting because it has higher accuracies across all datasets than Model Beta

b)

Model Beta is underfitting and needs increased complexity to match Model Alpha's performance levels.

c)

Model Alpha shows good generalization with consistent performance across train, validation, and test sets.

d)

Model Beta should be selected because lower accuracy indicates more conservative and reliable predictions.

e)

Both models are overfitting because validation accuracy is lower than training accuracy in both cases.

23.

Two models for credit risk: Model 1 has train F1=0.92, val F1=0.68, test F1=0.66; Model 2 has train F1=0.78, val F1=0.76, test F1=0.75. Considering both performance and generalization, which is preferable?

a)

Model 1 is preferable because higher training F1 score indicates superior pattern learning capability.

b)

Model 2 is preferable because it shows better generalization with higher validation F1 scores.

c)

Model 1 is preferable because the absolute value of test F1 determines model quality.

d)

Model 2 is preferable because lower training F1 means less risk of regulatory issues.

e)

Both models are equally good because they both show decreasing F1 from train to test.

24.

Model G: train accuracy=0.75, val accuracy=0.74, test accuracy=0.73; Model H: train accuracy=0.82, val accuracy=0.81, test accuracy=0.80. Both show consistent generalization. Which should you choose?

a)

Model G because lower accuracy indicates less overfitting and better long-term stability.

b)

Model H because it achieves higher absolute performance while maintaining good generalization across datasets.

c)

Model G because the gap between train and test is smaller in absolute terms.

d)

Model H because higher training accuracy always translates to better production performance.

e)

Neither model should be chosen because both show decreasing accuracy from train to test.

25.

For imbalanced fraud detection (1% fraud rate), Model J achieves train accuracy=0.99, val accuracy=0.99, test accuracy=0.99, but val recall=0.15, test recall=0.12. What is the problem?

a)

The model is overfitting because training accuracy is too high compared to industry standards.

b)

The model is likely predicting mostly the negative class, achieving high accuracy but missing most frauds.

c)

The model is performing excellently because accuracy is consistent across all three datasets.

d)

The model needs more regularization because recall is too low compared to accuracy.

e)

The model is underfitting because it cannot achieve higher recall on the training set.

26.

Comparing two models on validation set: Model K has accuracy=0.88, recall=0.92, precision=0.72; Model L has accuracy=0.86, recall=0.78, precision=0.88. For a medical diagnosis where missing positive cases is critical, which is better?

a)

Model K is better because higher recall means fewer false negatives and fewer missed diagnoses.

b)

Model L is better because higher precision means more reliable positive predictions overall.

c)

Model K is better because it has higher accuracy indicating overall superior performance.

d)

Model L is better because balanced metrics are more important than any single metric.

e)

Neither model is acceptable because recall below 0.95 is unacceptable for medical applications.

27.

In a fraud detection system processing millions of transactions daily, two models are being evaluated. Model A: precision=0.45, recall=0.92, F1=0.60; Model B: precision=0.82, recall=0.58, F1=0.68. The cost of investigating a false positive is 50,whiletheaveragelossfromamissedfraud(falsenegative)is50, while the average loss from a missed fraud (false negative) is 2,500. Which model should be selected and why?

a)

Model B should be selected because higher F1 score always indicates superior overall performance for deployment.

b)

Model A should be selected because high recall minimizes costly false negatives despite lower precision.

c)

Model B should be selected because higher precision reduces investigation costs more than recall benefits.

d)

Model A should be selected because lower precision is acceptable when accuracy is the primary concern.

e)

Model B should be selected because the precision-recall balance indicated by F1 outweighs cost considerations.

28.

In a portfolio credit risk model, you observe that for high-risk borrowers (5% of portfolio), the model achieves recall=0.55 and precision=0.28. For medium-risk borrowers (25% of portfolio), recall=0.78 and precision=0.65. For low-risk borrowers (70% of portfolio), recall=0.95 and precision=0.92. What is the most significant concern for risk management?

a)

The model performs poorly on the high-risk segment with low recall missing 45% of actual high-risk borrowers.

b)

The model's precision for high-risk borrowers is too low resulting in excessive false positive classifications.

c)

The model is biased toward the majority class and needs rebalancing techniques applied.

d)

The model's overall weighted accuracy will be poor due to performance on the high-risk segment.

e)

The model shows acceptable performance because low-risk borrowers have excellent recall and precision metrics.

29.

A trading algorithm classifier predicts buy/sell signals where "buy" is the positive class. Historical data shows 8% of signals should be "buy". After deployment, you observe: actual buys that were predicted=750, actual buys that were missed=250, false buy signals=3,000, correct sell signals=16,000. Calculate precision and determine if precision below 0.25 is acceptable given that false buy signals cost 100eachintransactioncostswhilemissingtruebuysignalscosts100 each in transaction costs while missing true buy signals costs 500 in opportunity loss.

a)

Precision is 0.20 which is unacceptable because false buy signals generate $300,000 in unnecessary costs.

b)

Precision is 0.25 which is borderline but recall of 0.75 means $125,000 in opportunity losses.

c)

Precision is 0.20 and recall is 0.75 but the $125,000 opportunity loss exceeds the $300,000 transaction cost.

d)

Precision is 0.20 and recall is 0.75 meaning opportunity loss of $125,000 is less than $300,000 transaction cost justifying rejection.

e)

Precision is 0.80 indicating excellent performance and the model should continue operating as configured.

30.

An insurance claim fraud model shows different performance across claim amounts. For claims under 5,000(855,000 (85% of claims, 1% fraud rate): recall=0.88, precision=0.15. For claims over 5,000 (15% of claims, 12% fraud rate): recall=0.45, precision=0.62. If average fraud amount is 3,500forsmallclaimsand3,500 for small claims and 18,000 for large claims, what is the primary business risk?

a)

Low precision on small claims generates excessive investigation costs outweighing the fraud prevention benefits significantly.

b)

Low recall on large claims means missing 55% of high-value frauds resulting in substantial financial losses.

c)

The model should be rejected because overall weighted precision is below acceptable thresholds for deployment.

d)

High recall on small claims is problematic because it flags too many legitimate low-value claims.

31.

single choice (2 p.) What does fine-tuning a pre-trained language model involve?

a)

Training a model from scratch for better performance

b)

Combining embeddings from multiple models

c)

Adjusting model weights on a specific task or dataset

d)

Using unsupervised data for supervised tasks

e)

Creating clusters for labeled datasets

32.

single choice (2 p.) What is the primary role of prompt engineering?

a)

Designing effective input queries to guide outputs

b)

Improving tokenization processes

c)

Optimizing hyperparameters in generative models

d)

Training the model with additional datasets

e)

Fine-tuning pre-trained models for specific tasks

33.

single choice (2 p.) What is the key difference between top-k and top-p sampling?

a)

Top-p applies to numeric outputs, while top-k applies to text

b)

Top-k is faster but less accurate than top-p sampling

c)

Top-p considers probabilities cumulatively; top-k selects the top-k predictions

d)

Top-k and top-p are identical sampling methods

e)

Top-k considers probabilities cumulatively; top-p selects only the top-k predictions

34.

single choice (2 p.) A language model generates the probability distribution for the next token shown in the table. When applying top-p sampling with p=0.90p = 0.90 , which tokens are included in the sampling pool?

a)

Token 1 only

b)

Tokens 1, 2, 3, and 4

c)

Tokens 1, 2, and 3

d)

All five tokens

e)

Tokens 1 and 2

35.

single choice (2 p.) What is tokenization in NLP?

a)

Assigning probabilities to class labels

b)

Splitting text into units such as words or subwords

c)

Aggregating all text data into a single representation

d)

Removing irrelevant information from text

e)

Reducing text to its base form

36.

single choice (2 p.) What is the purpose of identifying stop words in NLP tasks?

a)

To emphasize the most frequent words in text

b)

To improve efficiency by removing commonly used words that might add little meaning

c)

To replace rare words with similar high-frequency words

d)

To reduce overfitting during model training

e)

To identify important topic-specific terms

37.

single choice (2 p.) Why are word embeddings significant in modern NLP models?

a)

They simplify tokenization processes

b)

They represent words as vectors that capture semantic meaning

c)

They are exclusively used for supervised learning tasks

d)

They remove the need for pretraining in LLMs

e)

They ensure that each token has a unique representation

38.

single choice (2 p.) What is the role of the attention mechanism in NLP?

a)

To eliminate stop words dynamically

b)

To assign importance to different parts of input data for context understanding

c)

To tokenize input data into smaller units

d)

To generate embeddings for sequences

e)

To reduce the dimensionality of input data

39.

single choice (2 p.) What does zero-shot learning enable in language models?

a)

Learning tasks with no specific training data for those tasks

b)

Adapting to unseen data using a small labeled dataset

c)

Using reinforcement learning for improved accuracy

d)

Generating text using unsupervised methods exclusively

e)

Predicting sequences without embeddings

40.

single choice (2.50 p.) What is the key difference between label encoding and one-hot encoding for categorical variables?

a)

Label encoding assigns integers to categories while one-hot encoding creates binary columns for each category.

b)

Label encoding creates binary columns while one-hot encoding assigns continuous numerical values.

c)

Label encoding is used for numerical data while one-hot encoding is used for text data exclusively.

d)

Label encoding works only for ordinal data while one-hot encoding works only for binary data.

e)

Label encoding requires more memory while one-hot encoding is always more computationally efficient.

41.

What is the primary purpose of regularization techniques like L1 and L2 in machine learning models?

a)

Regularization increases model complexity to capture more intricate patterns in training data effectively.

b)

Regularization prevents overfitting by adding penalties that discourage excessively large weight values.

c)

Regularization speeds up the training process by reducing the number of features automatically.

d)

Regularization improves accuracy by increasing the learning rate during gradient descent optimization.

e)

Regularization eliminates the need for validation sets by preventing all types of errors.

42.

Which evaluation metric is most appropriate for assessing model performance on highly imbalanced classification datasets?

a)

Accuracy is most appropriate because it considers all predictions equally regardless of class distribution.

b)

Mean squared error is most appropriate because it penalizes large errors more heavily than small ones.

c)

F1 score is most appropriate because it balances precision and recall for imbalanced classes.

d)

Root mean squared error is most appropriate because it measures prediction error in original units.

e)

Mean absolute error is most appropriate because it treats all classes with equal importance.

43.

Why is feature scaling (normalization or standardization) important for machine learning algorithms?

a)

Feature scaling increases the number of features available for the model to learn from.

b)

Feature scaling ensures features are on a common scale without distorting value ranges or losing information.

c)

Feature scaling automatically removes outliers and missing values from the dataset.

d)

Feature scaling converts categorical variables into numerical representations effectively.

e)

Feature scaling guarantees that the model will achieve perfect accuracy on test data.

44.

What does precision measure in a classification model's performance evaluation?

a)

Precision measures the ratio of correct predictions to all actual positive class instances.

b)

Precision measures the ratio of correct positive predictions to all positive class predictions made.

c)

Precision measures the ratio of all correct predictions to the total number of predictions.

d)

Precision measures the ratio of false positives to all negative class instances predicted.

e)

Precision measures the ratio of true negatives to all actual negative class instances.

45.

Which of these is a key advantage of random forests over individual decision trees?

a)

Lower computational complexity

b)

Faster training time compared to single decision trees

c)

Better interpretability for end-users

d)

More accurate predictions most of the time due to ensemble averaging

e)

Simpler implementation in most software tools

46.

What does zero-shot learning enable in language models?

a)

Learning tasks with no specific training data for those tasks

b)

Adapting to unseen data using a small labeled dataset

c)

Using reinforcement learning for improved accuracy

d)

Predicting sequences without embeddings

e)

Generating text using unsupervised methods exclusively

47.

What is the role of Reinforcement Learning from Human Feedback (RLHF)?

a)

Reducing the training time for discriminative models

b)

Improving model interpretability based on human evaluation

c)

Enhancing generative models to be used for reinforcement learning

d)

Fine-tuning language models to align with human preferences

e)

Standardizing model outputs for generative models for text generation

48.

How does temperature affect the outputs of a large language model?

a)

It controls randomness in the generated text

b)

It changes the structure of the training data

c)

It adjusts the model's learning rate and loss function

d)

It sets the maximum token limit

e)

It modifies the input tokenization process

49.

What type of scenario is best handled by discriminative models?

a)

Predicting whether an email is spam

b)

Creating human-like conversations

c)

Producing synthetic datasets

d)

Generating realistic images

e)

Translating text between languages

50.

When modifying the output layer of a classification neural network to support a new set of target classes, which factor most directly determines how the output layer must be redesigned?

a)

The number of unique labels that the model must predict at inference

b)

The dropout probability applied in the preceding hidden layers

c)

The dimensionality of the internal feature embeddings produced by the model

d)

The batch size used during the final epoch of model fine-tuning

e)

The type of optimizer used during the training procedure

51.

What is the role of the attention mechanism in NLP?

a)

To tokenize input data into smaller units

b)

To assign importance to different parts of input data for context understanding

c)

To eliminate stop words dynamically

d)

To reduce the dimensionality of input data

e)

To generate embeddings for sequences

52.

What is hallucination in large language models?

a)

A failure or hallucination of the input training data to generate features

b)

An issue caused by low training data diversity

c)

A scenario where the model outputs random sequences

d)

A state where the model produces plausible but false information

e)

An increase in overfitting during fine-tuning

53.

Single choice (2 p.) — What is the primary purpose of word embeddings in NLP?

a)

To translate words between languages

b)

To represent words as vectors

c)

To count word frequency in documents

d)

To remove stop words from the text

e)

To tokenize sentences into words

54.

Single choice (2 p.) — What is the main advantage of using vector embeddings in business AI?

a)

They shrink model size using random transformations

b)

They extract only categorical features from the training set

c)

They make spreadsheets easier to edit and update

d)

They convert text into numbers that preserve meaning

e)

They erase irrelevant attributes to save memory

55.

Single choice (2 p.) — Why are word embeddings significant in modern NLP models?

a)

They remove the need for pretraining in LLMs

b)

They represent words as vectors that capture semantic meaning

c)

They simplify tokenization processes

d)

They are exclusively used for supervised learning tasks

e)

They ensure that each token has a unique representation

56.

Single choice (2 p.) — What is the purpose of identifying stop words in NLP tasks?

a)

To emphasize the most frequent words in text

b)

To identify important topic-specific terms

c)

To reduce overfitting during model training

d)

To replace rare words with similar frequency words

e)

To improve efficiency by removing commonly used words

57.

Single choice (5 p.) — A classifier’s output layer changes from 10 classes to 8 classes. Each neuron receives 512 inputs plus bias. How many fewer parameters does the new layer contain?

a)

4,096 fewer parameters overall

b)

4,800 fewer parameters overall

c)

3,078 fewer parameters overall

d)

3,520 fewer parameters overall

e)

2,560 fewer parameters overall

58.

Single choice (2 p.) — What is tokenization in NLP?

a)

Removing irrelevant information from text

b)

Reducing text to its base form

c)

Aggregating all text data into a single representation

d)

Assigning probabilities to class labels

e)

Splitting text into units such as words or subwords

59.

Single choice (2 p.) — In regression tasks, discriminative models aim to:

a)

Generate new features from the input

b)

Map input features to continuous outputs

c)

Handle missing values in the dataset

d)

Reduce overfitting on the training data

e)

Learn the probability distribution of inputs

60.

Single choice (2 p.) — What is transfer learning in NLP?

a)

Applying clustering algorithms to a large dataset of text to apply clusters to a smaller dataset

b)

Training all word embeddings from a randomly initialized state exclusively on the target task

c)

Using pre-trained knowledge from one task to enhance model performance for another task

d)

Transferring generative models from unsupervised text generation and iterative quality refinement

e)

Integrating a reinforcement learning policy with a language model guided by human feedback

61.

Single choice (2 p.) — Why is retrieval-augmented generation (RAG) beneficial?

a)

It reduces computational resource usage during LLM training

b)

It increases the model's ability to classify text generated by another model

c)

It simplifies prompt engineering by retrieving and generating useful features

d)

It eliminates the need for pretraining retrieval-augmented models

e)

It enhances LLMs by incorporating real-time, external knowledge

62.

Single choice (2 p.) — What trade-off does a low-temperature setting provide in LLM outputs?

a)

Faster response times but less accuracy

b)

Higher randomness but reduced coherence

c)

Better interpretability but fewer details

d)

Reduced randomness but lower creativity

e)

Enhanced creativity but increased errors

63.

Single choice (2 p.) — Which task is generative AI better suited for compared to discriminative AI?

a)

Fraud detection

b)

Spam detection

c)

Regression analysis

d)

Text translation

e)

Image classification

64.

Single choice (2 p.) — Which strategy helps mitigate the knowledge cutoff limitations of LLMs?

a)

Diversifying the knowledge base to new fields

b)

Reducing the model size and increasing the cutoff threshold

c)

Implementing zero-shot learning instead of few-shot learning

d)

Employing retrieval-augmented generation

e)

Adding more hyperparameters and tuning them on the validation set

65.

Single choice (2 p.) — How does maximum length impact an LLM's functionality?

a)

It alters the model's sampling techniques

b)

It limits the maximum number of neurons in hidden layers

c)

It defines the required training data size

d)

It sets the model's computational complexity

e)

It limits the number of input and output tokens