240 PRACTICE QUESTIONS

AI & Data Science Mock Interview Questions & Practice

Prepare for AI & Data Science placement and job interviews with 240 technical practice questions across 8 subjects: Machine Learning Fundamentals, Deep Learning & Neural Networks, Statistics & Probability for Data Science, Data Structures & Algorithms, Operating Systems, Database Management Systems, Computer Networks and Object-Oriented Programming. Below are sample AI & Data Science interview questions with the key points a strong answer covers. Practice them out loud in a scored mock interview — your first session is free.

Subjects covered in the AI & Data Science mock interview

Machine Learning Fundamentals

  • Supervised Learning Basics
  • Unsupervised Learning & Clustering
  • Model Evaluation & Feature Engineering

Deep Learning & Neural Networks

  • Neural Network Fundamentals
  • Convolutional Neural Networks
  • Recurrent Networks & Sequence Models

Statistics & Probability for Data Science

  • Probability Fundamentals
  • Descriptive Statistics & Distributions
  • Statistical Inference & Hypothesis Testing

Data Structures & Algorithms

Shared with Computer Science Engineering

  • Arrays & Strings
  • Linked Lists & Trees
  • Sorting, Searching & Complexity

Operating Systems

Shared with Computer Science Engineering

  • Process & Thread Management
  • Memory Management
  • Concurrency & Synchronization

Database Management Systems

Shared with Computer Science Engineering

  • Relational Model & SQL
  • Normalization & Schema Design
  • Transactions & Indexing

Computer Networks

Shared with Computer Science Engineering

  • Networking Fundamentals & OSI Model
  • TCP/IP & Routing
  • Application Layer Protocols & Security

Object-Oriented Programming

Shared with Computer Science Engineering

  • Core OOP Principles
  • Design Patterns
  • Inheritance, Polymorphism & SOLID

Sample AI & Data Science interview questions

A selection from the AI & Data Science question bank. In a MockManthan session the interviewer asks each question aloud and you answer on camera — these key points show what a complete answer should include.

Machine Learning Fundamentals interview questions

  1. What is logistic regression, and why is it used for classification despite its name?

    Supervised Learning Basics

    Key points to cover:

    • Models the probability of a binary outcome
    • Using a logistic (sigmoid) function
    • Called "regression" because it models a continuous probability before thresholding
  2. What is the difference between hierarchical clustering and K-means clustering?

    Unsupervised Learning & Clustering

    Key points to cover:

    • Hierarchical clustering builds a nested tree of clusters (dendrogram)
    • Without needing to specify the number of clusters upfront
    • K-means requires specifying the number of clusters (K) in advance
  3. What are precision and recall, and how do they differ as classification metrics?

    Model Evaluation & Feature Engineering

    Key points to cover:

    • Precision: proportion of predicted positives that are actually positive
    • Recall: proportion of actual positives correctly identified
    • They often trade off depending on the classification threshold

Deep Learning & Neural Networks interview questions

  1. What is backpropagation, and what role does it play in training a neural network?

    Neural Network Fundamentals

    Key points to cover:

    • Computes the gradient of the loss function with respect to each weight
    • By propagating error backward from the output layer
    • Used with an optimization algorithm to iteratively update weights
  2. What is pooling in a CNN, and what is its purpose?

    Convolutional Neural Networks

    Key points to cover:

    • Reduces the spatial dimensions of feature maps
    • E.g. taking the max or average value in local regions
    • Reduces computational cost, controls overfitting, provides translation invariance
  3. What is the vanishing gradient problem in the context of standard RNNs, and how does it limit their practical use?

    Recurrent Networks & Sequence Models

    Key points to cover:

    • Gradients shrink exponentially as they propagate backward
    • Through many time steps
    • Limits ability to learn long-range dependencies in sequences

Statistics & Probability for Data Science interview questions

  1. What is Bayes' theorem, and what does it allow you to calculate?

    Probability Fundamentals

    Key points to cover:

    • A formula relating conditional probabilities
    • Allows calculating the probability of a hypothesis given evidence
    • Based on the prior probability and the likelihood of the evidence
  2. What is a normal (Gaussian) distribution, and what are its key characteristics?

    Descriptive Statistics & Distributions

    Key points to cover:

    • A continuous, symmetric, bell-shaped probability distribution
    • Characterized by mean (center) and standard deviation (spread)
    • The 68-95-99.7 rule for data within 1/2/3 standard deviations
  3. What is a Type I error and a Type II error in hypothesis testing?

    Statistical Inference & Hypothesis Testing

    Key points to cover:

    • Type I: incorrectly rejecting a true null hypothesis (false positive)
    • Type II: incorrectly failing to reject a false null hypothesis (false negative)
    • Notes both are trade-offs against each other

Data Structures & Algorithms interview questions

  1. Explain how you would detect if two strings are anagrams of each other.

    Arrays & Strings

    Key points to cover:

    • Character frequency count comparison
    • Sorting approach as an alternative, O(n log n)
    • Discusses the time/space trade-off between the two approaches
  2. How would you find the lowest common ancestor of two nodes in a binary search tree?

    Linked Lists & Trees

    Key points to cover:

    • Uses the BST property while traversing from the root
    • States O(h) time complexity
    • Contrasts with general binary-tree LCA needing a full traversal
  3. How does quicksort's pivot selection affect its performance?

    Sorting, Searching & Complexity

    Key points to cover:

    • Poor pivot choice (e.g. first element on sorted input) degrades to O(n^2)
    • Randomized or median-of-three pivot selection helps avoid the worst case
    • Connects pivot quality to partition balance

Operating Systems interview questions

  1. Explain the difference between multithreading and multiprocessing.

    Process & Thread Management

    Key points to cover:

    • Multithreading shares memory within one process, lower overhead
    • Needs synchronization to avoid shared-state issues
    • Multiprocessing uses separate memory spaces, higher isolation and overhead
  2. Compare paging and segmentation as memory management schemes.

    Memory Management

    Key points to cover:

    • Paging uses fixed-size units, transparent to the programmer
    • Segmentation uses variable-size logical units (code/data/stack)
    • Notes segmentation can suffer external fragmentation
  3. How does a condition variable work, and what problem does it solve?

    Concurrency & Synchronization

    Key points to cover:

    • Lets a thread wait/block until a specific condition becomes true
    • Signaled by another thread
    • Solves busy-waiting inefficiency compared to polling a flag

Database Management Systems interview questions

  1. What is a subquery, and give an example of when you'd use one.

    Relational Model & SQL

    Key points to cover:

    • A query nested inside another query
    • Useful for filtering based on an aggregate or related table result
    • Gives a concrete example (e.g. rows above a subquery-computed average)
  2. Explain Third Normal Form (3NF) and what problem it solves.

    Normalization & Schema Design

    Key points to cover:

    • 2NF plus no transitive dependency
    • Non-key columns must depend only on the primary key
    • Removes redundancy caused by indirect (transitive) dependencies
  3. Explain the difference between the READ COMMITTED and REPEATABLE READ isolation levels.

    Transactions & Indexing

    Key points to cover:

    • READ COMMITTED prevents dirty reads
    • READ COMMITTED still allows non-repeatable reads within a transaction
    • REPEATABLE READ additionally prevents non-repeatable reads

How to practice AI & Data Science interview questions on MockManthan

  1. Create a free account and complete a quick camera, microphone and face calibration.
  2. Pick the AI & Data Science subject, chapter and topic you want to practice.
  3. Answer each question out loud to the animated interviewer, then review your scored report — Confidence, Professionalism, Eye Contact and Body Language — with a clickable video timeline.

Mock interview questions for other engineering branches