Tier 2
Series 100
100D: The Engineer's Exam
Capstone Exam
"The aircraft is on the tarmac. The systems are failing. Identify the three critical architectural errors in the AI-generated code below to clear the flight for takeoff."
Target Asset for Audit
FRAGILE_CODE_DETECTED
using UnityEngine;
using UnityEngine.UI; // Error Spotted?
public class FuelManager : MonoBehaviour {
// Audit Requirement: Chapter 4
public float currentFuel = 100f;
public float maxFuel = 100f;
public Text fuelDisplay; // Audit Requirement: Chapter 6
void Start() {
UpdateUI();
}
// Audit Requirement: Chapter 5
void OnCollisionEnter(Collision other) {
if (other.gameObject.tag == "FuelPod") {
currentFuel += 25f;
Destroy(other.gameObject);
UpdateUI();
}
}
void UpdateUI() {
fuelDisplay.text = "Fuel: " + currentFuel;
}
}