1.4.1 Data types Flashcards
1
Q
what is a primitive data type?
A
a fundamental data cannot be broken down into a more simple data type
2
Q
what is a real/float number?
A
number with decimal places, can be positive or negative
3
Q
what is an integer?
A
a whole number, can be positive or negative
4
Q
what is boolean?
A
based on logic, only has true or false
5
Q
what is a character?
A
any letter, digit or symbol
6
Q
what is a string?
A
a collection of characters, includes punctuation, digits and symbols
(numeric digits are handled as text)
7
Q
why is binary used?
A
-easy to build electronic circuits with just two states
-easier to store data with two states