2. Programming for Games

Algorithms And AI — Quiz

Test your understanding of algorithms and ai with 5 practice questions.

Read the lesson first

Practice Questions

Question 1

Which of the following describes a 'node' in the context of pathfinding algorithms?

Question 2

An NPC's behavior is governed by a 'Finite State Machine' (FSM). If the NPC is in the 'Patrolling' state and detects an enemy, what mechanism allows it to switch to an 'Attacking' state?

Question 3

What is the primary purpose of 'simple planning algorithms' in game AI for non-player characters (NPCs)?

Question 4

An NPC is implementing a 'flocking' behavior. Which of the following is a core component that contributes to the cohesion of the flock?

Question 5

Which of the following describes the primary function of 'Steering Behaviors' in game AI?