1/16
These flashcards cover key vocabulary and concepts related to functions and parameters in programming as discussed in the CS 110 lecture notes.
Name | Mastery | Learn | Test | Matching | Spaced |
|---|
No study sessions yet.
Function
A collection of statements that are grouped together to perform an operation.
Void function
A function that does not return a value.
Value returning function
A function that returns a value after execution.
Function definition
The code that defines what a function does, including the function body.
Parameters
Variables in a function header that accept values when the function is called.
Arguments
Actual values passed to function parameters when invoking a function.
Call stack
A stack data structure that stores information about the active subroutines or functions in a program.
Function syntax
The format used to define a function, including return type, name, and parameters.
Function signature
The combination of the function name and its parameter list.
Return value type
The data type of the value returned by a function.
Invoke a function
To call or execute a function within the program.
Actual parameters
Values that are passed to the function when it is called.
Formal parameters
Variables that are defined in the function header.
Return statement
A statement used within a function to specify the value that should be returned.
Main method
The entry point of a C++ program where execution begins.
Maximum function
A function that determines which of two numbers is greater and returns that value.
Print statement
A command used to output text or variable values to the console.