IT 116: Introduction to Scripting
Class 12 Ungraded Quiz
-
What do you call a variable that is defined inside a function?
-
If a variable is defined inside a function, can another function see
the value of that variable?
-
If a variable is defined inside a function, can the code outside
all functions see the value of that variable?
-
Can a variable not declared inside a function have the same name as a
variable defined inside a function?
-
Can two functions have a variables with the same name?
-
What do you call the variables that are listed inside the parentheses
of a function header?
-
Where do parameters get their values?
-
Write the function header for a function named calculate_interest
that has two parameters principle and interest.
-
What do you call the expressions (values), inside a function call?
-
Write the function cheer that has the single parameter team
and prints a cheer for that team.