Test Your Skills on Enums
Quiz yourself on Dart enumerations.
We'll cover the following...
We'll cover the following...
Technical Quiz
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’;
1 / 3