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 is the role of the function name in function definition?
Think about how you would call the function later.
What does the return type in a function definition specify?
Is it an integer, string or something else?
What component of a function specifies what type of value it returns?
Look for what declaration precedes the function name.
True or False: The function body must always contain a return statement.
Consider what a void function does.
Define a function named calculateArea that takes two parameters: width and height, and return the area of a rectangle.
Think about the formula for calculating area.
Write a function findMax that takes three integer parameters and returns the largest among them.
Use comparison to determine the largest value.
5 more questions in this section. Enroll free to practise them all.
Enroll free