Basic Literals Flashcards
1
Q
Describe Literals
A
Literals are the values on which the program ultimately performs operations.
2
Q
Integer numbers.
A
This is the set of values that are part of the set of whole numbers.
3
Q
Characters
A
A single character can represent a digit, a letter or another symbol. To write a symbol, we wrap it in single quotes. Character literals can represent symbols of an alphabet, digits from ‘0’ to ‘9’, whitespaces (‘ ‘), or other characters or symbols (‘$’).
4
Q
Strings
A
Strings represent text information. To write a string we wrap characters in double quotes instead of single ones.