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

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

What is a logic error?

A

(you added instead of multiplying) Ex. MOD 2= 1 returns even – logic is wrong

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
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

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

Return happened outside of for loop because it might loop that return statement again and again. T or F?

A

T

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
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

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