Basic Literals Flashcards

1
Q

Describe Literals

A

Literals are the values on which the program ultimately performs operations.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

Integer numbers.

A

This is the set of values that are part of the set of whole numbers.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
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 (‘$’).

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

Strings

A

Strings represent text information. To write a string we wrap characters in double quotes instead of single ones.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly