0
0
Agentic AIml~20 mins

When to use which reasoning pattern in Agentic AI - Practice Problems & Coding Challenges

Choose your learning style9 modes available
Challenge - 5 Problems
🎖️
Reasoning Pattern Master
Get all challenges correct to earn this badge!
Test your skills under time pressure!
🧠 Conceptual
intermediate
2:00remaining
Choosing the right reasoning pattern for a step-by-step problem

You want an AI agent to solve a complex math problem by breaking it down into smaller steps. Which reasoning pattern should you choose?

AChain of Thought reasoning, because it guides the agent to think step-by-step.
BReAct reasoning, because it combines reasoning with actions like searching the web.
CSelf-Consistency, because it samples multiple answers and picks the most common one.
DTree of Thought, because it explores multiple reasoning paths in parallel.
Attempts:
2 left
💡 Hint

Think about which pattern helps the agent explain each step clearly.

Model Choice
intermediate
2:00remaining
Best reasoning pattern for combining reasoning and external actions

You want an AI agent that can both think through a problem and perform actions like searching the internet or calling APIs. Which reasoning pattern fits best?

ASelf-Consistency, which samples multiple reasoning paths internally.
BChain of Thought reasoning, focusing only on internal reasoning steps.
CReAct reasoning, which interleaves reasoning and actions.
DTree of Thought, which explores multiple reasoning paths but does not perform actions.
Attempts:
2 left
💡 Hint

Look for the pattern that mixes thinking and doing.

Metrics
advanced
2:00remaining
Evaluating Self-Consistency reasoning effectiveness

You run Self-Consistency reasoning by sampling multiple answers from an AI model and selecting the most frequent answer. Which metric best measures if this approach improved answer reliability?

AAccuracy, because it shows how often the final answer matches the true answer.
BLoss, because it measures the model's prediction error during training.
CF1 Score, because it balances precision and recall for classification.
DPerplexity, because it measures how surprised the model is by the data.
Attempts:
2 left
💡 Hint

Think about which metric directly shows correctness of final answers.

🔧 Debug
advanced
2:00remaining
Why does Tree of Thought reasoning take longer to run?

You implemented Tree of Thought reasoning but notice it takes much longer than Chain of Thought. What is the main reason?

ATree of Thought uses fewer reasoning steps, so it is slower per step.
BTree of Thought explores multiple reasoning paths in parallel, increasing computation time.
CTree of Thought skips important steps, causing delays.
DTree of Thought only samples one answer, so it is slower to converge.
Attempts:
2 left
💡 Hint

Consider how exploring many options affects speed.

🧠 Conceptual
expert
3:00remaining
Selecting reasoning pattern for uncertain or ambiguous problems

You face a problem where the AI model's answers vary widely and uncertainty is high. Which reasoning pattern helps improve answer reliability by considering multiple diverse reasoning paths?

AChain of Thought, because it focuses on a single reasoning path step-by-step.
BReAct, because it mixes reasoning with external actions.
CSelf-Consistency, because it samples multiple answers and picks the most frequent one.
DTree of Thought, because it explores multiple reasoning paths and selects the best.
Attempts:
2 left
💡 Hint

Think about which pattern explores many paths to find the best answer.