String Flashcards

1
Q

What is “character literals”?

A

an integer value represented as a character in single quotes, like ‘z’ represent the integer value of z

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

What is a “string literal”?

A

a string literal is a sequens of characters in double marks, as in “hello world”

string literals may be assigned to a string reference, like:

String color (the reference) = “blue”;

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

What is a string?

A

a string is a sequens of characters treated as a single unit

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