Ask Question, Ask an Expert

+61-413 786 465

info@mywordsolution.com

Ask Computer Engineering Expert

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

Computer Engineering, Engineering

  • Category:- Computer Engineering
  • Reference No.:- M91734131

Have any Question?


Related Questions in Computer Engineering

Question 1 using the internet each member of your team

Question: 1. Using the Internet, each member of your team should read at least 3 academically reviewed articles on designing. Summarize the articles in 300 words or more. Provide appropriate reference. 2. Combine each su ...

Has globalizationnbspincreased or decreased social and

Has globalization increased or decreased social and economic disparities around the globe? Can you please provide details.

What is the solution for chapter 15 3e for java programming

What is the solution for chapter 15 3e for java programming 8th edition Create a JFrame that holds fjive buttons with the names of five different fonts. Include a sexth button that the user can click to make a font large ...

Question suppose user process application p1 of one

Question : Suppose user process (application) P1 of one computer wishes to transfer data (file) to process (application) P2 on another computer in the Internet. What addressing information about P2 is necessary for P1 to ...

Question what are some risks of the project development

Question : What are some risks of the project development process you might encounter and what can you do to mitigate or avoid the problems? The response must be typed, single spaced, must be in times new roman font (siz ...

A salesforce from an ecommerce global organization has

A salesforce from an ecommerce global organization has begun to raise some concerns about the orders they are transmitting over the Internet from their customers' site to the organization's global headquarters. It seems ...

Write a program in java to satisfy the following create a

Write a program in Java to satisfy the following : Create a class to store information on Network infrastructure assets. Network Infrastructure Asset may include PCs, Monitors, Switches, Routers, Cables, Access Points et ...

What are some of the basic principles involved with

What are some of the basic principles involved with utilizing the ADT stack? What are some applications that could effectively utilize a stack?

Question suppose jim is in a middle school band that is

Question : Suppose Jim is in a middle school band that is selling cookie dough. His mom sends emails to all the employees of her company (100 people), inviting them to stop by after work to place orders for the cookie do ...

The solution of this exercise please 37 creating an

The solution of this exercise please: 3.7 (Creating an Autocomplete Form) Create a simple search form using a search input element in which the user can enter a search query. Using the Firefox web browser, test the form ...

  • 4,153,160 Questions Asked
  • 13,132 Experts
  • 2,558,936 Questions Answered

Ask Experts for help!!

Looking for Assignment Help?

Start excelling in your Courses, Get help with Assignment

Write us your full requirement for evaluation and you will receive response within 20 minutes turnaround time.

Ask Now Help with Problems, Get a Best Answer

Why might a bank avoid the use of interest rate swaps even

Why might a bank avoid the use of interest rate swaps, even when the institution is exposed to significant interest rate

Describe the difference between zero coupon bonds and

Describe the difference between zero coupon bonds and coupon bonds. Under what conditions will a coupon bond sell at a p

Compute the present value of an annuity of 880 per year

Compute the present value of an annuity of $ 880 per year for 16 years, given a discount rate of 6 percent per annum. As

Compute the present value of an 1150 payment made in ten

Compute the present value of an $1,150 payment made in ten years when the discount rate is 12 percent. (Do not round int

Compute the present value of an annuity of 699 per year

Compute the present value of an annuity of $ 699 per year for 19 years, given a discount rate of 6 percent per annum. As