Complete the code to declare an enum for vehicle types.
enum VehicleType { [1] }The enum values should be uppercase identifiers separated by commas.
Complete the code to declare an enum for parking spot types.
enum SpotType { [1] }Enum values should be uppercase and represent spot categories.
Fix the error in the enum declaration for VehicleType.
enum VehicleType { CAR, BIKE, [1] }Enum values must be uppercase identifiers, so TRUCK is correct.
Fill both blanks to complete the enum and use it in a variable declaration.
enum SpotType { [1] }
SpotType mySpot = [2];The enum must list all spot types, and the variable should be assigned using the enum type prefix.
Fill all three blanks to declare VehicleType enum, assign a variable, and compare it.
enum VehicleType { [1] }
VehicleType myVehicle = [2];
if (myVehicle == [3]) {
// park vehicle
}Enum declaration uses uppercase values, variable assigned with enum prefix, and comparison uses enum prefix as well.
