Tier 1
Series 2
2G: The Logic Exam
Capstone Exam
"Your training in Series 2 has focused on the movement and storage of data. A pilot doesn't just need to know which button to press; they must understand the current flowing through the switchboard.
In this exam, you are the Lead Auditor. You will be presented with a high-level "Fuel Management System" script that is riddled with logic stutters, memory leaks, and side effects."
In this exam, you are the Lead Auditor. You will be presented with a high-level "Fuel Management System" script that is riddled with logic stutters, memory leaks, and side effects."
Target Asset for Audit
FRAGILE_CODE_DETECTED
// UNIT AUDIT #202: FuelManager.cs
public class FuelManager : MonoBehaviour {
public static List<object> fuelLogs = new List<object>(); // Memory Leak?
public void ProcessAllTanks() {
foreach(var log in fuelLogs) {
if ((float)log <= 0) {
fuelLogs.Remove(log); // CRASH POINT
}
}
}
}