MCQ Single Best Answer Easy

QIs this a valid code for enum?

  NoYes done;

ID: #12032 Module 4: Base Enumerations 1,155 views
Question Info
#12032Q ID
EasyDifficulty
Module 4: Base EnumerationsTopic

Choose the Best Option

Click any option to instantly check if you're correct.

  • A Yes
  • B No
Correct Answer: Option A

Explanation

An enum is a list of literals. Before you can use an enum, you must declare it in Application Explorer.

Hundreds of enumerable types are built into the standard application. For example, the NoYes enum has two associated literals: No has the value 0, and Yes has the value 1.

To reference an enum value, enter the name of the enum, two colons, and then the name of the literal. For example, to use the literal No in the NoYes enum, enter NoYes::No.

Share This Question

Challenge a friend or share with your study group.