IT 116: Introduction to Scripting
Class 12 Ungraded Quiz

  1. What do you call a variable that is defined inside a function?


  2. If the variable is defined inside a function, can another function use that variable?


  3. If the variable is defined inside a function, can the code outside all functions use that variable?


  4. What do you call a variable that is defined outside any function?


  5. Can a function use a variable defined outside any function?


  6. What do you call the variables that are listed inside the parentheses of a function header?


  7. Where do paramaters get their values?


  8. Write the function header for a function named calculate_interest that has two variables named principle and interest inside the parentheses, where the default value for interest is 5.


  9. What do you call the expressions (values), inside a function call?


  10. Write the function cheer that has a single variable called team in its function header and prints a cheer for that team.