(a), 4 is the appropriate choice.In the majority of programming languages, constants fall into four categories:
Whole numbers without a decimal point are represented by integer constants, such as 10, -25.
Decimal points are represented by floating-point constants, such as 3.14 and -1.23e+5.
‘a’ and ‘Z’ are examples of character constants, which are single characters enclosed in single quotes.
“Hello, world!” and “This is a string” are examples of string constants, which are collections of characters encapsulated in double quotes.
(a), 4 is the appropriate choice.In the majority of programming languages, constants fall into four categories:
Whole numbers without a decimal point are represented by integer constants, such as 10, -25.
Decimal points are represented by floating-point constants, such as 3.14 and -1.23e+5.
‘a’ and ‘Z’ are examples of character constants, which are single characters enclosed in single quotes.
“Hello, world!” and “This is a string” are examples of string constants, which are collections of characters encapsulated in double quotes.