Data Types Flashcards

1
Q

True or False.
In programming, data type is an important concept.

A

True

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

True or False.
Variable can store data of different data types, and different data types can do different things

A

True

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

Text type

A

str

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

Numeric types

A

int, float, complex

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

Sequence types

A

list, tuple, range

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

Mapping type

A

dict

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

Set types

A

set, frozenset

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

Boolean type

A

bool

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

Binary type

A

bytes, bytearray, memoryview

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

values mean True or False

A

Boolean (bool)

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

integers are whole numbers, can be
positive or negative

A

Integers (int)

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

numbers with decimal, can be positive or negative

A

Float (float)

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

You can get the data type of a variable with the ___

A

type()function

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