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
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started