Skip to main content
GAIP • MODULE 4 OF 24 19 Timed Sets • 95 Verified MCQs

Module 4: NumPy, Pandas, Data Visualization and SQL — GenAI Mock Tests

Master high-speed vectorized numerical & tabular data engineering for AI and deliver Month 1 Project 2: NumPy ndarrays/shapes/dtypes, indexing/slicing/broadcasting, vectorized ops, np.linalg matrix ops, Pandas Series & DataFrame, reading CSV/Excel/JSON/Parquet, cleaning, missing/duplicate handling, filtering/grouping/aggregation, merging/joining, feature preparation, Matplotlib/Seaborn EDA charts, PostgreSQL SQL fundamentals (joins/grouping/subqueries), Git/GitHub PRs, reproducible Jupyter notebooks, and Project 2 (AI-Ready Data Analysis System).

⚡ START MODULE 4 PRACTICE

NumPy Arrays, Dimensions, Shapes and Data Types

Start your baseline timed assessment for this module

Module 4 Assessment Rules & Format Every Attempt Helps You Improve • Track Your Progress, One Topic at a Time.
Question Bank 95 MCQs
Timed Sets 19 (19 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 4 Progress

Completion Status & Revision Focus

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

Generative AI & Agentic AI • Module 4

Topic-Wise Timed Mock Tests (19 Topics)

Instant scorecard + detailed explanations
Topic 4.1 1 Set

NumPy Arrays, Dimensions, Shapes and Data Types

5 Qs • 20 min • Pass 70%

Topic 4.2 1 Set

Array Indexing, Slicing and Broadcasting

5 Qs • 20 min • Pass 70%

Topic 4.3 1 Set

Vectorized Operations

5 Qs • 20 min • Pass 70%

Topic 4.4 1 Set

Matrix Operations and Linear Algebra with NumPy

5 Qs • 20 min • Pass 70%

Topic 4.5 1 Set

Pandas Series and DataFrames

5 Qs • 20 min • Pass 70%

Topic 4.6 1 Set

Reading CSV, Excel, JSON and Parquet

5 Qs • 20 min • Pass 70%

Topic 4.7 1 Set

Data Cleaning and Preprocessing

5 Qs • 20 min • Pass 70%

Topic 4.8 1 Set

Missing Values and Duplicate Handling

5 Qs • 20 min • Pass 70%

Topic 4.9 1 Set

Filtering, Grouping and Aggregation

5 Qs • 20 min • Pass 70%

Topic 4.10 1 Set

Merging and Joining Datasets

5 Qs • 20 min • Pass 70%

Topic 4.11 1 Set

Data Transformation and Feature Preparation

5 Qs • 20 min • Pass 70%

Topic 4.12 1 Set

Matplotlib and Seaborn Fundamentals

5 Qs • 20 min • Pass 70%

Topic 4.13 1 Set

Exploratory Data Analysis (EDA) for AI & NLP

5 Qs • 20 min • Pass 70%

Topic 4.14 1 Set

SQL Fundamentals, Joins, Grouping and Subqueries

5 Qs • 20 min • Pass 70%

Topic 4.15 1 Set

PostgreSQL Basics for AI Engineers

5 Qs • 20 min • Pass 70%

Topic 4.16 1 Set

Git, GitHub, Branches, Commits and Pull Requests

5 Qs • 20 min • Pass 70%

Topic 4.17 1 Set

Jupyter Notebook Hygiene and Reproducible Experiments

5 Qs • 20 min • Pass 70%

Topic 4.18 1 Set

Advanced Analytical SQL for AI Engineers (CTEs, Window Functions, JSONB & Feature-Table Joins)

5 Qs • 20 min • Pass 70%

Topic 4.19 1 Set

Service-Based Data & SQL OA Drill Pack (Pandas Vectorization, Null Traps & Top-N SQL Queries)

5 Qs • 20 min • Pass 70%

Sample Module 4 Practice Preview

Sample NumPy, Pandas, Data Visualization and SQL MCQ Questions & Answers

Click “Reveal Answer & Explanation” to check yourself
Q1 • NumPy Arrays, Dimensions, Shapes and Data Types Module 4 Sample

In production NumPy, Pandas & SQL, what is the primary engineering purpose of 'NumPy Arrays, Dimensions, Shapes and Data Types'?

  • A. Storing embedding matrices in float32 (4 bytes/dim instead of Python float 28 bytes/object — 7x memory reduction!).
  • 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

'NumPy Arrays, Dimensions, Shapes and Data Types' is applied in production NumPy, Pandas & SQL specifically for: Storing embedding matrices in float32 (4 bytes/dim instead of Python float 28 bytes/object — 7x memory reduction!).

Q2 • NumPy Arrays, Dimensions, Shapes and Data Types Module 4 Sample

Which critical production pitfall MUST a Generative AI Engineer avoid when implementing 'NumPy Arrays, Dimensions, Shapes and Data Types'?

  • A. Validating schemas with Pydantic v2 and running deterministic pytest checks.
  • B. Defaulting to float64 on large embedding/tensor arrays and doubling RAM/VRAM consumption unnecessarily.
  • 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 'NumPy Arrays, Dimensions, Shapes and Data Types' is: Defaulting to float64 on large embedding/tensor arrays and doubling RAM/VRAM consumption unnecessarily.

Q3 • NumPy Arrays, Dimensions, Shapes and Data Types Module 4 Sample

Which technical scope accurately captures the first-principles mechanics of 'NumPy Arrays, Dimensions, Shapes and Data Types'?

  • 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. Contiguous C-buffer ndarray, .ndim, .shape, .dtype (float32 vs float64 vs int64 — float32 halves embedding RAM!), zeros/ones/arange/reshape
  • D. Disabling timeouts, retries, and max-step loop guards on external APIs.
✓ Reveal Answer & Explanation

Correct Answer: Option C

Core technical coverage of 'NumPy Arrays, Dimensions, Shapes and Data Types' comprises: Contiguous C-buffer ndarray, .ndim, .shape, .dtype (float32 vs float64 vs int64 — float32 halves embedding RAM!), zeros/ones/arange/reshape.

Q4 • NumPy Arrays, Dimensions, Shapes and Data Types Module 4 Sample

What is the expected practical engineering deliverable when completing the hands-on lab for 'NumPy Arrays, Dimensions, Shapes and Data Types'?

  • 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. Compare memory bytes (nbytes) of float32 vs float64 embedding matrices of shape (10000, 768).
✓ Reveal Answer & Explanation

Correct Answer: Option D

Practical mastery of 'NumPy Arrays, Dimensions, Shapes and Data Types' is verified through: Compare memory bytes (nbytes) of float32 vs float64 embedding matrices of shape (10000, 768).

Q5 • NumPy Arrays, Dimensions, Shapes and Data Types Module 4 Sample

In a Generative AI Engineer technical interview on 'NumPy Arrays, Dimensions, Shapes and Data Types', what demonstrates senior production readiness?

  • A. Explaining 'Contiguous C-buffer ndarray, .ndim, .shape, .dtype (float32 vs float64 vs int64 — float32 halves embedding RAM!), zeros/ones/arange/reshape' from first principles in Python, preventing 'Defaulting to `flo...
  • 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 (Contiguous C-buffer ndarray, .ndim, .shape, .dtype (float32 vs float64 vs int64 — float32 halves embedding RAM!), zeros/ones/arange/reshape), guardrail awareness, and measured trade-offs.

Need structured guidance on NumPy, Pandas, Data Visualization and SQL? 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 4: NumPy, Pandas, Data Visualization and SQL (GenAI) Mock Tests

1. How many MCQ Mock Tests are included in Module 4: NumPy, Pandas, Data Visualization and SQL (GenAI)?

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

2. What are the attempt rules and answer-key policies for NumPy, Pandas, Data Visualization and SQL 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.