PY-02-P1 Data Types and Conditions Flashcards

1
Q

Constructed of a name and value. They can be thought of as data containers

A

Variables

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

Variable Types

A

Syntax varies depending on the data type. Python will automatically detect the data type.

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

the ____ function is used to ask users for input. Syntax: input( )

A

input

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

Window will close automatically upon execution

A

Fly-by-window issue

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

To print output to the console, use:

A

print(VariableName)

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

A table that defines the results of a binary expression

A

Truth Table

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

Both conditions must be true

A

AND

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

Only one of the operations needs to be true

A

OR

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

Reverses the result of the operation

A

NOT

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

Exclusive OR. True if the results of the operation aren’t similar

A

XOR

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