computing : data types Flashcards

1
Q

What data type holds whole numbers in Python?

A

Integer

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

What data type holds numbers with decimal points?

A

Float

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

What data type holds alphanumeric data as text?

A

String

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

What data type holds only one character (like a letter or symbol)?

A

Character

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

What data type holds either True or False?

A

Boolean

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

What operator is used for addition in Python?

A

+

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

What operator is used for multiplication in Python?

A

*

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

What operator is used for division in Python?

A

/

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

What operator is used for subtraction in Python?

A

-

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

What is it called when you manually change a variable’s data type in Python?

A

Casting

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

What function do you use to convert something into a string in Python?

A

str()

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

What function do you use to convert something into an integer in Python?

A

int()

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

What function do you use to convert something into a float in Python?

A

float()

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