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

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

what is a real/float number?

A

number with decimal places, can be positive or negative

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

what is an integer?

A

a whole number, can be positive or negative

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

what is boolean?

A

based on logic, only has true or false

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

what is a character?

A

any letter, digit or symbol

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

what is a string?

A

a collection of characters, includes punctuation, digits and symbols
(numeric digits are handled as text)

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

why is binary used?

A

-easy to build electronic circuits with just two states
-easier to store data with two states

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