GoConqr hat ein neues Design! Sag uns, wie es dir gefällt.

Karteikarten

Chapter 7 Iteration

Gelöschter Nutzer Der Nutzer hat seine Fachbereichs-Information gelöscht. Englisch 30 Karten

Karten in diesem Stapel (30)

  1. 1AlgorithmA step by step process for solving a category of problems
  2. 2BodyThe statements inside a loop
  3. 3BreakpointA place in your program code where program execution will pause, allowing you to inspect the state of the program's variables, or single step through individual statements, executing them one at a time
  4. 4BumpProgramming slang. Synonym for increment
  5. 5Continue StatementA statement that causes the remainder of the current iteration of a loop to be skipped. The flow of execution goes back to the top of the loop, evaluates the condition, and if this is true the next iteration of the loop will begin.
  6. 6CounterA variable used to count something, usually initialized to zero and incremented in the body of a loop
  7. 7CurserAn invisible marker that keeps track of where the next character will be printed
  8. 8DecrementDecrease by 1
  9. 9Definite IterationA loop where we have an upper bound on the number of times the body will be executed. Definite iteration is usually best coded as a for loop.
  10. 10Development PlanA process for developing a program. In this chapter, we demonstrated a style of development based on developing code to do simple, specific things and then encapsulating and generalizing.
  11. 11EncapsulateTo divide a large complex program into components (like functions) and isolate the components from each other (by using local variable, for example)
  12. 12Escape SequenceAn escape character, \, followed by one or more printable characters used to designate a non printable character.
  13. 13GeneralizeTo replace something unnecessarily specific (like a constant value) with something appropriately general (like a variable or parameter). Generalization makes code more versatile, more likely to be reused, and sometimes even easier to write.
  14. 14IncrementBoth as a noun and as a verb, increment means to increase by 1.
  15. 15Infinite LoopA loop in which the terminating condition is never satisified
  16. 16Indefinite IterationA loop where we just need to keep going until some condition is met. A while statement is used for this case.
  17. 17Initialization (of a variable)To initialize a variable is to give it an initial value. Since in Python variables don't exist until they are assigned values, they are initialized when they are created. In other programming languages this is not the case, and variables can be created without being initialized, in which case they have either default or garbage values.
  18. 18IterationRepeated execution of a set of programming statements.
  19. 19LoopThe construct that allows us to repeatedly execute a statement or a group of statements until a terminating condition is satisfied.
  20. 20Loop variableA variable used as part of the terminating condition of a loop.
  21. 21Meta-notationExtra symbols or notation that helps describe other notation. Here we introduced square brackets, ellipses, italics, and bold as meta-notation to help describe optional, repeatable, substitutable and fixed parts of the Python syntax.
  22. 22Middle-test LoopExtra symbols or notation that helps describe other notation. Here we introduced square brackets, ellipses, italics, and bold as meta-notation to help describe optional, repeatable, substitutable and fixed parts of the Python syntax.
  23. 23Nested LoopA loop inside the body of another loop
  24. 24NewlineA special character that causes the cursor to move to the beginning of the next line
  25. 25Post-test LoopA loop that executes the body, then tests for the exit condition. We don't have a special Python construct for this, but can use while and break together.
  26. 26Pre-Test LoopA loop that tests before deciding whether to execute its body. for and while are both pre-test loops.
  27. 27Single-StepA mode for interpreter execution where you are able to execute your program one step at a time, and inspect the consequences of that step. Useful for debugging and building your internal mental model of what is going on.
  28. 28TabA special character that causes the cursor to move to the next tab stop on the current line.
  29. 29TrichotomyGiven any real numbers a and b, exactly one of the following relations hold: ab, or a==b. Thus when you can establish that two of the relations are false, you can assume the remaining one is true.
  30. 30TraceTo follow the flow of execution of a program by hand, recording the change of state of the variables and any output produced.

Informationen

Beschreibung
Der Nutzer hat seine Fachbereichs-Information gelöscht. Karteikarten am Chapter 7 Iteration, erstellt von Gelöschter Nutzer am 22/09/2016.
Erstellt von
Gelöschter Nutzer
Aufrufe
34
Verlauf
  • Erstellt von Troy Bowlin · 19 Mai 2016
  • Kopiert von Troy Bowlin · 22 Sep 2016
Bewertung

Feedback

Worum geht es?

Wie gefällt dir das neue Design?

Dein Eindruck