Skip to content

Session 0 - Module B: Test Solutions

Multiple Choice Test - Module B Solutions


Question 1: Framework Advantages

What is the key advantage of LangChain's framework approach over bare metal Python for reflection patterns?
A) Structured prompt templating and reduced boilerplate code ✅
B) Faster execution speed
C) Lower memory usage
D) Built-in GPU acceleration
Correct Answer: A) Structured prompt templating and reduced boilerplate code

Explanation: LangChain provides structured components that handle prompt templating and chain orchestration, reducing boilerplate code and enabling more maintainable reflection systems. This separation of concerns makes systems easier to debug and modify.


Question 2: Tool Selection

In advanced tool agents, what determines which tool is selected for a given task?
A) Task analysis combined with historical performance data ✅
B) Alphabetical ordering of tool names
C) The tool with the most recent update
D) Random selection from available tools
Correct Answer: A) Task analysis combined with historical performance data

Explanation: Advanced tool agents intelligently select tools by first analyzing task requirements to extract features, then ranking candidate tools by their historical success with similar tasks, continuously improving tool selection over time.


Question 3: Pattern Combinations

What are the three phases of ReAct + Reflection combination pattern?
A) Analysis, synthesis, deployment
B) Input processing, model inference, output generation
C) ReAct problem solving, reflection on solution quality, iterative improvement ✅
D) Planning, execution, evaluation
Correct Answer: C) ReAct problem solving, reflection on solution quality, iterative improvement

Explanation: The ReAct + Reflection combination uses a two-phase approach: first ReAct generates a solution through iterative reasoning and action, then reflection evaluates solution quality, followed by iterative improvement only if issues are identified.


Question 4: Emerging Patterns

Which emerging pattern enables agents to debug and fix their own reasoning errors?
A) Meta-Learning Pattern
B) Self-Debugging Pattern ✅
C) Constitutional AI Pattern
D) Swarm Intelligence Pattern
Correct Answer: B) Self-Debugging Pattern

Explanation: The Self-Debugging Pattern enables agents to automatically detect errors in their own reasoning or execution, analyze the issues, and apply fixes. This includes validation of results, error analysis, and iterative correction attempts.


Question 5: Advanced Coordination

What is the primary benefit of combining Planning with Multi-Agent Coordination?
A) Strategic planning with coordinated execution across specialized agents ✅
B) Faster individual agent performance
C) Simplified code architecture
D) Reduced computational costs
Correct Answer: A) Strategic planning with coordinated execution across specialized agents

Explanation: This combination tackles complex workflows that require both strategic planning and coordinated execution across multiple specialized agents, enabling sophisticated systems that can handle complex multi-phase projects with dynamic adaptation.


Return to Module

← Back to Module B