Disclaimer:
Educational Use Only:
The website links provided are to be used strictly for educational and knowledge-gaining purposes only.
No Misuse:
Do not misuse the links or the information contained therein for any commercial, illegal, or unethical activities.
Respect for Websites and Businesses:
Respect the intellectual property and business interests of the websites and their owners. Do not attempt to alter, copy, or redistribute content without proper authorization.
Acknowledge Value of Knowledge:
Recognize and value the knowledge and resources shared by these websites. Use the information responsibly and ethically.
No Endorsement:
The provision of these links does not imply endorsement of the linked sites, their content, or their products and services. Users are responsible for evaluating the suitability and accuracy of the information.
User Responsibility:
By accessing these links, you agree to use the information at your own risk and to comply with all applicable laws and website terms of use.
Overall MCQs for Reference
- Which of the following is the primary purpose of Keras?
a. To create low-level machine learning algorithms
b. To simplify the building and training of deep learning models
c. To serve as a database
d. To manage hardware
Answer: b. To simplify the building and training of deep learning modelsgeeksforgeeks - Keras is written in which programming language?
a. Java
b. C++
c. Python
d. Ruby
Answer: c. Pythonfreetimelearning - Who developed Keras?
a. Andrew Ng
b. Ian Goodfellow
c. François Chollet
d. Geoffrey Hinton
Answer: c. François Cholletincludehelp - Keras can run on top of which machine learning platform?
a. CNTK
b. TensorFlow
c. Theano
d. All of the above
Answer: d. All of the aboveincludehelp+1 - Which company is TensorFlow associated with?
a. Microsoft
b. IBM
c. Google
d. Facebook
Answer: c. Googleincludehelp - What kind of neural networks does Keras support?
a. Only convolutional
b. Only recurrent
c. Both convolutional and recurrent
d. None
Answer: c. Both convolutional and recurrentincludehelp - What is the Keras Sequential API used for?
a. Arranging layers in parallel
b. Arranging layers in sequential order
c. Data preprocessing
d. Loss calculation
Answer: b. Arranging layers in sequential orderincludehelp - How many backend engines does Keras consist of by default?
a. 1
b. 3
c. 5
d. 2
Answer: b. 3includehelp - What is the main advantage of using Keras?
a. Complexity
b. User-friendliness
c. High memory usage
d. No support for layers
Answer: b. User-friendlinesstheaiops - Which Keras model is better for a densely-connected network?
a. Sequential model
b. Functional API model
c. Transfer learning model
d. None
Answer: a. Sequential modelincludehelp - What topology can Keras functional API handle?
a. Only linear
b. Only non-linear
c. Both linear and non-linear
d. None
Answer: c. Both linear and non-linearmlstack+1 - Does Keras allow you to create custom layers?
a. Yes
b. No
c. Only with TensorFlow
d. Only with Theano
Answer: a. Yesgithub+1 - Which of the following is NOT a backend supported by Keras?
a. TensorFlow
b. Theano
c. PyTorch
d. CNTK
Answer: c. PyTorchscribd - What is a Lambda layer in Keras used for?
a. Repeating input
b. Arbitrary expressions
c. Normalization
d. Dense connections
Answer: b. Arbitrary expressionsincludehelp - What does the Embedding layer in Keras support?
a. Convolutions
b. Masking
c. Dropout
d. Pooling
Answer: b. Maskingincludehelp - What is the default data format for images in Keras?
a. Channels_last
b. Channels_first
c. RGB
d. Binary
Answer: a. Channels_lastdevopsschool - What is the main data structure of Keras?
a. Layer
b. Model
c. Optimizer
d. Metric
Answer: b. Modelgithub - Which Keras function is used to predict output for new data?
a. fit()
b. evaluate()
c. predict()
d. compile()
Answer: c. predict()includehelp - What does the fit() method do in Keras?
a. Evaluates model
b. Predicts output
c. Trains model
d. Visualizes model
Answer: c. Trains modelfreetimelearning - Which principle does Keras follow?
a. Modularity
b. User-friendliness
c. Extensibility
d. All of the above
Answer: d. All of the aboveincludehelp - What kind of library is Theano to Keras?
a. Visualization library
b. Mathematical operation library
c. Pre-trained model library
d. Dataset library
Answer: b. Mathematical operation libraryincludehelp - What does the compile() method in Keras do?
a. Initializes model weights
b. Sets up training configuration
c. Disables model layers
d. Activates GPU
Answer: b. Sets up training configurationgithub - What are the main types of Keras models?
a. Sequential and Functional
b. Recurrent and Convolutional
c. Discrete and Continuous
d. None
Answer: a. Sequential and Functionalgithub - Which of the following is true about Keras layers?
a. Only supports Dense layers
b. Supports multiple types of layers
c. Only supports Convolutional layers
d. Only supports Recurrent layers
Answer: b. Supports multiple types of layersfreetimelearning+1 - Which Keras method is used for model evaluation?
a. fit()
b. evaluate()
c. predict()
d. compile()
Answer: b. evaluate()freetimelearning - What is the Keras functional API best for?
a. Fixed architecture
b. Complex, non-linear models
c. Only CNNs
d. Only RNNs
Answer: b. Complex, non-linear modelsmlstack+1 - Which layer would you use to change the shape of input?
a. Dropout
b. Dense
c. Flatten
d. Reshape
Answer: d. Reshapeincludehelp - What is needed before calling fit() in Keras?
a. Model compilation
b. Data splitting
c. Training data normalization
d. GPU initialization
Answer: a. Model compilationgithub - Keras provides which type of support for data augmentation?
a. Built-in
b. Third-party library only
c. Not supported
d. Requires Theano
Answer: a. Built-intheaiops - What does the Dropout layer in Keras do?
a. Increases accuracy
b. Reduces overfitting
c. Adds more layers
d. Removes loss
Answer: b. Reduces overfittingtheaiops+1 - Which optimizer is NOT in Keras by default?
a. SGD
b. Adam
c. RMSprop
d. LBFGS
Answer: d. LBFGSgithub - For multi-class classification, which activation function is commonly used in the output layer?
a. Sigmoid
b. Softmax
c. ReLU
d. Tanh
Answer: b. Softmaxgithub - What is early stopping in Keras?
a. More epochs
b. Halts training on improvement
c. Stops when accuracy drops
d. Ignores loss
Answer: b. Halts training on improvementdevopsschool+1 - Which Keras layer can be used to repeat the input n times?
a. Flatten
b. RepeatVector
c. Embedding
d. Lambda
Answer: b. RepeatVectorincludehelp - What is the primary advantage of using Keras over other libraries?
a. No GPU support
b. Fast experimentation
c. Deprecated features
d. No modularity
Answer: b. Fast experimentationfreetimelearning - Which method saves a trained Keras model?
a. save()
b. dump()
c. export()
d. backup()
Answer: a. save()github - Keras models can run on which hardware?
a. CPUs only
b. GPUs and TPUs
c. No hardware required
d. Only Linux systems
Answer: b. GPUs and TPUsdevopsschool+1 - What is the purpose of validation_data in fit()?
a. Updates weights
b. Monitors performance
c. Sets learning rate
d. Compiles model
Answer: b. Monitors performancegithub - Can Keras models be exported for use in browsers?
a. Yes
b. No
c. Only with PyTorch
d. Only on Windows
Answer: a. Yesdevopsschool - Which layer acts as a base class for Keras recurrent layers?
a. Dense
b. Flatten
c. RNN
d. Embedding
Answer: c. RNNincludehelp - Which Keras function helps detect learning deviations or faults?
a. predict()
b. fit()
c. Keras loss function
d. compile()
Answer: c. Keras loss functionincludehelp - What is a popular data generator utility in Keras?
a. ImageDataGenerator
b. DataFrameGenerator
c. TensorGenerator
d. ArrayFeed
Answer: a. ImageDataGeneratorgithub - Which Keras layer enables time-distributed computation in neural networks?
a. TimeDistributed
b. Sequential
c. Dense
d. Flatten
Answer: a. TimeDistributedgithub - Does Keras support multiple platforms?
a. Yes
b. No
c. Only Windows
d. Only Linux
Answer: a. Yesincludehelp - What is batch_size in Keras used for?
a. Number of features
b. Size of one batch for training
c. Dataset splitting
d. Loss calculation
Answer: b. Size of one batch for traininggithub - Which functional API argument connects layers?
a. inputs and outputs
b. classes and features
c. weights and biases
d. metrics and losses
Answer: a. inputs and outputsmlstack+1 - Keras provides which loss function for regression?
a. binary_crossentropy
b. categorical_crossentropy
c. mean_squared_error
d. sparse_categorical_crossentropy
Answer: c. mean_squared_errorgithub - Which of the following best describes Keras?
a. Low-level API
b. High-level API
c. Old API
d. Video API
Answer: b. High-level APIvskills+1 - Keras supports which type of model deployment?
a. Cloud only
b. Mobile, Cloud, Browser
c. Desktop only
d. None
Answer: b. Mobile, Cloud, Browserdevopsschool - How can layers be customized in Keras?
a. Custom Class Layer
b. Lambda Layer
c. Only Dense Layer
d. Both a and b
Answer: d. Both a and bgithub+1
- https://www.geeksforgeeks.org/quizzes/introduction-to-tensorflow-and-keras/
- https://www.freetimelearning.com/online-quiz/keras-mcq.php
- https://www.includehelp.com/mcq/keras-mcqs.aspx
- https://www.theaiops.com/top-keras-interview-questions-with-answers/
- https://www.mlstack.cafe/blog/keras-interview-questions
- https://github.com/Devinterview-io/keras-interview-questions
- https://www.scribd.com/document/493946765/eBook-Deep-Learning-Objective-Type-Questions
- https://www.devopsschool.com/blog/top-50-interview-questions-and-answers-of-keras/
- https://www.vskills.in/interview-questions/keras-interview-questions
- https://www.freshersnow.com/keras-mcqs-and-answers-with-explanation/
- https://www.adaface.com/assessment-test/keras-test
- https://www.gyansetu.in/blog/machine-learning-mcq-interview-preparation/
- https://devinterview.io/questions/machine-learning-and-data-science/keras-interview-questions/
- https://cloudxlab.com/assessment/displayslide/5891/mcq-the-deep-learning-models-from-keras-applications
- https://statinfer.com/20-multiple-choice-questions-on-tensorflow/
- https://www.scribd.com/document/653675052/DL-Mcq
- https://www.kaggle.com/code/saikiranvepamani/keras-api-project-exercise
- https://www.imocha.io/tests/keras-online-test
- https://www.vskills.in/interview-questions/deep-learning-with-keras-interview-questions
- https://www.sanfoundry.com/1000-machine-learning-questions-answers/