AI / ML track

AI and machine learning interview questions

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

41 Easy SVM AI / ML

What is the kernel trick in plain language?

Short take Full answer on next page

Simple meaning

A kernel computes a similarity that matches a dot product in a richer feature space without building that space by hand.

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

Read full answer Example · Mistake · Say this
43 Easy KNN AI / ML

How do you choose K in KNN?

Short take Full answer on next page

Simple meaning

Small K is flexible and noisy

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

Read full answer Example · Mistake · Say this
44 Easy KNN AI / ML

Why is feature scaling important for KNN?

Short take Full answer on next page

Simple meaning

Distance is dominated by large-scale features if you skip scaling.

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

Read full answer Example · Mistake · Say this
45 Easy Clustering AI / ML

What is clustering used for?

Short take Full answer on next page

Simple meaning

Clustering groups similar unlabeled rows together.

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

Read full answer Example · Mistake · Say this
46 Easy Clustering AI / ML

How does K-means work?

Short take Full answer on next page

Simple meaning

K-means places K centroids, assigns each point to the nearest centroid, then moves each centroid to the mean of its points.

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

Read full answer Example · Mistake · Say this
47 Easy Clustering AI / ML

What is the elbow method for choosing K?

Short take Full answer on next page

Simple meaning

You plot inertia, the within-cluster sum of squares, against K.

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

Read full answer Example · Mistake · Say this
49 Easy PCA AI / ML

What problem does PCA solve?

Short take Full answer on next page

Simple meaning

PCA finds orthogonal directions of maximum variance so correlated features can be compressed.

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

Read full answer Example · Mistake · Say this
50 Easy PCA AI / ML

What is a principal component?

Short take Full answer on next page

Simple meaning

A principal component is a linear combination of the original features.

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

Read full answer Example · Mistake · Say this
51 Easy PCA AI / ML

Should you scale features before PCA?

Short take Full answer on next page

Simple meaning

Yes, unless the features already share a meaningful common unit.

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

Read full answer Example · Mistake · Say this
52 Easy Feature Engineering AI / ML

What is feature engineering?

Short take Full answer on next page

Simple meaning

Feature engineering turns raw fields into inputs that make the pattern easier to learn.

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

Read full answer Example · Mistake · Say this
53 Easy Feature Engineering AI / ML

What is one-hot encoding?

Short take Full answer on next page

Simple meaning

One-hot encoding turns a categorical column into binary columns, one per category.

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

Read full answer Example · Mistake · Say this
54 Easy Feature Engineering AI / ML

What is feature scaling?

Short take Full answer on next page

Simple meaning

Scaling puts numeric features on a comparable range.

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

Read full answer Example · Mistake · Say this
56 Easy Imbalanced Data AI / ML

What is an imbalanced dataset?

Short take Full answer on next page

Simple meaning

Imbalance means one class is much rarer than another, such as one percent fraud.

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

Read full answer Example · Mistake · Say this
57 Easy Imbalanced Data AI / ML

Why can 99 percent accuracy still mean a failed model?

Short take Full answer on next page

Simple meaning

If 99 percent of rows are negative, always predicting negative scores 99 percent and finds zero fraud.

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

Read full answer Example · Mistake · Say this
58 Easy Imbalanced Data AI / ML

Name simple ways to handle class imbalance.

Short take Full answer on next page

Simple meaning

Use class weights, oversample the minority, undersample the majority, or create synthetic minority rows.

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

Read full answer Example · Mistake · Say this
59 Easy sklearn Pipeline AI / ML

What is an sklearn Pipeline?

Short take Full answer on next page

Simple meaning

A Pipeline chains transformers and a final estimator so they fit and predict as one object.

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

Read full answer Example · Mistake · Say this
Prev Page 3 of 12 Next
Chat with us