Skip to main content
GAIP • MODULE 5 OF 24 21 Timed Sets • 105 Verified MCQs

Module 5: Machine Learning Fundamentals — GenAI Mock Tests

Master classical Machine Learning engineering with Scikit-learn — knowing when a fast, 1ms $0 ML classifier beats an expensive LLM call: AI vs ML vs DL vs GenAI, supervised/unsupervised/RL overview, features/labels, train/val/test splits, preventing data leakage & overfitting, bias-variance, Linear & Logistic Regression, Decision Trees & Random Forests, KNN, SVM, Naive Bayes, K-Means clustering, Scikit-learn Pipeline/ColumnTransformer scaling & encoding, feature selection, Cross-Validation, hyperparameter tuning, Precision/Recall/F1/ROC-AUC/Confusion Matrix, and MAE/MSE/RMSE.

⚡ START MODULE 5 PRACTICE

Introduction to AI, Machine Learning, Deep Learning and Generative AI

Start your baseline timed assessment for this module

Module 5 Assessment Rules & Format Every Attempt Helps You Improve • Track Your Progress, One Topic at a Time.
Question Bank 105 MCQs
Timed Sets 21 (21 Topics)
Duration 20 min / set
Pass Benchmark 70%
Negative Marking Up to -0.25 / wrong
Daily Access ∞ Unlimited Free

Integrity & Navigation: Questions can be revisited, changed, or flagged for review before final submission; answers auto-save across browser refreshes, and answer keys stay locked server-side until submitted.

Your Module 5 Progress

Completion Status & Revision Focus

Practice Today. Perform Better Tomorrow. No completed attempts recorded in Module 5 yet — start any topic below to generate your topic scorecard and unlock personalized revision suggestions.

Generative AI & Agentic AI • Module 5

Topic-Wise Timed Mock Tests (21 Topics)

Instant scorecard + detailed explanations
Topic 5.1 1 Set

Introduction to AI, Machine Learning, Deep Learning and Generative AI

5 Qs • 20 min • Pass 70%

Topic 5.2 1 Set

Supervised, Unsupervised and Reinforcement Learning Overview

5 Qs • 20 min • Pass 70%

Topic 5.3 1 Set

Features, Labels and Tabular/Text Datasets

5 Qs • 20 min • Pass 70%

Topic 5.4 1 Set

Training, Validation and Testing Datasets

5 Qs • 20 min • Pass 70%

Topic 5.5 1 Set

Data Leakage and Overfitting

5 Qs • 20 min • Pass 70%

Topic 5.6 1 Set

Underfitting, Bias-Variance Trade-Off and Generalization

5 Qs • 20 min • Pass 70%

Topic 5.7 1 Set

Linear Regression (OLS, Ridge and Lasso)

5 Qs • 20 min • Pass 70%

Topic 5.8 1 Set

Logistic Regression

5 Qs • 20 min • Pass 70%

Topic 5.9 1 Set

Decision Trees and Random Forests

5 Qs • 20 min • Pass 70%

Topic 5.10 1 Set

K-Nearest Neighbors (KNN)

5 Qs • 20 min • Pass 70%

Topic 5.11 1 Set

Support Vector Machines (SVM)

5 Qs • 20 min • Pass 70%

Topic 5.12 1 Set

Naive Bayes (Multinomial and Complement NB)

5 Qs • 20 min • Pass 70%

Topic 5.13 1 Set

Clustering and K-Means

5 Qs • 20 min • Pass 70%

Topic 5.14 1 Set

Feature Scaling and Categorical Encoding (ColumnTransformer)

5 Qs • 20 min • Pass 70%

Topic 5.15 1 Set

Feature Selection

5 Qs • 20 min • Pass 70%

Topic 5.16 1 Set

Cross-Validation (Stratified K-Fold)

5 Qs • 20 min • Pass 70%

Topic 5.17 1 Set

Hyperparameter Tuning (GridSearchCV and RandomizedSearchCV)

5 Qs • 20 min • Pass 70%

Topic 5.18 1 Set

Classification Metrics: Accuracy, Precision, Recall, F1 and Confusion Matrix

5 Qs • 20 min • Pass 70%

Topic 5.19 1 Set

Regression Metrics: MAE, MSE, RMSE and R-Squared

5 Qs • 20 min • Pass 70%

Topic 5.20 1 Set

Gradient Boosted Trees (XGBoost & LightGBM) & Tabular Ensembling Trade-Offs

5 Qs • 20 min • Pass 70%

Topic 5.21 1 Set

Model Calibration, ROC-AUC vs PR-AUC & Imbalanced-Class Threshold Optimization

5 Qs • 20 min • Pass 70%

Sample Module 5 Practice Preview

Sample Machine Learning Fundamentals MCQ Questions & Answers

Click “Reveal Answer & Explanation” to check yourself
Q1 • Introduction to AI, Machine Learning, Deep Learning and Generative AI Module 5 Sample

In production Machine Learning (Scikit-learn), what is the primary engineering purpose of 'Introduction to AI, Machine Learning, Deep Learning and Generative AI'?

  • A. Using deterministic SQL/rules first, classical ML for tabular/fast routing, and LLMs/RAG for open-ended reasoning & synthesis.
  • B. Exposing raw unredacted LLM API keys inside client-side browser bundles.
  • C. Running eval() directly on untrusted LLM JSON strings in production.
  • D. Skipping tenant ACL filters and golden evaluation checks to ship faster.
✓ Reveal Answer & Explanation

Correct Answer: Option A

'Introduction to AI, Machine Learning, Deep Learning and Generative AI' is applied in production Machine Learning (Scikit-learn) specifically for: Using deterministic SQL/rules first, classical ML for tabular/fast routing, and LLMs/RAG for open-ended reasoning & synthesis.

Q2 • Introduction to AI, Machine Learning, Deep Learning and Generative AI Module 5 Sample

Which critical production pitfall MUST a Generative AI Engineer avoid when implementing 'Introduction to AI, Machine Learning, Deep Learning and Generative AI'?

  • A. Validating schemas with Pydantic v2 and running deterministic pytest checks.
  • B. Calling a slow $0.01 LLM prompt to predict tabular churn when a 0.2ms Random Forest is more accurate and 10,000x cheaper!
  • C. Measuring retrieval Recall@K, Faithfulness, latency, and USD cost per 1k requests.
  • D. Understanding underlying Python, vector, and API mechanics before using frameworks.
✓ Reveal Answer & Explanation

Correct Answer: Option B

A high-impact real-world failure mode with 'Introduction to AI, Machine Learning, Deep Learning and Generative AI' is: Calling a slow $0.01 LLM prompt to predict tabular churn when a 0.2ms Random Forest is more accurate and 10,000x cheaper!

Q3 • Introduction to AI, Machine Learning, Deep Learning and Generative AI Module 5 Sample

Which technical scope accurately captures the first-principles mechanics of 'Introduction to AI, Machine Learning, Deep Learning and Generative AI'?

  • A. Training a 1-trillion-parameter frontier foundation model from scratch on 10,000 GPUs.
  • B. Storing plaintext database passwords inside LLM system prompts.
  • C. Nested hierarchy: AI -> ML (learns from data) -> Deep Learning (representation learning) -> Generative AI (models generating text/code/media), and choosing the simplest tool that solves the problem
  • D. Disabling timeouts, retries, and max-step loop guards on external APIs.
✓ Reveal Answer & Explanation

Correct Answer: Option C

Core technical coverage of 'Introduction to AI, Machine Learning, Deep Learning and Generative AI' comprises: Nested hierarchy: AI -> ML (learns from data) -> Deep Learning (representation learning) -> Generative AI (models generating text/code/media), and choosing the simplest tool that solves the problem.

Q4 • Introduction to AI, Machine Learning, Deep Learning and Generative AI Module 5 Sample

What is the expected practical engineering deliverable when completing the hands-on lab for 'Introduction to AI, Machine Learning, Deep Learning and Generative AI'?

  • A. Pushing untested notebook cells with hardcoded API keys to main.
  • B. Relying on 2 manual chat vibe-checks with zero edge-case or negative tests.
  • C. Ignoring token budgets, multi-tenant isolation, and error handling.
  • D. Classify 8 real business problems across Rule-Based, Tabular ML, Predictive NLP, RAG, and AI Agent solutions.
✓ Reveal Answer & Explanation

Correct Answer: Option D

Practical mastery of 'Introduction to AI, Machine Learning, Deep Learning and Generative AI' is verified through: Classify 8 real business problems across Rule-Based, Tabular ML, Predictive NLP, RAG, and AI Agent solutions.

Q5 • Introduction to AI, Machine Learning, Deep Learning and Generative AI Module 5 Sample

In a Generative AI Engineer technical interview on 'Introduction to AI, Machine Learning, Deep Learning and Generative AI', what demonstrates senior production readiness?

  • A. Explaining 'Nested hierarchy: AI -> ML (learns from data) -> Deep Learning (representation learning) -> Generative AI (models generating text/code/media), and choosing the simplest tool that solves the problem' from first principles in Pyth...
  • B. Calling a black-box framework one-liner without knowing how retrieval, prompts, or tool schemas work underneath.
  • C. Using fine-tuning for rapidly changing daily facts that require per-user RBAC permissions.
  • D. Trusting prompt instructions alone as an authorization boundary.
✓ Reveal Answer & Explanation

Correct Answer: Option A

Interviewers test first-principles Python understanding (Nested hierarchy: AI -> ML (learns from data) -> Deep Learning (representation learning) -> Generative AI (models generating text/code/media), and choosing the simplest tool that solves the problem), guardrail awareness, and measured trade-offs.

Need structured guidance on Machine Learning Fundamentals? Review the full GAIP syllabus or practise speaking through GenAI concepts in an AI technical interview.

Generative AI & Agentic AI Engineering

Continue Learning & Explore Related Resources

FAQs — Module 5: Machine Learning Fundamentals (GenAI) Mock Tests

1. How many MCQ Mock Tests are included in Module 5: Machine Learning Fundamentals (GenAI)?

Module 5 of Generative AI & Agentic AI Training Course (Python) includes 21 active timed MCQ mock test sets (105 verified questions across 21 topics), with server-side scoring, instant scorecards, and detailed explanations after submission.

2. What are the attempt rules and answer-key policies for Machine Learning Fundamentals mock tests?

You can preview sample questions on this page and launch up to 2 free timed attempts per topic per day without signup (enrolled cohort learners receive unlimited attempts). During a live test, answers auto-save across refreshes and answer keys remain protected on the server until submission.

3. Does scoring high on this GenAI module test guarantee interview selection?

No — module mock scores measure topic-level conceptual accuracy and highlight specific concepts to revise. Pair topic mocks with GAIP Spoken AI Interviews and hands-on coding practice to build well-rounded interview readiness; hiring decisions rest independently with employers.

Learn. Practise. Prove. Get Career-Ready.

Ready to Build Your IT Career?

Explore industry-led programmes and develop practical skills through training, assessments and interview preparation.