Tier 1
Series 4
4G: The Tower Exam
Capstone Exam
"The AI has generated a "Traffic Controller" that is overloading the drone's CPU. Identify the three critical logic failures to clear the airspace for landing."
Target Asset for Audit
FRAGILE_CODE_DETECTED
using UnityEngine;
public class TrafficController : MonoBehaviour {
public Transform runway;
public bool isPilotReady;
public float fuel;
void Update() {
// Audit Requirement: Lesson 4A (Nested Pyramid) & 4F (Update Bloat)
if (isPilotReady) {
if (fuel > 10f) {
// Audit Requirement: Lesson 4C (Logic Redundancy)
if (Vector3.Distance(transform.position, runway.position) < 50f) {
Debug.Log("Authorization Granted.");
// Expensive distance check REPEATED
if (Vector3.Distance(transform.position, runway.position) < 10f) {
LandDrone();
}
}
}
}
}
void LandDrone() { /* Landing Logic */ }
}