1.4.1 Data Types Flashcards
1
Q
What is a primitive data type?
A
- the most basic data type in a programming language that can be used to represent a single value.
2
Q
What is an integer?
A
A whole number
3
Q
What is a float?
A
A number with a decimal point, positive, negative or zero
4
Q
What is a Boolean data type?
A
-Only has two values , true or false
- Commonly used to represent a logical condition or a binary choice
5
Q
What is a string data type?
A
Any type of text
6
Q
What is a character data type?
A
A single element of a string