Data types! Flashcards

1
Q

What are data types?

A

Data types are classifications that categorise various types of data that are stored in variables.

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

What is int(integer)?

A

Represents integral numbers(numbers without any fractional part)There are three types; integer, long integer and boolean.

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

Explain the types of integer in python.

A

integer(int)- represents values in the range for -2147483648 to 2147483647. long integer(long int)-support the values that lie beyond the range of integers. boolean(bool)-It represents logical values in the form of true and false, where 0 represents False and 1 represents True

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

What is float?

A

Represents floating point values(numbers with a fractional part). The fractional part of a floating point number may also be 0.

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

What is string(str)

A

A string data type represents strings of characters enclosed within single or double quotation marks(‘ ‘ or “ “)

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