Ai Fundamentals Midterm Quizzes Source
Ai Fundamentals Midterm Quizzes Source
Ai Fundamentals Midterm Quizzes Source
THIS SOURCE IS
CREATED BY: ATE ZEIN
Question 1
Correct
The KL distance is always positive and is equal to zero only when the two probability distributions are:
a. Independently distributed
b. Mutually exclusive
c. Identically distributed
d. Uniformly distributed
Question 2
Correct
Question 3
Correct
How is the y-intercept of the line of best fit calculated using the least squares method?
https://trimestral.amaesonline.com/2323/mod/quiz/review.php?attempt=59275&cmid=64466 1/7
1/28/24, 6:08 PM Midterm Lab Quiz 1: Attempt review
Question 4
Correct
The ______________ linkage criterion is a popular choice for hierarchical clustering, which merges the two clusters that have the
maximum distance between them.
a. Complete
b. Average
c. Single
d. Centroid
Question 5
Correct
The KL distance between two discrete probability distributions P and Q is defined as:
Question 6
Correct
The KL distance is often used in machine learning and artificial intelligence to compare two probability distributions, such as a
model's predicted distribution and the true distribution. In this context, the KL distance can be used as a:
a. Cost function
b. Kernel function
c. Activation function
d. Loss function
https://trimestral.amaesonline.com/2323/mod/quiz/review.php?attempt=59275&cmid=64466 2/7
1/28/24, 6:08 PM Midterm Lab Quiz 1: Attempt review
Question 7
Correct
The ______________ linkage criterion is a popular choice for hierarchical clustering, which merges the two clusters that have the
minimum distance between them.
a. Complete
b. Average
c. Single
d. Centroid
Question 8
Correct
The KL distance is often used in natural language processing to compare the distribution of words in a document with the
distribution of words in a reference corpus. In this context, a low KL distance indicates that the document is:
Question 9
Correct
In information theory, the KL distance can be used to measure the information lost when approximating one distribution with
another. Which of the following is NOT a property of the KL distance in this context?
a. It is non-negative
b. It is always positive
c. It is non-symmetric
d. It is zero only when the two distributions are identical
https://trimestral.amaesonline.com/2323/mod/quiz/review.php?attempt=59275&cmid=64466 3/7
1/28/24, 6:08 PM Midterm Lab Quiz 1: Attempt review
Question 10
Correct
The ______________ linkage criterion is a popular choice for hierarchical clustering, which merges the two clusters based on the distance
between their centroids.
a. Centroid
b. Single
c. Complete
d. Average
Question 11
Correct
The KL distance can be used to measure the difference between two probability distributions in terms of the information content of
the distributions. In this context, the KL distance is also known as:
Question 12
Correct
In hierarchical clustering, the distance between clusters is typically measured using the ______________ criterion.
a. Manhattan distance
b. Cosine similarity
c. Linkage criterion
d. Euclidean distance
https://trimestral.amaesonline.com/2323/mod/quiz/review.php?attempt=59275&cmid=64466 4/7
1/28/24, 6:08 PM Midterm Lab Quiz 1: Attempt review
Question 13
Correct
Question 14
Correct
a. Mutual information
b. Joint entropy
c. Cross-entropy
d. Shannon entropy
Question 15
Correct
In hierarchical clustering, the final clusters are represented using a ______________ diagram.
a. Scatter plot
b. Line graph
c. Dendrogram
d. Bar chart
Question 16
Correct
The KL distance is often used in machine learning to evaluate the performance of a classification model. In this context, a low KL
distance indicates that the model's predicted class probabilities are:
https://trimestral.amaesonline.com/2323/mod/quiz/review.php?attempt=59275&cmid=64466 5/7
1/28/24, 6:08 PM Midterm Lab Quiz 1: Attempt review
Question 17
Correct
The KL distance can be used to measure the information lost when approximating one distribution with another. In this context, the
distribution being approximated is known as the:
a. Reference distribution
b. Target distribution
c. Base distribution
d. Approximation distribution
Question 18
Correct
The ______________ linkage criterion is a popular choice for hierarchical clustering, which merges the two clusters based on the mean
distance between their points.
a. Average
b. Single
c. Complete
d. Centroid
Question 19
Correct
How is the slope of the line of best fit calculated using the least squares method?
a. By dividing the sum of the y values by the sum of the squares of the x values
b. By dividing the sum of the product of the x values and the y values by the sum of the squares of the x values
c. By dividing the sum of the product of the x values and the y values by the sum of the x values
d. By dividing the sum of the y values by the sum of the x values
https://trimestral.amaesonline.com/2323/mod/quiz/review.php?attempt=59275&cmid=64466 6/7
1/28/24, 6:08 PM Midterm Lab Quiz 1: Attempt review
Question 20
Correct
◄ Midterm Quiz 1
Jump to...
Module 7 ►
https://trimestral.amaesonline.com/2323/mod/quiz/review.php?attempt=59275&cmid=64466 7/7
1/28/24, 6:08 PM Midterm Quiz 2: Attempt review
Question 1
Correct
a. The sum of the squares of the errors between the data points and the line of best fit
b. The mean of the data set
c. The variance of the data set
d. The sum of the absolute values of the errors between the data points and the line of best fit
Question 2
Correct
Question 3
Correct
https://trimestral.amaesonline.com/2323/mod/quiz/review.php?attempt=59527&cmid=64469#question-59548-11 1/6
1/28/24, 6:08 PM Midterm Quiz 2: Attempt review
Question 4
Correct
Question 5
Correct
What is a perceptron?
Question 6
Correct
a. DBSCAN
b. Agglomerative clustering
c. All of the above
d. K-means
Question 7
Correct
https://trimestral.amaesonline.com/2323/mod/quiz/review.php?attempt=59527&cmid=64469#question-59548-11 2/6
1/28/24, 6:08 PM Midterm Quiz 2: Attempt review
Question 8
Correct
a. A graph in which the edges do not have a direction and there are no cycles
b. A graph in which the edges do not have a direction and there are cycles
c. A graph in which the edges have a direction and there are cycles
d. A graph in which the edges have a direction and there are no cycles
Question 9
Correct
What is an example of a batch learning algorithm used for dimensionality reduction tasks?
Question 10
Correct
Question 11
Correct
https://trimestral.amaesonline.com/2323/mod/quiz/review.php?attempt=59527&cmid=64469#question-59548-11 3/6
1/28/24, 6:08 PM Midterm Quiz 2: Attempt review
Question 12
Correct
Question 13
Correct
a. Data pipelines
b. Social media networks
c. All of the above
d. Computer networks
Question 14
Correct
Question 15
Correct
https://trimestral.amaesonline.com/2323/mod/quiz/review.php?attempt=59527&cmid=64469#question-59548-11 4/6
1/28/24, 6:08 PM Midterm Quiz 2: Attempt review
Question 16
Correct
Question 17
Correct
Question 18
Correct
What is an example of a batch learning algorithm used for feature selection tasks?
Question 19
Correct
https://trimestral.amaesonline.com/2323/mod/quiz/review.php?attempt=59527&cmid=64469#question-59548-11 5/6
1/28/24, 6:08 PM Midterm Quiz 2: Attempt review
Question 20
Incorrect
◄ Module 8
Jump to...
https://trimestral.amaesonline.com/2323/mod/quiz/review.php?attempt=59527&cmid=64469#question-59548-11 6/6
1/28/24, 6:08 PM Midterm Lab Quiz 2: Attempt review
Question 1
Correct
Question 2
Correct
What is the advantage of the Naive Bayes classifier over other classifiers?
Question 3
Correct
https://trimestral.amaesonline.com/2323/mod/quiz/review.php?attempt=59596&cmid=64470 1/6
1/28/24, 6:08 PM Midterm Lab Quiz 2: Attempt review
Question 4
Correct
Question 5
Correct
Question 6
Correct
Question 7
Correct
a. Classification
b. All of the above
c. Clustering
d. Regression
https://trimestral.amaesonline.com/2323/mod/quiz/review.php?attempt=59596&cmid=64470 2/6
1/28/24, 6:08 PM Midterm Lab Quiz 2: Attempt review
Question 8
Correct
Question 9
Correct
a. To minimize the error between the predicted and actual values of the data
b. To maximize the prediction accuracy of the model
c. To maximize the likelihood of a model given the data
d. To minimize the cost or loss function of a model
Question 10
Correct
What is the advantage of using the Gaussian Naive Bayes classifier over other types of Naive Bayes classifiers?
a. It is more accurate
b. It is faster to train and predict
c. It is able to handle continuous features
d. It is able to handle categorical features
Question 11
Correct
What is the main advantage of using a directed acyclic graph (DAG) over other types of graphs?
https://trimestral.amaesonline.com/2323/mod/quiz/review.php?attempt=59596&cmid=64470 3/6
1/28/24, 6:08 PM Midterm Lab Quiz 2: Attempt review
Question 12
Correct
a. It is prone to overfitting
b. It is unable to handle large datasets
c. It is unable to handle nonlinear relationships
d. It is slow to converge
Question 13
Correct
a. It is easy to implement
b. It is able to handle large datasets
c. It is fast to converge
d. It is able to handle nonlinear relationships
Question 14
Correct
Question 15
Correct
https://trimestral.amaesonline.com/2323/mod/quiz/review.php?attempt=59596&cmid=64470 4/6
1/28/24, 6:08 PM Midterm Lab Quiz 2: Attempt review
Question 16
Correct
Question 17
Correct
Question 18
Correct
a. Regression tasks
b. Unsupervised learning tasks
c. Both classification and regression tasks
d. Classification tasks
Question 19
Correct
https://trimestral.amaesonline.com/2323/mod/quiz/review.php?attempt=59596&cmid=64470 5/6
1/28/24, 6:08 PM Midterm Lab Quiz 2: Attempt review
Question 20
Correct
◄ Midterm Quiz 2
Jump to...
Module 9 ►
https://trimestral.amaesonline.com/2323/mod/quiz/review.php?attempt=59596&cmid=64470 6/6
1/28/24, 6:08 PM Midterm Quiz 1: Attempt review
Question 1
Correct
Question 2
Correct
a. Outliers
b. All of the above
c. Scale
d. Variance
Question 3
Correct
How does the least squares method handle outliers in the data set?
a. It removes them
b. It gives them less weight
c. It gives them more weight
d. It ignores them
https://trimestral.amaesonline.com/2323/mod/quiz/review.php?attempt=58862&cmid=64465 1/6
1/28/24, 6:08 PM Midterm Quiz 1: Attempt review
Question 4
Correct
a. Agglomerative, divisive
b. Non-parametric, parametric
c. Unsupervised, supervised
d. Iterative, recursive
Question 5
Correct
a. Hybrid
b. Deep
c. Flat
d. Hierarchical
Question 6
Correct
How can the problem of producing suboptimal results if the clusters are not spherical be addressed in the k-means algorithm?
Question 7
Correct
How does the k-means algorithm determine which data points belong to which cluster?
https://trimestral.amaesonline.com/2323/mod/quiz/review.php?attempt=58862&cmid=64465 2/6
1/28/24, 6:08 PM Midterm Quiz 1: Attempt review
Question 8
Correct
a. It is open source
b. It has a user-friendly interface
c. It allows users to build custom data pipelines
d. It is free
Question 9
Correct
Can the least squares method be used for nonlinear data sets?
a. Yes
b. No
c. It depends on the method used to transform the data set
d. It depends on the data set
Question 10
Correct
a. Supervised learning involves predicting a continuous value, while unsupervised learning involves predicting a categorical
value
b. Supervised learning involves labeled data, while unsupervised learning involves unlabeled data
c. Supervised learning involves clustering data, while unsupervised learning involves predicting a value
d. Supervised learning involves predicting a value, while unsupervised learning involves clustering data
Question 11
Correct
https://trimestral.amaesonline.com/2323/mod/quiz/review.php?attempt=58862&cmid=64465 3/6
1/28/24, 6:08 PM Midterm Quiz 1: Attempt review
Question 12
Correct
How does the Naive Bayes classifier calculate the probability of a data point belonging to a particular class?
Question 13
Correct
How can the sensitivity to the initial placement of centroids be addressed in the k-means algorithm?
Question 14
Correct
a. Classification
b. Regression
c. Dimensionality reduction
d. Clustering
Question 15
Correct
https://trimestral.amaesonline.com/2323/mod/quiz/review.php?attempt=58862&cmid=64465 4/6
1/28/24, 6:08 PM Midterm Quiz 1: Attempt review
Question 16
Correct
How is the line of best fit calculated using the least squares method?
Question 17
Correct
a. By selecting the set of clusters that minimize the sum of squared errors
b. By selecting the set of clusters that maximize the sum of squared errors
c. By selecting the set of clusters that minimize the within-cluster variance
d. By selecting the set of clusters that maximize the within-cluster variance
Question 18
Correct
https://trimestral.amaesonline.com/2323/mod/quiz/review.php?attempt=58862&cmid=64465 5/6
1/28/24, 6:08 PM Midterm Quiz 1: Attempt review
Question 19
Correct
a. The Hebb rule uses the error between the output and target to update the weights, while the delta rule uses the input
and output
b. The Hebb rule uses the output and target to update the weights, while the delta rule uses the input and output
c. The Hebb rule uses the input and output to update the weights, while the delta rule uses the error between the output and
target
d. The Hebb rule uses the input and output to update the weights, while the delta rule uses the error between the output and
target
Question 20
Correct
Can the least squares method be used for multiple linear regression?
a. Yes
b. It depends on the data set
c. It depends on the method used to transform the data set
d. No
◄ Module 6
Jump to...
https://trimestral.amaesonline.com/2323/mod/quiz/review.php?attempt=58862&cmid=64465 6/6