Snake Game Programming Quiz 1. What are the three main components that make up the Snake game structure? a) HTML, Python, and MySQL b) CSS styling, HTML container, and JavaScript logic c) Frontend, backend, and database d) Canvas, sprites, and animations 2. In the Snake game's direction system, what do the numbers 0, 1, 2, 3 represent? a) Up, Right, Down, Left b) Left, Up, Right, Down c) Right, Down, Left, Up d) Down, Left, Up, Right 3. What is the primary purpose of the mainLoop() function in the Snake game? a) To initialize game variables b) To handle user input only c) To continuously update game state, check collisions, and render graphics d) To generate random food positions 4. Which debugging workflow step comes immediately after 'Set Breakpoints' in the pair programming process? a) Create GitHub Issue b) Live Share Debug Session c) Commit & Push d) Update Burndown 5. In the Snake game collision detection, what happens when checkBlock(snake[0].x, snake[0].y, food.x, food.y) returns true? a) Game over occurs b) Snake changes direction c) Snake grows, score increases, and new food spawns d) Game speed increases Submit Quiz