Operators and Data Types Flashcards
1
Q
What is a string?
A
A data type used to store text.
2
Q
What is an integer?
A
A whole number (positive or negative, no decimals).
3
Q
What is a boolean?
A
A data type that can only be true or false.
4
Q
Give an example of a comparison operator.
A
==, !=, >, <, >=, <=
5
Q
What does the = operator do?
A
Assigns a value to a variable.