JavaScript isn't enabled in your browser, so this file can't be opened. Enable and reload.
In-Class 2
A small in-class quiz following our lecture.
Note: For this activity and all other activities, you should only make 1 submission (your first submission is always the one graded)
Sign in to Google
to save your progress.
Learn more
* Indicates required question
First Name
*
Your answer
Last Name
*
Your answer
E-mail (Please use your Northeastern Address)
*
Your answer
Is C++ a compiled language?
*
1 point
Yes
No
If we can perform a static_assert, is that better than doing so at run-time for performance?
1 point
Yes--this may provide helpful error checking that will not cost any performance.
No--do everything always at run-time because we do not care about performance in game engines.
Clear selection
What is a POD in C++?
*
1 point
Plain Old Data Structure (Or Piece of Data). Typically a convention followed by some programmers, reserving a 'class' as a way to create larger custom data types.
Pointer OverloaDed
Something you sleep in
When is a good use case in C++ to utilize Diamond Inheritance?
1 point
It is generally NEVER a good use case. It makes maintaining code difficult, and could potentially confuse the compiler.
It is fine to utilize multiple inheritance to save you from writing more code.
Clear selection
If I allocate an array of memory with the line: int* intArray = new int[50]. How do I properly delete it to avoid memory leaks?
1 point
delete intArray;
delete[] intArray;
You do not need to ever delete this memory, just wait until it goes out of scope.
Clear selection
Submit
Page 1 of 1
Clear form
Never submit passwords through Google Forms.
This content is neither created nor endorsed by Google.
Report Abuse
-
Terms of Service
-
Privacy Policy
Forms