Exercise No. 3.01
Answer each of the following:
Program components in C++ are called _______ and _______ .
A function is invoked with a _________ .
A variable that is known only within a function in which it is defined is called a ___________ .
The ________ statement is in a called function is used to pass the value of an expression back to calling function.
The keyword ________ is used in a function header to indicate that a function does not return a value or to indicate that a function contains no parameters.
The three ways to return control from a called function to a caller are ______ , _____ and _____ .
A ________ allows the compiler to check the number, types and order of the arguments passed to a function.
Function ________ is used to produce random numbers.
Function ________ is used to set the random number seed to randomize a program.
Function ________ is used to set the random number seed to randomize a program.
Solution
Program components in C++ are called functions and classes .
A function is invoked with a function call.
A variable that is known only within a function in which it is defined is called a local variable.
The return statement is in a called function is used to pass the value of an expression back to calling function.
The keyword void is used in a function header to indicate that a function does not return a value or to indicate that a function contains no parameters.
The three ways to return control from a called function to a caller are ______ , _____ and _____ .
A ________ allows the compiler to check the number, types and order of the arguments passed to a function.
Function ________ is used to produce random numbers.
Function ________ is used to set the random number seed to randomize a program.
Function srand() is used to set the random number seed to randomize a program.
Answer each of the following:
Program components in C++ are called _______ and _______ .
A function is invoked with a _________ .
A variable that is known only within a function in which it is defined is called a ___________ .
The ________ statement is in a called function is used to pass the value of an expression back to calling function.
The keyword ________ is used in a function header to indicate that a function does not return a value or to indicate that a function contains no parameters.
The three ways to return control from a called function to a caller are ______ , _____ and _____ .
A ________ allows the compiler to check the number, types and order of the arguments passed to a function.
Function ________ is used to produce random numbers.
Function ________ is used to set the random number seed to randomize a program.
Function ________ is used to set the random number seed to randomize a program.
Solution
Program components in C++ are called functions and classes .
A function is invoked with a function call.
A variable that is known only within a function in which it is defined is called a local variable.
The return statement is in a called function is used to pass the value of an expression back to calling function.
The keyword void is used in a function header to indicate that a function does not return a value or to indicate that a function contains no parameters.
The three ways to return control from a called function to a caller are ______ , _____ and _____ .
A ________ allows the compiler to check the number, types and order of the arguments passed to a function.
Function ________ is used to produce random numbers.
Function ________ is used to set the random number seed to randomize a program.
Function srand() is used to set the random number seed to randomize a program.
0300-9520262
Get solution in 24 hour |cpmputer & internet
mileys81:[SIZE="4"][SIZE="3"]....[/SIZE][/SIZE]
