Arithmetic Operators
Data Types
Variables
Booleans
Logic Gates
100

What does 10 % 3 return?

1

100

What type is 42?

int

100

What symbol assigns a variable & value?

=

100

What two values can a bool hold?

True, False

100

Which gate needs BOTH inputs True?

AND

200

What is 2 ** 3?

8

200

What type is "Houston"?

str

200

After alt=408; alt=alt+12, what's in alt?

420

200

Is 5 == 5 True or False?

True

200

Which gate outputs True if EITHER input is True?

OR

300

15 // 4 = ?

3

300

What does "launch" * 3 return?

launchlaunchlaunch

300

After a=1; b=2; a=b, what's in a?

2

300

True and False = ?

False

300

NOT True = ?

False 
400

(2 + 3) * 4 - 1 = ?

19

400

What type is 7.0?

float

400

What's wrong with: 3x = 10?

Can't start variable name with a number

400

not (True or False) = ?

False 
400

Name a spacecraft system conditions using AND logic

e.g. Launch: fuel full AND weather clear

500

How do you check if n is even using one operator?

n % 2 == 0

500

What does "5" + "3" return and why?

"53" & string concatenation

500

How do you swap two variables without losing data?

Use a temp variable

500

When does an AND gate output True?

Only when BOTH inputs are True

500

What are the physical inputs to a logic gate circuit in today's lab?

Switches (on/off = True/False)

M
e
n
u