Search the courses, subjects, tracks, games and features, or jump straight to a page.
3 cards from this section. Quick, good the night before a test.
What do you call the values passed to a function at runtime?
Think about what you provide during function calls.
What is the purpose of formal parameters?
Consider them as placeholders.
What are actual parameters?
Think about if they are provided in the call or defined in the function.
True or False: Formal parameters are values provided during the function call.
Remember their role in function declarations versus calls.
Create a function that converts Celsius to Fahrenheit and calls it with a specific Celsius value. Explain the parameters used.
Focus on how functions transform inputs and ensure correct types.
What would happen if a function expects a string as an argument but receives a number? Provide a code example and explain.
Consider how programming languages enforce types during function calls.
6 more questions in this section. Enroll free to practise them all.
Enroll free