Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

1)Select the statement that is NOT true about static and dynamic binding. a. dynamic binding occurs at run time c. pass by reference is an

1)Select the statement that is NOT true about static and dynamic binding.

a. dynamic binding occurs at run time

c. pass by reference is an example of dynamic binding

d. pass by reference is an example of static binding

2)A parameter in a C++ function is passed by value. Which of following statement is true?

I. The value of the real parameter is passed to the formal parameter;

II. Changing the value of the formal parameter in the function will not change the real parameter;

III. Changing the value of the formal parameter in the function will change the real parameter as well.

a. I only

b. II only

c. I and II only

d. I and III only

3)Assume aa is a dynamic array of double type, and has been allocated enough memory to hold 5 double type numbers. Which of following releases the memory used by dynamic array?

Question 18 options:

a. release aa[];

b. delete aa[];

c. delete aa;

d. delete [] aa;

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Students also viewed these Databases questions