Module 3: While loops Flashcards

1
Q

body of the loop should change ________ so condition becomes false eventually and loop terminates.

A

value of one or more variables

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

________ is a way of computing square roots.

A

babylonian method

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

The babylonian method uses the formula _______.

A

y = (g + (a/g))/2

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

debugging by _______ is when you break the problem in half to find bugs.

A

bisection

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

_______ is a general process for solving a category of problems.

A

algorithm

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

in python a function is a ______, a number is a _______ and a string is a ________

A

value x3

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

If the condition of a while loop is _______, it exits the while statement and continues execution at the next statement.

A

false

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

If the condition of a while loop is ______, it runs the body and then goes back step 1.

A

true

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

The body of a while loop needs to change ________ variables so the condition eventually becomes _______ and terminates.

A

1 or more
false

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