Question: C++ 1. Delete [ ] stuff; a. deallocated the array stuff, b . sets stuff to NULL, c . allocates memory for stuff, d .

C++

1. Delete [ ] stuff;

a.deallocated the array stuff,b. sets stuff to NULL,c. allocates memory for stuff,d. is a syntax error

2. push_back is a vector

a.delete operation,b. method,c. name,d. location

3. Which library is needed if you want to use struct?

a.struct,b.ansi.c,c.none, no library required,d.iostream

4. struct Power

{

int number;

double kilowatts;

int lockey;

int totuse;

};

How do you set up a struct of Power?

a.struct.Power; ,b.value Power; ,c. struct Power.lockey; ,d.Power value;

5. What is an overloaded constructor?

a.one with too many parameters,b.there is no such thing as an overloaded constructor,c.any constructor other than the default,d.one with no parameters.

6. delete[ ] something;

a.only works with static variables,b.only works with arrays,c. only works with constants,d.causes memory leaks

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Programming Questions!