Complete the code to declare an enumeration for days of the week.
enum Days { Sunday, Monday, [1], Wednesday, Thursday, Friday, Saturday };The enumeration for days of the week includes Tuesday as the third day.
Complete the code to assign a value to an enumeration constant.
enum Color { Red = 1, Green = 2, [1] = 3 };The enumeration assigns Blue the value 3.
Fix the error in the enumeration declaration.
enum Status { Active, [1] 5, Pending };Enumeration constants must be assigned values using the '=' sign, so Inactive = is correct.
Fill both blanks to create an enumeration and use it in a variable declaration.
enum [1] { Low, Medium, High }; [2] priority;
The enum is named Priority, and the variable priority is declared with type enum Priority.
Fill all three blanks to define an enumeration and assign a value to a variable.
enum [1] { Red, Green, Blue }; enum [2] favoriteColor = [3];
The enum is named Color, the variable favoriteColor is declared as enum Color, and assigned the value Green.
