Void increment

Assignment Help Basic Computer Science
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

Reference no: EM131018452

Questions Cloud

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?

Reviews

Write a Review

Basic Computer Science Questions & Answers

  Force shutdown a pc

Force shutdown a PC

  Explain computer etiquette for effective communication

Each day we should be careful to insure that personal information is not compromised. Computer etiquette is difficult for effective communication.

  Explain how erp meets the needs of the stakeholders

Explain how ERP meets the needs of the Stakeholders

  Design a modular pro-gram

There are three seating categories at a stadium. For a softball game, Class A seats cost $15, Class B seats cost $12, and Class C seats cost $9. Design a modular pro-gram that asks how many tickets for each class of seats were sold, and then dis-p..

  What cost cutting measures are proposed

What cost cutting measures are proposed and How will the expanded coverage be paid for?

  The requirements for tal distributors have changed

The requirements for TAL distributors have changed. A number and a name now identify each storehouse. Units of each item may be stored in multiple storehouses, and it is important to know precisely how many items are stored in each storehouse. I addi..

  Provide specific mitigation strategies

Provide specific mitigation strategies for any issues that could detract from the project

  Display the name of the server as well as any cookie

Now try and see what happens if this variable is declared as a JSP scriptlet. c.Also display the name of the server as well as any cookie information that you can find.

  Accordance to the recommendations

Write a report in accordance to the recommendations of the links on the study desk. The word-count limit for the introduction, body and conclusion of this report is set at about 3000 words

  Write computer code to perform a discrete fourier transform

Write computer code to perform a Discrete Fourier Transform and use it to find the Fourier transform of the pressure data for Task 4 (the crank angle data and volume data are also given but you don't need it for this Task). The last piece of infor..

  How would the distributed 2pl transaction manager

How would the distributed 2PL transaction manager and lock manager algorithms change if a distributed computational model were used?

  Explain the management of high-assurance software

The company does not adduce any additional evidence of assurance. How would you explain to the management of this company why their software is in fact not "high-assurance" software?

Free Assignment Quote

Assured A++ Grade

Get guaranteed satisfaction & time on delivery in every assignment order you paid with us! We ensure premium quality solution document along with free turntin report!

All rights reserved! Copyrights ©2019-2020 ExpertsMind IT Educational Pvt Ltd