c++ chapter 6 T/F

True

T/F Functions should be given names that reflect their purpose.

False

T/F Function headers are terminated with a semicolon.

True

T/F Function prototypes are terminated with a semicolon.

True

T/F If other functions are defined before the main, the program still starts executing at the main function.

False

T/F When a function terminates, it always branches back to the main, regardless where it was called from.

True

T/F Arguments are passed to the function parameters in the order they appear in the function call.

True

T/F The scope of the parameter is limited to the function which uses it.

False

T/F Changes to a function parameter always affect the original argument as well.

True

T/F In a function prototype, the names of the parameter variables may be left out.

True

T/F Many functions may have local variables with the same name.

True

T/F Overuse of global variables can lead to problems.

True

T/F Static local variables are not destroyed when a function returns.

False

T/F All static variables are initialized to -1 by default.

True

T/F Initialization of static local variables only happen once, regardless of how many times the function in which they are defined is called.

True

T/F When a function with default arguments is called and an argument is left out, all arguments that come after it must be left out as well.

False

T/F It is not possible for a function to have some parameters with default arguments and some without.

False

T/F The exit function can only be called from the main.

True

T/F A stub is a dummy function that is called instead of the actual function it represents.