Hacks

Answer these:

  • In your own words, briefly explain by writing down what an assignment operator is
    • An assignment operator asigns the value on the right of it (in this case =) to the variable on the left.
  • In Collegeboard pseudocode, what symbol is used to assign values to variables?
    • Collegeboard pseudocode uses the arrow, <–, to assign values to variables.
  • A variable, x, is initially given a value of 15. Later on, the value for x is changed to 22. If you print x, would the command display 15 or 22?
    • The command would display 22, since it has been updated and assigned the new value.

  • What is a list?
    • A list is finite series of ordered values.
  • What is an element
    • An element a smaller part in a bigger system, such as an item in a list.
  • What is an easy way to reference the elements in a list or string?
    • An easy way to reference the elements in a list/string is to index it (the 3rd element, 2nd element, etc).
  • What is an example of a string?
    • example of a string: “cookie monster”