The correct answer is: D. string literal
A string literal is a sequence of characters enclosed in double quotes. It is a constant, which means its value cannot be changed.
A character literal is a single character enclosed in single quotes. It is also a constant.
A numeric literal is a number that is not enclosed in quotes. It can be an integer, a floating-point number, or a hexadecimal number. It is also a constant.
A named literal is a variable that is assigned a constant value. It is not a constant itself.
Here are some examples of string literals:
"Hello, world!"
"This is a string literal."
Here are some examples of character literals:
'a'
'b'
'c'
Here are some examples of numeric literals:
123
456.78
0x1234
Here are some examples of named literals:
my_name = "John Doe"
my_age = 30
my_height = 1.78