Font size
WorksheetsQUIZ CC 102 (FUNCTIONS)
Total questions: 15
Worksheet time: 9mins
It means that the functions does not have a return value.
void
viod
int
string
It is inside the function where you can add code(s) that defines what function should do.
declaration
definition/function body
parameters
void
This part of c++ function that consists of the return type, the name of the function and the parameters (if any)
Function Declaration
Function Definition
arguments
parameters
This part of c++ function that consist of the body of the function or the code to be executed.
Function Declaration
Function Definition
arguments
parameters
These are specified after the function name, inside the parentheses. Also act as variables inside the function.
variables
return type
parameters
function
Give the syntax to call a function with out paramater named "myFunction".
(a)
Give the syntax to declare a function without parameter named "myFunction".
(a)
These are modules or segments of code that perform individual tasks.
(a)
A parameter with a default value, is often known as (a) ?
This can be useful when you need to change the value of the arguments.
(a)
TRUE or FALSE: You can also pass arrays as function parameters.
TRUE
FALSE
TRUE or FALSE: In C++, a function is a single statements that is given a name, and which can be called from some point in the program
TRUE
FALSE
TRUE or FALSE: Functions are used to perform certain actions, and they are important for reusing code: Define the code once, and use it many times.
TRUE
FALSE
TRUE or FALSE: To declare a function, specify the name of the function, followed by the square brackets.
TRUE
FALSE
TRUE or FALSE: Declared functions are not executed immediately. They are “saved for later use”, will be executed later, when they are called.
TRUE
FALSE
