Roxar @NDC 2015

Descripción

Take the Quiz and enter the draw for a USB charger at the end of each day and finally an iPad Mini on Friday.
roxar.ndc2015
Test por roxar.ndc2015, actualizado hace más de 1 año
roxar.ndc2015
Creado por roxar.ndc2015 hace más de 9 años
22
0

Resumen del Recurso

Pregunta 1

Pregunta
What is true about a Smart Pointers in C++?
Respuesta
  • 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

Pregunta 2

Pregunta
What is the order that objects in an array are destroyed in C++? MyClass objs[10];
Respuesta
  • 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

Pregunta 3

Pregunta
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?
Respuesta
  • 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
Mostrar resumen completo Ocultar resumen completo

Similar

History of Conservation Biology
lclark2
Workshop 1
mariana.guevara
3) Fish and Seafood
John Goalkeeper
Chino Mandarín Básico
Diego Santos
Preposiciones en inglés
Lolo Reyes
EL SIGLO XVIII EN ESPAÑA: LA MONARQUÍA BORBÓNICA
maya velasquez
VERB TENSES
cesartorres721
ESTRUCTURAS REPETITIVAS O CICLICAS EN PROGRAMACION
Karla Moreno
Verb tenses
maria.mos2902
La Capilla De Los Resurrectos.
Karen Guerrero
¿COMO HACER UN CUADRO SINOPTICO?
luisa valentina castaño acuña