Machine-translated by Google. Questions are authored in English.
Top

Discussion

Enumeration is a process of

  • A.Declaring a set of numbers
  • B.Sorting a list of strings
  • C.Assigning a legal values possible for a variable
  • D.Sequencing a list of operators

Answer: C

Enumeration is the process of assigning the legal values possible for a variable: an enumerated type lists the named constants that a variable of that type may take, for example the days of a week.

It is not about declaring a set of numbers in general, sorting a list of strings, or sequencing a list of operators. The values in an enumeration are named integer constants, usually numbered from 0 by default.

No comment is present. Be the first to comment.
Loading…

Post your comment

Please log in or register to post a comment.