Keras MCQ Questions & Answers
Keras MCQs : This section focuses on "Basics" of Keras. These Multiple Choice Questions (MCQ) should be practiced to improve the Keras skills required for various interviews (campus interview, walk-in interview, company interview), placements, entrance exams and other competitive examinations.
1. _________ is a high level API built on TensorFlow.
A. PyBrain
B. Keras
C. PyTorch
D. Theano
View Answer
Ans : B
Explanation: Keras is a high level API built on TensorFlow (and can be used on top of Theano too). It is more user-friendly and easy to use as compared to TensofrFlow.
2. Is keras a library?
A. Yes
B. No
C. Can be yes or no
D. Can not say
View Answer
Ans : A
Explanation: Yes, Keras is an open-source neural-network library written in Python.
3. Who invented keras?
A. Michael Berthold
B. Adam Paszke
C. Sam Gross
D. François Chollet
View Answer
Ans : D
Explanation: François Chollet invented Keras and he is currently working as an AI Researcher at Google.
4. __________ is a regularization technique for neural network models proposed by Srivastava, it is a technique where randomly selected neurons are ignored during training.
A. Callout
B. Digout
C. Dropout
D. Knimeout
View Answer
Ans : C
Explanation: Dropout is a regularization technique for neural network models proposed by Srivastava, it is a technique where randomly selected neurons are ignored during training.
5. What is true about Keras?
A. Keras is an API designed for human beings, not machines.
B. Keras follows best practices for reducing cognitive load
C. it provides clear and actionable feedback upon user error
D. All of the above
View Answer
Ans : D
Explanation: Keras is an API designed for human beings, not machines. Keras follows best practices for reducing cognitive load: it offers consistent & simple APIs, it minimizes the number of user actions required for common use cases, and it provides clear and actionable feedback upon user error.
6. A flatten operation on a tensor reshapes the tensor to have a shape that is equal to the number of elements contained in the tensor.
A. TRUE
B. FALSE
C. Can be true or false
D. Can not say
View Answer
Ans : A
Explanation: True, A flatten operation on a tensor reshapes the tensor to have a shape that is equal to the number of elements contained in the tensor.
7. What are advanced activation functions in keras ?
A. LeakyReLU
B. PReLU
C. Both A and B
D. None of the above
View Answer
Ans : C
Explanation: LeakyReLU, PReLU are advanced activation functions in keras.
8. Which of the following are correct initializers in keras?
A. keras.initializers.Initializer()
B. keras.initializers.Zeros()
C. keras.initializers.Ones()
D. All of the above
View Answer
Ans : D
Explanation: All of the above are correct initializers in keras.
9. A ____________ requires shape of the input (input_shape) to understand the structure of the input data.
A. Keras layer
B. Keras Module
C. Keras Model
D. Keras Time
View Answer
Ans : A
Explanation: A Keras layer requires shape of the input (input_shape) to understand the structure of the input data, initializer to set the weight for each input and finally activators to transform the output to make it non-linear.
10. Which of the following returns all the layers of the model as list?
A. model.inputs
B. model.layers
C. model.outputs
D. model.get_weights
View Answer
Ans : B
Explanation: model.layers : Returns all the layers of the model as list.
Discussion