What does 10 % 3 return?
1
What type is 42?
int
What symbol assigns a variable & value?
=
What two values can a bool hold?
True, False
Which gate needs BOTH inputs True?
AND
What is 2 ** 3?
8
What type is "Houston"?
str
After alt=408; alt=alt+12, what's in alt?
420
Is 5 == 5 True or False?
True
Which gate outputs True if EITHER input is True?
OR
15 // 4 = ?
3
What does "launch" * 3 return?
launchlaunchlaunch
After a=1; b=2; a=b, what's in a?
2
True and False = ?
False
NOT True = ?
(2 + 3) * 4 - 1 = ?
19
What type is 7.0?
float
What's wrong with: 3x = 10?
Can't start variable name with a number
not (True or False) = ?
Name a spacecraft system conditions using AND logic
e.g. Launch: fuel full AND weather clear
How do you check if n is even using one operator?
n % 2 == 0
What does "5" + "3" return and why?
"53" & string concatenation
How do you swap two variables without losing data?
Use a temp variable
When does an AND gate output True?
Only when BOTH inputs are True
What are the physical inputs to a logic gate circuit in today's lab?
Switches (on/off = True/False)