Creative Development Flashcards
1
Q
What is a syntax error?
A
mistake in the program where rules are not followed; undefined variable, parenthesis missing, indentation, etc
2
Q
What is a logic error?
A
(you added instead of multiplying) Ex. MOD 2= 1 returns even – logic is wrong
3
Q
What does this mean?
If (my list) [item] = val
A
this is a condition statement that sents the index from the list to val
4
Q
Return happened outside of for loop because it might loop that return statement again and again. T or F?
A
T
5
Q
what is the easiest way to solve a repeat _ times loop?
A
Multiply the number of times and the increment value Example: result= 3 times repeat 4 times result= result +6 Display result
(6*4) +3 = 27