Tier 1 Series 8

8G: The Circuit Breaker Exam

Capstone Exam
Pilot Record
Student Profile
"You have analyzed the wiring. You know that loose connections (Nulls) cause crashes, infinite loops freeze the engine, and spaghetti logic causes confusion. Now, certify your understanding."

Target Asset for Audit

FRAGILE_CODE_DETECTED
// EXAM AUDIT: CRITICAL FAILURE
void Update() {
    // 1. Unsafe Access
    enemy.Attack();
    
    // 2. Infinite Loop Potential
    while(isHit) {
        FlashColor();
    }
    
    // 3. Spaghetti Nest
    if (alive) {
       if (ammo > 0) {
           Fire();
       }
    }
}

Supervisor's Certification

Authenticated Pilot
pilot_657388f787c0d1b4
Session Secure

Failure Point #1

Null Safety

Which line of code safely prevents a crash if "player" does not exist?

Failure Point #2

Loop Safety

Why is modifying a list inside a foreach loop dangerous?

Failure Point #3

Logic Hygiene

What is the purpose of a "Guard Clause"?