Python intro Flashcards

1
Q

True or false, everything to the right of a number is run as code in python.

A

False

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

What is everything to the right of a number called in python? 

A

Comment

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

What is a Boolean variable?

A

A special type of variable that stores just true and false values. 

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

The following is an example of what kind of variable?
Is_billed = True
Print(is_billed)

True

A

Boolean variable

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

In Python, the value, we store in a variable can be a number, a set of characters or a Boolean variable. What would price be considered?

A

Number

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

The process of converting one data type to another data type is called ________?

A

Type conversion 

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

What are the two types of conversions in python?

A
  1. Implicit type conversion.
  2. Explicit type conversion. 
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
8
Q

In what type of conversion does python automatically convert one data type to another in order to avoid data loss?

A

Implicit type conversion 

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

In what type of conversion can the user convert the data type of a variable to the required data type by using the built-in function?

A

Explicit type conversion

Built in functions: int(), float(), str(), etc.

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