Roxar @NDC 2015

Beschreibung

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
Quiz von roxar.ndc2015, aktualisiert more than 1 year ago
roxar.ndc2015
Erstellt von roxar.ndc2015 vor mehr als 9 Jahre
22
0

Zusammenfassung der Ressource

Frage 1

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

Frage 2

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

Frage 3

Frage
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?
Antworten
  • 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
Zusammenfassung anzeigen Zusammenfassung ausblenden

ähnlicher Inhalt

History of Conservation Biology
lclark2
Workshop 1
mariana.guevara
2. Weltkrieg: 1939-1945
JohannesK
Alle Länder der Welt und ihre Hauptstädte
JohannesK
Innere Medizin
marieschwertl
Grundlagen SAP ERP und SAP NetWeaver
zok42.com
Gesetzliche Sozialversicherung
Maximilian Mustermann
Netzwerktechnik
DFairy
Vetie - Histologie und Embryologie
Fioras Hu
Vetie - Tierzucht & Genetik - S VI
Fioras Hu
Vetie Allgemeine Pathologie Altfragen 2016
Nele Unger