Programming

Cards (9)

  • Variable
    A value that can change, depending on conditions or on information passed to the program.
  • Constant
    A value that cannot be altered by the program during normal execution, i.e., the value is constant.
  • Operator
    A generic term in Computer Science. An operator tells how you to manipulate or interpret values. Categories of operators you will need to know are: Arithmetic, Boolean, Comparison.
  • Assignment
    Giving a variable or constant a value. e.g. counter = 0
  • Programming constructs
    • Sequence
    • Selection
    • Iteration
  • Sequence
    One of the 3 basic programming constructs. Instructions happening one after the other in order is sequence.
  • Selection
    One of the 3 basic programming constructs. Instructions which can evaluate a Boolean expression and then branch the code to one or more alternatives paths is branching / selection.
  • Count controlled iteration
    An iteration which loops a fixed number of times. The count is kept in a variable called an index or counter. When the index reaches a certain value (the loop bound) the loop will end. Count-controlled repetition is often called definite repetition because the number of repetitions is known before the loop begins executing.
  • Condition controlled iteration
    A way for computer programs to repeat one or more various steps depending on conditions set either by the programmer initially or real-time by the actual program.