Operators and Data Types Flashcards

1
Q

What is a string?

A

A data type used to store text.

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

What is an integer?

A

A whole number (positive or negative, no decimals).

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

What is a boolean?

A

A data type that can only be true or false.

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

Give an example of a comparison operator.

A

==, !=, >, <, >=, <=

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

What does the = operator do?

A

Assigns a value to a variable.

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