1.4.1 Data Types Flashcards

You may prefer our related Brainscape-certified 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.
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

What is an integer?

A

A whole number

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

What is a float?

A

A number with a decimal point, positive, negative or zero

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
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

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

What is a string data type?

A

Any type of text

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

What is a character data type?

A

A single element of a string

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