null
US
Sign In
Sign Up for Free
Sign Up
We have detected that Javascript is not enabled in your browser. The dynamic nature of our site means that Javascript must be enabled to function properly. Please read our
terms and conditions
for more information.
Next up
Copy and Edit
You need to log in to complete this action!
Register for Free
2956261
Roxar @NDC 2015
Description
Take the Quiz and enter the draw for a USB charger at the end of each day and finally an iPad Mini on Friday.
No tags specified
roxar
emerson
ndc
Quiz by
roxar.ndc2015
, updated more than 1 year ago
More
Less
Created by
roxar.ndc2015
over 9 years ago
22
0
0
Resource summary
Question 1
Question
What is true about a Smart Pointers in C++?
Answer
There's an implementation available as part of the C++ standard library
The objects they point to are automatically deleted by the garbage collector
They are used to help ensure that programs are free of memory and resource leaks and are exception-safe
It was invented by John Smart
Question 2
Question
What is the order that objects in an array are destroyed in C++? MyClass objs[10];
Answer
The order is undefined
Objects will be destroyed in the same order as they were created
The order of destruction is the reverse of the order of construction
Question 3
Question
You were given a chunk of memory and constructed a new object in that chunk using placement new. What do you do to destroy that object again?
Answer
The destructor will be called automatically when the chunk of memory is freed
Placement new doesn’t require destruction of constructed objects
I will manually invoke the destructor of the object
A call to placement delete is necessary to destroy the object
Show full summary
Hide full summary
Want to create your own
Quizzes
for
free
with GoConqr?
Learn more
.
Similar
History of Conservation Biology
lclark2
Workshop 1
mariana.guevara
Drama Works IB English
miss.bakare
Glossary of Accounting Terms
racheloucks
Macbeth cards
gregory.rolfe
Chemistry Keywords
John Appleseed
Physical Description
Mónica Rodríguez
GCSE REVISION TIMETABLE
Joana Santos9567
Lung Structure
Elena Cade
AS Biology Unit 1
lilli.atkin
Networks
B Ilo
Browse Library