wayground logo

Free Printable Worksheets

Font size

S
M
L
XL
Worksheets

Google AI-ML Quiz

Total questions: 50

Worksheet time: 38mins

Name
Class
Date
1.

What is the role of data labeling in machine learning?

4 lines
2.

Which library is used to draw and display the image?

a)
PyTorch
b)
Matplotlib
c)
OpenCV
d)
TensorFlow
3.

What is the purpose of the line "plt.grid(False)"?

4 lines
4.

What variables hold the dimensions of the image?

4 lines
5.

What is the purpose of the line "plt.gray()"?

4 lines
6.

What library is used to create array type data structures in Python?

a)

TensorFlow

b)

NumPy

c)

Keras

d)

SciPy

7.

What is the main task of traditional programming?

a)

Inferring rules from data and labels

b)

Compiling binary programs

c)

Defining rules in a programming language

d)

Gathering data and labels

8.

What does a model represent in machine learning?

a)

The binary compiled code in traditional programming

b)

The rules inferred from the data and labels

c)

The distinct patterns that denote a particular activity

d)

The item created from the data and labels

9.

What is the purpose of training a neural network?

a)

To measure the loss value

b)

To make guesses using the optimizer

c)

To learn the relationship between input and output data

d)

To specify the number of epochs

10.

What is the purpose of the model.train method?

a)

a) To calculate the relationship between X and Y

b)

b) To make predictions for unknown X values

c)

c) To evaluate the accuracy of the model

d)

d) To train the model

11.

How is the model used at runtime in machine learning?

a)

The model is compiled into a binary program.

b)

The model is used to gather data and labels.

c)

The model is used to make predictions based on the inferred rules.

d)

The model is used to define activity types.

12.

How does machine learning differ from traditional programming in terms of rules?

a)

Machine learning infers rules from data and labels, while traditional programming defines rules in a programming language.

b)

Machine learning defines rules in a programming language, while traditional programming infers rules from data and labels.

c)

Machine learning eliminates the need for rules, while traditional programming heavily relies on defined rules.

d)

Machine learning and traditional programming both use predefined rules.

13.

What is the code import statement for TensorFlow?

a)

import tensorflow as tf

b)

import numpy as np

c)

import keras

d)

from tensorflow import keras

14.

What is the label associated with a sneaker in the Fashion MNIST dataset?

a)

a) 2

b)

b) 5

c)

c) 7

d)

d) 9

15.

What is the term used to describe the answers provided along with the data in machine learning?

a)

Labels

b)

Rules

c)

Programming code

d)

Models

16.

What is the main characteristic of neural networks when dealing with predictions?

a)

a) Certainties

b)

b) Probabilities

c)

c) Exact values

d)

d) Randomness

17.

What is the purpose of the model.predict method?

a)

a) To train the model

b)

b) To calculate the relationship between X and Y

c)

c) To make predictions for unknown X values

d)

d) To evaluate the accuracy of the model

18.

What does the loss value indicate during training?

a)

The accuracy of the neural network

b)

The number of epochs completed

c)

The size of the input data

d)

How good or bad the neural network is performing

19.

Where can you learn more about TensorFlow?

a)

a) TensorFlow.org

b)

b) Google AI-ML course data

c)

c) Compiling layers and neurons

d)

d) Measuring how well the network performs

20.

What is the advantage of using machine learning over traditional programming?

a)

Machine learning allows for the creation of new scenarios that may not have been possible with traditional programming.

b)

Machine learning enables the compilation of binary programs.

c)

Machine learning simplifies the process of defining rules in a programming language.

d)

Machine learning eliminates the need for data labeling.

21.

What is the label associated with a coat in the Fashion MNIST dataset?

a)

a) 0

b)

b) 4

c)

c) 7

d)

d) 9

22.

What is the result of the model.predict method?

a)

a) A certainty value

b)

b) A probability value

c)

c) The actual Y value

d)

d) The X value

23.

What is the main task of machine learning?

a)

Inferring rules from data and labels

b)

Compiling binary programs

c)

Defining rules in a programming language

d)

Gathering data and labels

24.

Why is the predicted value of Y slightly different from 31?

a)

a) The model is not accurate

b)

b) The code is incorrect

c)

c) Neural networks deal with probabilities

d)

d) The data points are insufficient

25.

What is the role of the model.fit() call?

a)

To specify the number of epochs for training

b)

To measure the loss value for each epoch

c)

To train the neural network by adjusting the weights and biases

d)

To make guesses using the optimizer

26.

What is the role of layers in a neural network?

a)

a) To define the relationship between two sets of numbers

b)

b) To compile neurons

c)

c) To generate new parameters for new guesses

d)

d) To handle the process of guessing the relationship between the numbers

27.

What does the optimizer do during training?

a)

Prints out the loss value for each epoch

b)

Measures the accuracy of the neural network

c)

Adjusts the weights and biases to improve performance

d)

Specifies the number of epochs for training

28.

What is the importance of having more data points for training the model?

a)

a) It improves the accuracy of the model

b)

b) It decreases the accuracy of the model

c)

c) It has no effect on the model's accuracy

d)

d) It makes the model more complex

29.

What is the size of each clothing item image in the Fashion MNIST dataset?

a)

a) 28x28

b)

b) 30x30

c)

c) 32x32

d)

d) 24x24

30.

What is the relationship between the X and Y variables in the provided data?

a)

Y = 3X + 1

b)

Y = 2X + 1

c)

Y = X + 3

d)

Y = X - 1

31.

What is the label associated with an ankle boot in the Fashion MNIST dataset?

a)

a) 2

b)

b) 4

c)

c) 7

d)

d) 9

32.

Is it necessary to complete all 500 epochs in the given example?

a)

Yes, all 500 epochs must be completed for accurate results

b)

No, the loss value becomes small enough after 50 epochs

c)

It depends on the size of the input data

d)

The example does not mention the necessity of completing all epochs

33.

What is the purpose of the Sequential model in the given code?

a)

a) To define the sequence of layers in the neural network

b)

b) To flatten the input data

c)

c) To add a layer of neurons

d)

d) To apply activation functions to each layer

34.

What does the Flatten layer do in the model?

a)

a) Turns a square into a one-dimensional vector

b)

b) Adds a layer of neurons

c)

c) Applies the relu activation function

d)

d) Picks the biggest value from a set of values

35.

What is the purpose of the test set in machine learning?

a)

To evaluate the model's performance on unseen data

b)

To train the model on new data

c)

To improve the accuracy of the model

d)

To validate the model's training process

36.

Which layer in the model applies the softmax activation function?

a)

a) Flatten

b)

b) Dense

c)

c) Sequential

d)

d) Softmax

37.

How can you assess the model's performance on the test set?

a)

By calling model.evaluate() and passing in the test set

b)

By calling model.predict() and passing in the test set

c)

By calling model.fit() and passing in the test set

d)

By calling model.compile() and passing in the test set

38.

What is the purpose of compiling the model?

a)

a) To build the model

b)

b) To train the model

c)

c) To optimize the model

d)

d) To evaluate the model

39.

What does the activation function relu do if the input is less than 0?

a)

a) Returns the input value

b)

b) Returns 0

c)

c) Returns 1

d)

d) Returns -1

40.

What is the purpose of convolutions in machine learning?

a)

To extract important features from data

b)

To blur inessential features in data

c)

To detect specific patterns in data

d)

All of the above

41.

What is the purpose of pooling in image classification?

a)

To reduce the overall amount of information in an image

b)

To increase the size of the image

c)

To detect features in the image

d)

To remove all features from the image

42.

What does the activation function softmax do if the output of the last layer is [0.1, 0.1, 0.05, 0.1, 9.5, 0.1, 0.05, 0.05, 0.05]?

a)

a) Returns [0,0,0,0,1,0,0,0,0]

b)

b) Returns [0.1, 0.1, 0.05, 0.1, 9.5, 0.1, 0.05, 0.05, 0.05]

c)

c) Returns [0.05, 0.05, 0.05, 0.1, 0.1, 0.1, 0.1, 0.1, 0.1]

d)

d) Returns [0,0,0,0,0,0,0,0,1]

43.

What is the purpose of the activation function relu?

a)

a) To flatten the input data

b)

b) To add a layer of neurons

c)

c) To turn a square into a one-dimensional vector

d)

d) To pass values of 0 or greater to the next layer in the network

44.

What is the role of data labeling in machine learning?

a)
Data labeling is only used for visualizing data in machine learning
b)
The role of data labeling in machine learning is to provide labeled data for training and validating machine learning models.
c)
Data labeling is not necessary for machine learning
d)
Data labeling is only used for debugging machine learning models
45.

What is the purpose of the activation function sigmoid in a neural network?

a)

a) To return values between 0 and 1

b)

b) To return values between -1 and 1

c)

c) To return binary values

d)

d) To return the input value

46.

How does regularization help prevent overfitting in machine learning models?

a)

a) By penalizing large weights in the model

b)

b) By increasing the complexity of the model

c)

c) By reducing the number of epochs during training

d)

d) By removing outliers from the dataset

47.

What is the role of the loss function in training a neural network?

a)

a) To adjust the weights and biases of the model

b)

b) To calculate the accuracy of the model

c)

c) To determine the learning rate of the optimizer

d)

d) To visualize the training process

48.

What is the purpose of the activation function tanh in a neural network?

a)

a) To return values between -1 and 1

b)

b) To return values between 0 and 1

c)

c) To return binary values

d)

d) To return the input value

49.

What is the role of the validation set in machine learning?

a)

a) To evaluate the model's performance on unseen data

b)

b) To train the model on new data

c)

c) To improve the accuracy of the model

d)

d) To validate the model's training process

50.

How does the activation function softmax differ from sigmoid in a neural network?

a)

a) Softmax returns values between 0 and 1, while sigmoid returns binary values

b)

b) Softmax returns binary values, while sigmoid returns values between 0 and 1

c)

c) Softmax returns the input value, while sigmoid returns values between -1 and 1

d)

d) Softmax returns the maximum value, while sigmoid returns the minimum value