Python Programming Flashcards

1
Q

What is a variable?

A

A place to store data that can change, such as integers or strings.

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

What is type casting?

A

Setting the data type to another data type.

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

What does input mean?

A

Input means to put data into a code.

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

What does process mean?

A

Process means the actions that take place with the data.

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

What does output mean?

A

An output is what you get from the data/ how the data is displayed.

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

Write an example of output.

A

Print()

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

Write an example of input.

A

Input()

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

What is the symbol for multiplication?

A

*

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

What is the symbol for division?

A

/

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

What is the purpose of the Turing test?

A

To test how human like AI can actually get.

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

What is the name for adding a string and variable together?

A

Concatenation.

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

What does .strip() do

A

Removes the spaces at the start and end.

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

What does len() do?

A

Finds out the length of the string .

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

What does [] mean?

A

Position.

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

What is this data type? “Deven577”

A

String

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

What is this data type? 577

A

Integer

17
Q

What is this data type? 5.77

A

Real/Float

18
Q

What is this data type? false

A

Boolean

19
Q

What is “equal to” in python?

A

==

20
Q

What is “not equal to” in python?

A

!=

21
Q

What is “greater than” in python?

A

>

22
Q

What is “less than” in python?

A
23
Q

What is “greater than or equal to” in python?

A

> =

24
Q

What is “less than or equal to” in python?

A

<=

25
Q

What is iteration?

A

Loop that repeats the code linked to it.

26
Q

What is definite iteration?

A

Loop that repeats for a number amount of times.

27
Q

What is indefinite iteration?

A

A loop that repeats the program for an undetermined time.

28
Q

What is authentication?

A

Prove something is what it needs to be.

29
Q

What is validation?

A

Checking data that has been entered.

30
Q

What is an example of indefinite iteration?

A

While

31
Q

What is an example of definite iteration?

A

For