Test Your Skills on Enums
Quiz yourself on Dart enumerations.
1
Pick the correct enum definition for seasons of the year: Fall, Winter, Spring, and Summer.
A)
enum Season {
fall,
winter,
spring,
summer,
}
B)
Enum Season {
fall,
winter,
spring,
summer,
}
C)
enum Season {
Fall,
Winter,
Spring,
Summer,
}
D)
const FALL = ‘Fall’;
const WINTER = ‘Winter’;
const SPRING = ’Spring’;
const SUMMER = ‘Summer’;
Question 1 of 30 attempted
Get hands-on with 1400+ tech skills courses.