Data Types and Operators Flashcards

To Be Able To Identify And Correctly Use Different Data Types And Operators (11 cards)

1
Q

What is a Data Type in Programming?

A

A Data Type in Programming is grouping data values

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

What are the four Data Types in Python?

A

The four Data Types in Python are String, Integer, Float, and Boolean.

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

What is the String Data Type?

A

The String Data Type is anything enclosed within speech marks.

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

What is the Integer Data Type?

A

The Integer Data Type is any whole number.

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

What is the Float Data Type?

A

The Float Data Type is any number that has a decimal point.

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

What is the Boolean Data Type?

A

The Boolean Data Type is when the output will always be True or False.

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

What is the name given to the process of changing from one Data Type to another?

A

When changing from one Data Type to another in Python we call it Type Casting/Conversion.

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

What does BIDMAS stand for?

A

BIDMAS stands for Brackets, Indices, Division, Multiplication, Addition, Subtraction.

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

What is the purpose of BIDMAS?

A

The purpose of BIDMAS is that it’s an acronym used to remember the order in which to complete maths questions using operators.

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

What is the sign for Floor Division and what does it do?

A

The sign for Floor Division is:

//

Floor Division divides the first number by the second number and it gives the user the whole number answer.

e.g. 15//2 = 7

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

What is the sign for Modulus and what does it do?

A

The sign for Modulus is:

%

Modulus divides the first number by the second number and it gives you the remainder of the answer.

e.g. 9%2 = 1

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