Data Science Interview Questions for Consulting Companies
40 questions weighted to the interview style of consulting companies — 7 easy, 31 medium, 2 hard.
How consulting companies interview for Data Science
Consulting firms look for people who can structure messy business problems and explain them simply to clients. Expect case and guesstimate questions, data interpretation, and questions on how you handled stakeholders, along with the technical skills for the role.
This set focuses on Machine Learning (10), Deep Learning and NLP (7), Statistics and Probability (5), Python for Data Science (4).
Your dataset is highly imbalanced (2% positives). How do you handle it?
Show answer
Why do we use activation functions? Why is ReLU popular?
Show answer
Write scikit-learn code to get precision, recall and a confusion matrix at a custom threshold of 0.3.
Show answer
Why are NumPy arrays faster than Python lists?
Show answer
Write Python code to run an ADF stationarity test and difference the series if needed.
Show answer
A 10 million row DataFrame with a city column is using too much memory. How can the category dtype help?
Show answer
What is the difference between a base model and an instruction-tuned model?
Show answer
Tell me about a time you chose a simpler model over a more complex one.
Show answer
How would you explain a statistical concept to a non-technical manager?
Show answer
Write Pandas code to create useful features from a datetime column.
Show answer
What is the difference between == and is?
Show answer
Which activation functions do you know and when to use them?
Show answer
You are building defect detection for a factory line where only 1 in 1,000 images shows a defect. How do you approach it?
Show answer
What is the Global Interpreter Lock (GIL)?
Show answer
You added an index but the query is still slow. How do indexes work, and when do they fail to help or even hurt?
Show answer
What is the difference between a star schema and a snowflake schema?
Show answer
Your A/B test shows a significant lift after 2 days. The product team wants to ship now. What do you say?
Show answer
Your training history includes a lockdown period when demand collapsed and then rebounded. How do you treat it?
Show answer
Why is cross-entropy preferred over MSE for classification in neural networks?
Show answer
Random forest vs a single decision tree?
Show answer
The average delivery time is 30 minutes, yet many customers complain about late orders. How do you investigate?
Show answer
How do you evaluate clustering when you have no labels?
Show answer
What is a baseline model and why should you build one first?
Show answer
Design an end-to-end churn prediction system.
Show answer
Tell me about a time your analysis contradicted what leadership expected.
Show answer
How does a CNN work?
Show answer
You need to extract fields from scanned invoices that come in hundreds of different layouts. How would you design it?
Show answer
What are common ways to evaluate NLP models?
Show answer
What is Naive Bayes and why is it called naive?
Show answer
Tell me about a time you found a mistake in your own analysis after sharing it.
Show answer
Training a transformer on a GPU fails with an out-of-memory error. What can you do?
Show answer
The business asks you to pick a decision threshold for a churn model. How do you choose it?
Show answer
Your LLM app takes 8 seconds to respond and users complain. What do you do?
Show answer
Write PyTorch code to fine-tune a pretrained ResNet-18 for a 5-class problem by replacing its final layer.
Show answer
Your random forest is accurate but too slow at prediction time for a real-time API. What do you do?
Show answer
Your LLM gives different summaries for the same document on different runs, but auditors need consistent output. What do you do?
Show answer
Write Python code for a two-proportion z-test comparing conversion between control and treatment.
Show answer
What is mean Average Precision (mAP) in object detection?
Show answer
Your credit model has good overall AUC but performs much worse for applicants from one region. What do you do?
Show answer
Consulting companies (13)
Accenture
Data Science interview questions
Bengaluru, Hyderabad, Pune +2
View questionsDeloitte
Data Science interview questions
Hyderabad, Bengaluru, Mumbai +2
View questionsEY
Data Science interview questions
Bengaluru, Kolkata, Gurugram +2
View questionsKPMG
Data Science interview questions
Gurugram, Bengaluru, Mumbai +2
View questionsPwC
Data Science interview questions
Kolkata, Bengaluru, Mumbai +2
View questionsPublicis Sapient
Data Science interview questions
Gurugram, Noida, Bengaluru
View questionsThoughtworks
Data Science interview questions
Pune, Bengaluru, Chennai +2
View questionsZS Associates
Data Science interview questions
Pune, Gurugram, Bengaluru
View questionsMcKinsey & Company
Data Science interview questions
Gurugram, Mumbai, Bengaluru +1
View questionsBoston Consulting Group
Data Science interview questions
Mumbai, New Delhi, Bengaluru +1
View questionsBain & Company
Data Science interview questions
Gurugram, Mumbai, Bengaluru
View questionsGrant Thornton Bharat
Data Science interview questions
Gurugram, Mumbai, Bengaluru +3
View questionsProtiviti
Data Science interview questions
Gurugram, Mumbai, Bengaluru +1
View questionsFrequently asked questions
How are Data Science interviews at consulting companies different?
Consulting firms look for people who can structure messy business problems and explain them simply to clients. Expect case and guesstimate questions, data interpretation, and questions on how you handled stakeholders, along with the technical skills for the role.
Which consulting companies are covered?
This page links to 13 consulting companies, including Accenture, Deloitte, EY, KPMG, PwC, Publicis Sapient, Thoughtworks, ZS Associates. Each has its own page with rounds and a separate practice set.
What rounds should I expect?
Common rounds at these companies include: Technical interview; Partner or HR round; Managerial round; Online assessment (aptitude + technical); HR round. The exact process varies by company and role.