I think that its C. Report the issue to the teacher.
Answer:
Explanation:
Keep in mind a lossy algorithm will lose information while a lossless algorithm maintains all your original information.
Therefore:
A. False, a lossy algorithm will not allow perfect reconstruction.
B. True, if you don't care about keeping all your information it's easier to compress.
C. False, you can use a lossless algorithm for anything.
D. False, the point of lossless is that you keep all information.
Answer:
DNA obj =new DNA;//obj object created dynamically.
DNA *dnaPtr=&obj.//dnaPtr to store the address of the object.
Explanation:
The above written statements are in C++.The DNA object is created dynamically and it is done in C++ by using new keyword which allocates the heap memory for the object.
Then a dnaPtr is created of type DNA so that it can store the address of the DNA objects.
Answer:
scope
Explanation:
Destructor is a member function and it call automatically when the class object goes out of scope.
Out of scope means, the program exit, function end etc.
Destructor name must be same as class name and it has no return type.
syntax:
~class_name() { };
For example:
class xyz{
xyz(){
print(constructor);
}
~xyz(){
print(destructor);
}
}
int main(){
xyz num;
}//end program
when the object is create the constructor will called and when the program end destructor will call automatically.
What are the multiple choice answers?