Question 1: In the context of natural language processing, what is a "token"?
A) A word or phrase that represents a specific concept
B) A unit of meaning in a sentence
C) A symbol that represents a particular function in a programming language
D) A type of machine learning algorithm
Answer: B) A unit of meaning in a sentence.
Explanation: In natural language processing, a token is a unit of meaning in a sentence, such as a word, phrase, or symbol. Tokens are the basic building blocks of text data and are used in various NLP tasks, such as text classification and language translation.
Question 2: Which of the following is not a type of neural network?
A) Convolutional neural network (CNN)
B) Recurrent neural network (RNN)
C) Hierarchical neural network (HNN)
D) Feedforward neural network (FFNN)
Answer: C) Hierarchical neural network (HNN).
Explanation: While CNNs, RNNs, and FFNNs are all common types of neural networks used in machine learning, there is no such thing as a hierarchical neural network (HNN).
Question 3: Which of the following is a popular open-source machine learning library in Python?
A) TensorFlow
B) Keras
C) Scikit-learn
D) PyTorch
Answer: C) Scikit-learn.
Explanation: Scikit-learn is a popular open-source machine learning library in Python that provides a wide range of machine learning algorithms for classification, regression, clustering, and dimensionality reduction.
Question 4: In the context of deep learning, what is a "layer"?
A) A set of nodes in a neural network
B) A type of activation function
C) A type of optimizer
D) A type of loss function
Answer: A) A set of nodes in a neural network.
Explanation: In the context of deep learning, a layer is a set of nodes (also called neurons) in a neural network that perform a specific computation on the input data and pass the results to the next layer.
Question 5: Which of the following is a type of regularization used in machine learning to prevent overfitting?
A) Lasso regression
B) Ridge regression
C) Dropout
D) Decision tree
Answer: C) Dropout.
Explanation: Dropout is a regularization technique used in machine learning to prevent overfitting by randomly dropping out some of the neurons in a neural network during training. Lasso and ridge regression are regularization techniques used for linear regression, while decision trees are a type of machine learning algorithm used for classification and regression tasks.
Question 6: In the context of natural language processing, what is "named entity recognition"?
A) The process of extracting names of people, organizations, and locations from text
B) The process of identifying the part of speech of each word in a sentence
C) The process of converting text to speech
D) The process of translating text from one language to another
Answer: A) The process of extracting names of people, organizations, and locations from text.
Explanation: Named entity recognition (NER) is the process of identifying and extracting named entities, such as names of people, organizations, and locations, from unstructured text data.
Question 7: Which of the following is an example of supervised learning?
A) Clustering
B) Anomaly detection
C) Sentiment analysis
D) Dimensionality reduction
Answer: C) Sentiment analysis.
Explanation: Sentiment analysis is an example of supervised learning because it involves training a machine learning model on labeled data (i.e., text data labeled with positive or negative sentiment) to predict the sentiment of new, unseen text data.
Question 8: Which of the following is a type of evaluation metric used in machine learning for classification tasks?
A) Mean squared error (MSE)
B) Root mean squared error (RMSE)
C) Accuracy
D) Mean absolute error (MAE)
Answer: C) Accuracy.
Explanation: Accuracy is a common evaluation metric used in machine learning for classification tasks. It measures the percentage of correct predictions made by a machine learning model on a test dataset.
Question 9: In the context of natural language processing, what is "word embedding"?
A) The process of converting text data into numerical vectors
B) The process of extracting keywords from text data
C) The process of generating new words by combining