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

  Identifies the cost of computer

identifies the cost of computer components to configure a computer system (including all peripheral devices where needed) for use in one of the following four situations:

  Input devices

Compare how the gestures data is generated and represented for interpretation in each of the following input devices. In your comparison, consider the data formats (radio waves, electrical signal, sound, etc.), device drivers, operating systems suppo..

  Cores on computer systems

Assignment : Cores on Computer Systems:  Differentiate between multiprocessor systems and many-core systems in terms of power efficiency, cost benefit analysis, instructions processing efficiency, and packaging form factors.

  Prepare an annual budget in an excel spreadsheet

Prepare working solutions in Excel that will manage the annual budget

  Write a research paper in relation to a software design

Research paper in relation to a Software Design related topic

  Describe the forest, domain, ou, and trust configuration

Describe the forest, domain, OU, and trust configuration for Bluesky. Include a chart or diagram of the current configuration. Currently Bluesky has a single domain and default OU structure.

  Construct a truth table for the boolean expression

Construct a truth table for the Boolean expressions ABC + A'B'C' ABC + AB'C' + A'B'C' A(BC' + B'C)

  Evaluate the cost of materials

Evaluate the cost of materials

  The marie simulator

Depending on how comfortable you are with using the MARIE simulator after reading

  What is the main advantage of using master pages

What is the main advantage of using master pages. Explain the purpose and advantage of using styles.

  Describe the three fundamental models of distributed systems

Explain the two approaches to packet delivery by the network layer in Distributed Systems. Describe the three fundamental models of Distributed Systems

  Distinguish between caching and buffering

Distinguish between caching and buffering The failure model defines the ways in which failure may occur in order to provide an understanding of the effects of failure. Give one type of failure with a brief description of the failure

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