Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

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

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_2

Step: 3

blur-text-image_3

Ace Your Homework with AI

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

Get Started

Recommended Textbook for

Design Operation And Evaluation Of Mobile Communications

Authors: Gavriel Salvendy ,June Wei

1st Edition

3030770249, 978-3030770242

More Books

Students also viewed these Programming questions

Question

What steps are required to create an ODBC data source name?

Answered: 1 week ago

Question

What percentage of your students publishes before they graduate?

Answered: 1 week ago