Operators and Data Types Flashcards
(8 cards)
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
Give an example of an arithmetic opertor.
A
+ - / *
6
Q
What does the = operator do?
A
Assigns a value to a variable.
7
Q
What is a real number?
A
A positive or negitive whole number.
8
Q
Give an examle of a logical operator.
A
AND NOT OR