In the function definition calculateArea(length, width), length and width are examples of this type of variable.
What are parameters?
This keyword sends a value back from a function to the program.
What is RETURN?
A programming library is best described as this.
What is a collection of prewritten code/functions?
A named group of instructions that performs a specific task.
What is a function?
To stay cool, this legendary Yankee nicknamed "The Bambino" famously wore a cabbage leaf under his cap while playing the outfield.
Who is Babe Ruth?
In the function call calculateArea(10, 5), the values 10 and 5 are called this.
What are arguments?
What value is returned?
What is 8?
While the collection of pre-written procedures helps with code reuse, it is this, often mistaken for the library itself, that acts as the "contract" or documentation defining the procedures, inputs, and expected return values.
What is an API?
The practice of hiding complex implementation details behind a function interface is called this.
What is abstraction?
This planet is known as the Red Planet.
What is Mars?
What will be displayed?
What is 12?
What value will result contain?
What is 12?
Using a library without understanding its internal code relies on this concept.
What is abstraction?
Breaking a program into smaller parts or functions is known as this strategy.
What is modularity?
This metal has the chemical symbol Fe.
What is Iron?
What will be displayed?
What are 8 and 9?
What is the final value of value?
What is 25?
Libraries improve reliability because their code has often already been this.
What is tested or debugged?
While this technique reduces code redundancy and improves readability, using it excessively or improperly—such as nesting too many, or defining a procedure that relies on global variables—can actually increase this, which is ironically what abstraction is supposed to manage.
What is program complexity?
This desert is the largest hot desert in the world.
What is the Sahara Desert?
What will be displayed?
What are 7 and 11?
What will be stored in result?
What is 30?
While libraries are designed to increase efficiency and reuse code, this specific type of error often occurs when a library function is imported and used, but the program fails because the imported code directly references global variables that do not exist in the new program’s scope.
What is a run-time error?
A programmer writes one function with parameters instead of five separate functions that do nearly the same task. What two major programming benefits does this demonstrate?
What are code reuse and procedural abstraction?
Because they have dense, heavy bones, these mammals cannot actually swim, so they perform a slow-motion gallop along the bottom of the riverbed instead.
What are hippos?