Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Question 26 1 pts Which is NOT an important characteristic of heap variables? There is more space available on the heap than the stack O

image text in transcribed
Question 26 1 pts Which is NOT an important characteristic of heap variables? There is more space available on the heap than the stack O heap variables must be explicitly deleted it's preferable to create arrays and class instances on the heap O heap memory is automatically reallocated when the variable goes out of scope Question 27 1 pts When a class has member variables on the heap, what else should it do? have a copy constructor to ensure new copies of the class have their own instances have a destructor to ensure the heap variables are released both of the above O neither of the above Question 28 1 pts What's the difference between a deep and shallow copy? a deep copy is much more profound than a shallow copy a deep copy explicitly creates new instances of heap variables O a shallow copy always has an explicitly defined copy constructor a shallow copy copies only methods, not instance variables

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

Recommended Textbook for

Database Internals A Deep Dive Into How Distributed Data Systems Work

Authors: Alex Petrov

1st Edition

1492040347, 978-1492040347

More Books

Students also viewed these Databases questions