Module 1 Flashcards
FUNCTIONS & FUNCTIONS PARAMETERS
1
Q
- in programming, are collections of statements that work together to complete tasks.
A
Functions
2
Q
- Library Functions
- User Defined Functions
A
Types of Functions
3
Q
- may return a value or perform an action without returning a value (void functions)
A
Function Structure
4
Q
- Declarations of functions before their actual use in program
A
Function Prototypes
5
Q
- invoking a user-defined function to execute its code
- passing arguments to the function if required.
A
Function Call
6
Q
- actual implementation of the function, including its body.
- contains parameters if any, local variables, and return statements.
A
Function
7
Q
- Function with no argument and no return value
- Function with no argument but returns a value
- Function with argument but no return value
- Function with argument and return value
A
Types of User Defined Functions
8
Q
- also known as non-value returning functions
- stand-alone statement
A
Void Functions
9
Q
variables created within a function.
A
Local Variables
10
Q
- act as variables inside the function.
- multiple parameters separated by commas are allowed.
- are specified after the function name, inside the parenthesis
A
Function Parameters
11
Q
variable in the declaration of function
A
Parameter
12
Q
actual value of this variable that gets passed to function
A
Argument
13
Q
- functions without a returning value.
- return statement gathers value from the function and returns it to the caller.
A
Void Functions
14
Q
- values specified in function declarations
- assigned by the compiler if no value is specified in the function call.
- default value can be overridden by passing a value
A
Default Arguments
15
Q
- Functions can accept parameters and return values.
- Parameters specified in function prototypes and definitions.
- Arguments passed to functions during function calls.
A
User Defined Functions with Parameters