Academic Integrity: tutoring, explanations, and feedback — we don’t complete graded work or submit on a student’s behalf.

1) If a class having dynamically allocated members were missing a destructor, wh

ID: 3709589 • Letter: 1

Question

1) If a class having dynamically allocated members were missing a destructor, what possible problem(s) could arise?

A) anarchy

B) an infinite loop

C) dangling pointer issues

D) double deallocation of memory

E) memory leak

2) If a class having dynamically allocated members were missing a copy constructor, what possible problem(s) could arise?

A) anarchy

B) an infinite loop

C) dangling pointer issues

D) double deallocation of memory

E) memory leak

3) If a class having dynamically allocated members were missing an assignment operator, what possible problem(s) could arise?

A) anarchy

B) an infinite loop

C) dangling pointer issues

D) double deallocation of memory

E) memory leak

4) iterator is to pointer as is to array.

A) string class

B) vector class

C) C-string

D) const iterator

E) NULL

Explanation / Answer

Question 1
Answer:
E) memory leak

Question 2
Answer:


Question 3
Answer:
C) dangling pointer issues

Question 4
Answer:
D) const iterator