Reference no: EM131018452
If I were to declare a function as follows:
void increment(int* pX);
This function WILL be able to alter the value of the integer that was used as the argument.
Select one:
TrueFalse
When an argument is passed-by-value, changes in the called function __________ affect the original variable's value; when an argument is passed call-by-reference, changes in the called function __________ affect the original variable's value.
Select one:
a. Do not, dob. Do not, do notc. Do, dod. Do, do not.
What is the type of the variable p in the following statement?
int *p;
Select one:
a. pointer-to-intb. reference-to-intc. intd. pointer-to-reference-to-int
Overloaded functions must have:
Select one:
a. Different parameter lists.b. Different return types.c. The same number of parameters.d. The same number of default arguments
An activation record will be popped off the function call stack whenever:
Select one:
a. A function returns control to its caller.b. A function calls another function.c. A function calls itself.d. A function declares a local variable
Functions can:
Select one:
a. Be used as building blocks to create new programs.b. Return a result to the caller function.c. Be reused any number of times.d. Do all of the above.
A recursive function is a function that
Select one:
a. Returns a doubleb. takes 3 argumentsc. calls itself, either directly, or indirectlyd. is inside another function
f a set of functions have the same program logic and operations and differ only in the data type(s) each receives as argument(s) then a(n) __________ should be used.
Select one:
a. overloaded functionb. recursive functionc. macrod. function template
All of the following are true of functions except:
Select one:
a. They define specific tasks that can be used at many points in a program.b. A function call must specify the name and arguments of the function.c. A function signature does not need to appear in the code before the first time it is usedd. The implementation of a function is hidden from the caller.
A class definition has:
Select one:
a. member functionsb. member datac. a main methodd. a and b
The function prototype
double mySqrt( int x );
Select one:
a. Declares a function called mySqrt which takes an integer as an argument and returns a double.b. Defines a function called double which calculates square roots.c. Defines a function called mySqrt which takes an argument of type x and returns a double.d. Declares a function called mySqrt which takes a double as an argument and returns an integer.
Which of the following are correct with regard to pointers:
Select one:
a. A pointer is a memory addressb. A pointer contains a hexidecimal numberc. A pointer can be NULL or 0d. A pointer can be used to store the memory address of a variablee. all of the above
What happens when two blocks, one nested inside of the other, both declare variables with the same identifier? (Assume that the outer block declares its variable before the opening left-brace of the inner block.)
Select one:
a. A syntax error occurs.b. The "outer" variable is hidden while the "inner" variable is in scope.c. The "outer" variable is irretrievably lost when the "inner" variable is declared.d. The "inner" declaration is ignored and the "outer" variable has scope even inside the inner block
A /28 block of addresses
: A /28 block of addresses is granted to a small organization. Assuming that one of the valid addresses in the network is 205.16.37.39, determine the first and the last address in the block in this network block and therefore show the classless interdo..
|
What is the joint profit-maximizing price
: What is the joint profit-maximizing price - What profit would each store make if it set this price and What price will each firm charge in the equilibrium for this game?
|
Why is it challenging for businesses to align mis
: Using Internet and other resources do some research and answer the question - Why is it challenging for businesses to align MIS and their other operations?
|
Does the claim made by r. edward freeman that managers have
: Does the claim made by R. Edward Freeman that managers have an obligation to take into consideration the rights and interests of all legitimate stakeholders, above and beyond the law, seem plausible to you? Why, or why not? Explain.
|
Void increment
: If I were to declare a function as follows: void increment(int* pX); This function WILL be able to alter the value of the integer that was used as the argument.
|
The current source file or in any source file
: a. Determines whether an identifier is known only in the current source file or in any source file with proper declarations.b. Determines the period during which that identifier exists in memoryc. Determines where the identifier can be referenced in ..
|
Calculate the price elasticity of demand
: Calculate the price elasticity of demand when price equals $7500. Should Koko raise or lower the price of ATGM to gain more revenue if the current price is $7500? Why
|
Remote access and cryptographic protocols
: Remote access is essential to many organizations; however, it exposes the organization's information systems network to a variety of security threats. There are different countermeasures available to combat such threats and each organization must sel..
|
Do you identify with any of the characters or situations
: Do you identify with any of the characters or situations? If so, does this sense of identification help or interfere with your response? How so?
|