2 Simple Data Flashcards
1
Q
Assignment Token
A
=
2
Q
Reference Diagram
A
State Snapshot
3
Q
State Snapshot
A
Reference Diagram
4
Q
Variable naming rules
A
Technically can be LC letter or underscore, NO #s
5
Q
Keywords
A
and, as, not, etc.
6
Q
Statement
A
An instruction that an interpreter can execute
7
Q
An instruction that an interpreter can execute
A
Statement
8
Q
Expression
A
Combo of vals, vars, ops, and funct calls that must be evaluated; produces a value.
9
Q
Combo of vals, vars, ops, and funct calls that must be evaluated; produces a value.
A
Expression
10
Q
Statement vs. Expression–which one returns?
A
Expression
11
Q
% Name
A
Modulo
12
Q
Return rightmost digit trick
A
x % 10
13
Q
x divisible by y trick
A
if x % y = 0, x is divisible by y
14
Q
Input code
A
input(“prompt “)
15
Q
Which bastard evaluates R-L?
A
**