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 API in Keras is primarily used to arrange layers in a linear stack?
a. Functional API
b. Sequential API
c. Layer API
d. Tensor API
Answer: b. Sequential APIincludehelp+2 - What is a limitation of the Keras Sequential API?
a. Cannot process images
b. Cannot handle models with multiple inputs/outputs
c. Only supports convolutional layers
d. Cannot train neural networks
Answer: b. Cannot handle models with multiple inputs/outputspub.aimind+1 - Which method is typically used to add layers in a Keras Sequential model?
a. insert()
b. append()
c. add()
d. plug()
Answer: c. add()geeksforgeeks+2 - What type of data flow does the Sequential API support?
a. Bidirectional
b. Random
c. Linear
d. Non-deterministic
Answer: c. Lineartensorflow+2 - Which API would you use for building custom models with non-linear connections in Keras?
a. Sequential API
b. Layer API
c. Functional API
d. Task API
Answer: c. Functional APIpub.aimind+1 - What is the minimum number of input and output tensors allowed in a Sequential API layer?
a. Zero
b. One
c. Two
d. Unlimited
Answer: b. Onekeras+2 - Which of the following is best suited for prototyping simple neural network models?
a. Model subclassing
b. Functional API
c. Sequential API
d. Custom API
Answer: c. Sequential APIcloudskillsboost+1 - What happens if you try to add multiple input layers in Keras Sequential API?
a. Throws an error
b. Combines them automatically
c. Uses only last added input
d. Merges input features
Answer: a. Throws an errorgeeksforgeeks+1 - In which case would you prefer the Sequential API over the Functional API?
a. Multiple outputs
b. Simple feedforward network
c. Recurrent connections
d. Custom loss computation
Answer: b. Simple feedforward networkpub.aimind+1 - Which command initializes a Keras Sequential model?
a. model = Layer()
b. model = Sequential()
c. model = Model()
d. model = Node()
Answer: b. model = Sequential()keras+2 - Which of the following tasks can the Sequential API handle efficiently?
a. Sequence-to-sequence translation
b. Single-input single-output regression
c. Multi-task learning
d. Multi-modal input
Answer: b. Single-input single-output regressiongeeksforgeeks+1 - What is a common use-case for the Sequential API in AI?
a. Generative Adversarial Networks
b. Simple CNNs for image classification
c. Multi-branch networks
d. Networks with skip connections
Answer: b. Simple CNNs for image classificationpub.aimind+1 - Which method is used to train a Keras Sequential model?
a. .predict()
b. .fit()
c. .evaluate()
d. .compile()
Answer: b. .fit()keras+1 - Sequential API models must have which kind of architecture?
a. Directed Acyclic
b. Layered with multiple branches
c. Strictly linear
d. Graph-based
Answer: c. Strictly lineargeeksforgeeks+2 - Can the Keras Sequential API support recurrent layers?
a. Yes
b. No
c. Only with subclassing
d. Only in Functional API
Answer: a. Yeskeras+1 - Which method is used to compile a Keras Sequential model before training?
a. .start()
b. .initialize()
c. .compile()
d. .run()
Answer: c. .compile()geeksforgeeks+1 - What happens if you try to add a layer to a Sequential model after calling .fit()?
a. Updates the model
b. Raises an error
c. Automatically retrains
d. Removes previous layers
Answer: b. Raises an errorpub.aimind - What is the first layer in a Keras Sequential model often called?
a. Dense layer
b. Output layer
c. Input layer
d. Flatten layer
Answer: c. Input layerkeras+1 - Which of the following layers cannot be the first layer in a Sequential API model?
a. InputLayer
b. Dense
c. Conv2D
d. OutputLayer
Answer: d. OutputLayerpub.aimind+1 - The Sequential API in Keras is best for which model type?
a. Models with shared layers
b. Simple left-to-right neural networks
c. Networks with merging branches
d. Models with multiple outputs
Answer: b. Simple left-to-right neural networksgeeksforgeeks+1 - What must you do after building a Sequential model but before training?
a. Call .predict()
b. Call .fit()
c. Call .evaluate()
d. Call .compile()
Answer: d. Call .compile()keras+1 - Which Keras API would you use to build a multi-input model?
a. Layer API
b. Task API
c. Functional API
d. Sequential API
Answer: c. Functional APIpub.aimind+1 - Which framework’s Sequential API is widely used in building deep learning models?
a. React
b. TensorFlow/Keras
c. Angular
d. Flask
Answer: b. TensorFlow/Kerastensorflow+1 - What does the following code return: model = Sequential([Dense(10), Dense(1)])?
a. Error
b. Two-layer neural network
c. Single-layer neural network
d. Pre-trained model
Answer: b. Two-layer neural networkkeras+1 - Which layer can be added directly to a Sequential API model?
a. InputLayer
b. OutputLayer
c. Dropout
d. All of the above
Answer: d. All of the abovegeeksforgeeks+1 - What happens if you do not provide an input shape in the first layer of a Sequential model?
a. Model auto-infers
b. Throws an error when fitting
c. Uses default shape
d. Ignores the first layer
Answer: b. Throws an error when fittingpub.aimind+1 - The Sequential API can be used for which domain?
a. NLP
b. Computer Vision
c. Time Series
d. All of the above
Answer: d. All of the abovetelnyx+2 - What is the core advantage of the Sequential API?
a. Flexibility
b. Simplicity
c. Reusability
d. Multi-tasking
Answer: b. Simplicitygeeksforgeeks+1 - In AI, a model developed with Sequential API processes data in which manner?
a. Parallel
b. Random
c. Sequential
d. Hierarchical
Answer: c. Sequentialpub.aimind+1 - If you want to build a model with a single path of layers, which API fits your need best?
a. Functional
b. Model Subclassing
c. Sequential
d. Transformer
Answer: c. Sequentialgeeksforgeeks+1 - Which of these is NOT a benefit of using Sequential API?
a. Easy debugging
b. Quick prototyping
c. Multiple merging branches
d. Linear architecture
Answer: c. Multiple merging branchespub.aimind+1 - Which programming language is most associated with Sequential API in AI?
a. Java
b. Python
c. C++
d. Ruby
Answer: b. Pythonkeras+1 - In the context of AI, sequence modeling refers to:
a. Modeling independent data
b. Modeling spatial data
c. Modeling ordered data
d. Modeling random data
Answer: c. Modeling ordered datatelnyx+1 - What is a key application of sequence modeling in AI?
a. Static image recognition
b. Sentiment analysis
c. Clustering
d. Static classification
Answer: b. Sentiment analysistelnyx - Which model is commonly used for sequence data in deep learning?
a. CNN
b. SVM
c. RNN
d. DNN
Answer: c. RNNfreshersnow+1 - What is the function of ‘state’ or ‘memory’ in sequential models?
a. Increasing speed
b. Retaining information from previous inputs
c. Reducing layers
d. Enhancing hardware
Answer: b. Retaining information from previous inputstelnyx - Which neural network is especially effective for sequential data?
a. GAN
b. CNN
c. RNN
d. ResNet
Answer: c. RNNfreshersnow+1 - Which recent architecture enhances long-range dependency modeling in sequence tasks?
a. Autoencoder
b. Transformer
c. KNN
d. Decision tree
Answer: b. Transformertelnyx - In which domain are sequence models like RNN and Transformers extensively used?
a. Image compression
b. Natural language processing
c. Linear regression
d. Static clustering
Answer: b. Natural language processingtelnyx - Which method is used to evaluate a trained Sequential API model?
a. .fit()
b. .predict()
c. .evaluate()
d. .start()
Answer: c. .evaluate()keras+1 - The Sequential API is inappropriate if your model:
a. Has a linear flow
b. Needs to share layers
c. Requires only one input and one output
d. Uses dense layers
Answer: b. Needs to share layersgeeksforgeeks+1 - Which layer in Keras Sequential API is used to prevent overfitting?
a. Input
b. Dense
c. Dropout
d. Output
Answer: c. Dropoutkeras - How do you specify input shape in a Sequential model?
a. input_shape argument in first layer
b. input_dim argument in last layer
c. input_layer() function
d. add_input() method
Answer: a. input_shape argument in first layerkeras - What is the primary design philosophy of Sequential API?
a. Flexibility
b. Modularity
c. Simplicity
d. Scalability
Answer: c. Simplicitypub.aimind+1 - Can you use the Sequential API for regression problems?
a. Yes
b. No
c. Only classification
d. Yes, with Functional API only
Answer: a. Yespub.aimind+1 - What does .summary() method do in a Sequential API model?
a. Prints current results
b. Compiles the model
c. Prints a model architecture overview
d. Trains the model
Answer: c. Prints a model architecture overviewkeras - A Sequential API model can be exported to which format?
a. .h5
b. .txt
c. .csv
d. .xls
Answer: a. .h5geeksforgeeks+1 - What is a challenge when using Sequential API for advanced research?
a. Too complex for edits
b. Limited flexibility
c. Too slow
d. Not supported by TensorFlow
Answer: b. Limited flexibilitygeeksforgeeks+1 - In Sequential API, what is each non-input/output layer called?
a. Output
b. Dense
c. Hidden layer
d. Kernel
Answer: c. Hidden layerkeras - Which of the following best describes the Keras Sequential API?
a. Single-path, layer-by-layer modeling
b. Multi-path, complex graph modeling
c. Ensemble modeling
d. Decision tree modeling
Answer: a. Single-path, layer-by-layer modelingpub.aimind+2
- https://www.includehelp.com/mcq/keras-mcqs.aspx
- https://pub.aimind.so/demystifying-tensorflows-sequential-api-and-functional-api-a-comprehensive-guide-c68689df40ba
- https://www.geeksforgeeks.org/deep-learning/sequential-vs-functional-api-in-keras/
- https://keras.io/guides/sequential_model/
- https://www.tensorflow.org/guide/keras/sequential_model
- https://www.cloudskillsboost.google/focuses/19326?parent=catalog
- https://telnyx.com/learn-ai/sequence-modeling
- https://www.freshersnow.com/artificial-intelligence-mcqs-and-answers-with-explanation/
- https://www.sanfoundry.com/artificial-intelligence-questions-answers/
- https://testbook.com/objective-questions/mcq-on-artificial-intelligence–5eea6a0d39140f30f369e30e
- https://www.interviewbit.com/artificial-intelligence-mcq/
- https://www.javaguides.net/2024/09/artificial-intelligence-mcq-questions.html
- https://arxiv.org/abs/2507.09481
- https://www.scribd.com/document/737189591/Artificial-Intelligence-MCQ-unit1-2
- https://aimcqs.com/recurrent-neural-networks
- https://www.youtube.com/watch?v=0v0MgTy425I
- https://www.sanfoundry.com/artificial-intelligence-mcqs-problem-solving-1/
- https://partner.cloudskillsboost.google/paths/84/course_templates/12/video/512779?locale=tr
- https://intuitivetutorial.com/2023/05/18/sequential-api-and-functional-api-in-keras/
- https://arya.ai/blog/what-are-ai-apis-and-how-do-they-work