Build a Decision Tree Quiz

Construct, test, and improve decision trees through calculations, visual challenges, prediction paths, pruning tasks, debugging exercises, and detailed performance reports for every learning level.

Quiz configuration

Choose a focused practice session or a complete assessment.

120 questions available

Question categories

Interactive tree-building lab

Drag a rule and predictions into the three tree positions.

Visual challenge

Loan dataset

IncomeDebtApproved
3238No
4031No
4827No
5524Yes
6419Yes
7216Yes

Values are simplified thousands and percentages.

Node palette

Drop the root rule here
Condition false
Drop the left prediction
Condition true
Drop the right prediction

Trace a prediction path

Custom dataset explorer

Paste a small CSV dataset with a header row. The last column is treated as the target.

Formula reference

Gini impurity = 1 − Σ(pᵢ²)
Entropy = −Σ(pᵢ log₂ pᵢ)
Information gain = parent impurity − weighted child impurity
Regression split improvement = parent error − weighted child error
Precision = TP ÷ (TP + FP)
Recall = TP ÷ (TP + FN)
F1 = 2 × precision × recall ÷ (precision + recall)

How to use

Configure the quiz, select categories, then start an attempt. Answer each question and use hints during practice mode. Save progress whenever you need to leave.

Use the tree lab to build a simple classifier visually. Review the dataset before placing each node. Validate the structure and trace sample predictions.

Submit the quiz to create detailed Plotly reports. Review weak topics and explanations carefully. Export the results for later study.

Frequently asked questions

Does the quiz require a database?

No. Progress and attempt history are stored in the browser.

Can I use only classification questions?

Yes. Choose classification in the tree-type selector.

Are numerical answers accepted?

Yes. Numerical questions allow small rounding differences.

Does the quiz include negative marking?

Yes. Set the deduction before starting an attempt.

Can I resume later?

Yes. Use Save progress and Resume saved quiz.

What does the random seed control?

It makes shuffled question order reproducible.

Can I print the report?

Yes. The PDF button opens the browser print dialog.

How are reports generated?

Plotly.js creates category, difficulty, answer, and attempt charts.

What happens when time expires?

The current attempt is submitted automatically.

Related Calculators

Identify the Graph QuizInterpret a Confusion Matrix QuizDraw the Decision Boundary QuizLocate Outliers on a Plot QuizSelect the Best Regression Line QuizMatch Distribution with Its Name QuizArrange Neural Network Layers QuizDrag-and-Drop ML Workflow QuizMatch Metrics with Formulas QuizIdentify Underfitting and Overfitting Curves Quiz

Important Note: All the Calculators listed in this site are for educational purpose only and we do not guarentee the accuracy of results. Please do consult with other sources as well.