Data Science track

Data Science interview questions and answers

Panel-ready Data Science track questions for freshers and experienced developers. Practice at Coding Cadre in Faridabad, or Online from Delhi NCR.

220 Qs
101 Moderate NumPy Data Science

What does the axis argument mean in NumPy reductions?

Short take Full answer on next page

Simple meaning

axis specifies which dimension you collapse: axis=0 reduces over rows for a 2D array, leaving columns.

Open the full page for Why, Steps, Example and Key takeaway.

Read full answer Example · Mistake · Say this
103 Moderate NumPy Data Science

How does boolean indexing work on a NumPy array?

Short take Full answer on next page

Simple meaning

A boolean mask of the same shape selects positions where the mask is True, returning a one-dimensional collection of those values for a 1D array.

Open the full page for Why, Steps, Example and Key takeaway.

Read full answer Example · Mistake · Say this
105 Moderate SQL Analytics Data Science

What is a window function, and when is it better than GROUP BY?

Short take Full answer on next page

Simple meaning

Window functions compute aggregates or ranks over a partition while keeping row-level detail, using an OVER clause with partition and order keys.

Open the full page for Why, Steps, Example and Key takeaway.

Read full answer Example · Mistake · Say this
106 Moderate SQL Analytics Data Science

What is a CTE and why do analytics queries use them?

Short take Full answer on next page

Simple meaning

A common table expression is a named subquery introduced with WITH, which you can reference like a temporary table.

Open the full page for Why, Steps, Example and Key takeaway.

Read full answer Example · Mistake · Say this
107 Moderate SQL Analytics Data Science

When is DISTINCT the wrong tool compared with GROUP BY?

Short take Full answer on next page

Simple meaning

DISTINCT removes duplicate full rows but does not compute sums, and it can hide that you joined explosively and then deduped.

Open the full page for Why, Steps, Example and Key takeaway.

Read full answer Example · Mistake · Say this
109 Moderate EDA Data Science

How do you use a correlation matrix during EDA?

Short take Full answer on next page

Simple meaning

A correlation matrix screens pairwise linear associations among numeric features and can flag redundant predictors.

Open the full page for Why, Steps, Example and Key takeaway.

Read full answer Example · Mistake · Say this
110 Moderate EDA Data Science

What signs of target leakage should you look for in EDA?

Short take Full answer on next page

Simple meaning

Leakage shows up as features that would not be known at prediction time, perfect separation, or timestamps after the label.

Open the full page for Why, Steps, Example and Key takeaway.

Read full answer Example · Mistake · Say this
114 Moderate Missing Data Data Science

When is median imputation better than mean imputation?

Short take Full answer on next page

Simple meaning

Median imputation is more robust on skewed numeric columns because a few giants do not dominate the fill value.

Open the full page for Why, Steps, Example and Key takeaway.

Read full answer Example · Mistake · Say this
115 Moderate Missing Data Data Science

Why add a missing-indicator column when you impute?

Short take Full answer on next page

Simple meaning

The fact of missingness can itself predict the outcome, for example users who skip billing fields.

Open the full page for Why, Steps, Example and Key takeaway.

Read full answer Example · Mistake · Say this
117 Moderate Outliers Data Science

How does the IQR rule flag outliers?

Short take Full answer on next page

Simple meaning

Values below Q1 minus one-and-a-half IQRs or above Q3 plus one-and-a-half IQRs are conventional box-plot outliers.

Open the full page for Why, Steps, Example and Key takeaway.

Read full answer Example · Mistake · Say this
120 Moderate Outliers Data Science

What is winsorization?

Short take Full answer on next page

Simple meaning

Winsorization caps extreme values at chosen percentiles instead of dropping rows, so sample size stays the same.

Open the full page for Why, Steps, Example and Key takeaway.

Read full answer Example · Mistake · Say this
Prev Page 6 of 11 Next
Chat with us