In: Computer Science
For each of the code description on left, you will select its most appropriate answer from the right. There is only one answer to each code description:
Group of answer choices
A function signature with a function name, its list of parameter types, and its return type.
[ Choose ] continue statement float function declaration pass by value double local variable function definition pass by reference break statement int const variable switch statement pass by pointer static variable global variable default value/argument
A function with its body of code written.
[ Choose ] continue statement float function declaration pass by value double local variable function definition pass by reference break statement int const variable switch statement pass by pointer static variable global variable default value/argument
A variable declared inside a function
[ Choose ] continue statement float function declaration pass by value double local variable function definition pass by reference break statement int const variable switch statement pass by pointer static variable global variable default value/argument
A variable declared outside a function
[ Choose ] continue statement float function declaration pass by value double local variable function definition pass by reference break statement int const variable switch statement pass by pointer static variable global variable default value/argument
A literal of value 8.0
[ Choose ] continue statement float function declaration pass by value double local variable function definition pass by reference break statement int const variable switch statement pass by pointer static variable global variable default value/argument
A literal of value 8.0F
[ Choose ] continue statement float function declaration pass by value double local variable function definition pass by reference break statement int const variable switch statement pass by pointer static variable global variable default value/argument
The default method of passing arguments to parameters inside a C++ function
[ Choose ] continue statement float function declaration pass by value double local variable function definition pass by reference break statement int const variable switch statement pass by pointer static variable global variable default value/argument
The default method of passing an array into a C++ function
[ Choose ] continue statement float function declaration pass by value double local variable function definition pass by reference break statement int const variable switch statement pass by pointer static variable global variable default value/argument
Cause the flow of control inside an inner FOR loop to advance to the next iteration in the same loop when possible.
[ Choose ] continue statement float function declaration pass by value double local variable function definition pass by reference break statement int const variable switch statement pass by pointer static variable global variable default value/argument
Cause the flow of control in the a DO-WHILE loop to exit it.
[ Choose ] continue statement float function declaration pass by value double local variable function definition pass by reference break statement int const variable switch statement pass by pointer static variable global variable default value/argument
This is used in place of the missing trailing arguments in a function call.
[ Choose ] continue statement float function declaration pass by value double local variable function definition pass by reference break statement int const variable switch statement pass by pointer static variable global variable default value/argument
A function signature with a function name, its list of parameter types, and its return type.
-->It is called function declaration i.e you are telling the compiler that this is a function with a name, list of parameters and their type and also what the function will return. It will be declared as return_type function_name ( parameter list ).
A function with its body of code written.
--> It is called as function definition which describes what things function will do when called. Functions are called either using class objects or directly using class name if they are declared as static.
A variable declared inside a function
--> It is called local variable as it has scope of being locally available only till the function ends. It cannot be accessed outside the function.
A variable declared outside a function
--> It is called global variable and has scope of being globally available throughout the program.
A literal of value 8.0
--> It is a double which helps in storing decimal numbers. declared like double var=8.0
A literal of value 8.0F
--> It is a float since floating point variables have 'F' in their value. declared like float var=8.0F
The default method of passing arguments to parameters inside a C++ function
--> By default C++ uses pass by value i.e the values of arguments cannot be altered within the function which were used in calling that function.
The default method of passing an array into a C++ function
--> Arrays are passed using pass by reference . Pointer to the first element is passed which help in further operations which are done in the function.
Cause the flow of control inside an inner FOR loop to advance to the next iteration in the same loop when possible.
--> This is done using continue statment , using it the flow of control is continued from a given point for the next iteration. It is mostly used in conditions when user wants to skip something in a loop.
Cause the flow of control in the a DO-WHILE loop to exit it.
--> It is done using break , it helps in coming out of the loop at certain point.
This is used in place of the missing trailing arguments in a function call.
--> Default value/argument are used in place of the missing trailing arguments in a function call, which further helps in operations done within a function.