Mastering C++: A Comprehensive Quiz Based on 'Thinking in C++'

Disable ads (and more) with a membership for a one time $2.99 payment

Test your C++ skills with our quiz based on Bruce Eckel's 'Thinking in C++'. Dive into object-oriented programming, advanced topics, and fundamentals. Perfect for learners and experts alike. Assess your knowledge and become a C++ master!

Each practice test/flash card set has 50 randomly selected questions from a bank of over 500. You'll get a new set of questions each time!

Practice this question and more.


What term describes the compiler-generated names used for internal purposes, which could include the class name and argument types?

  1. Name decoration

  2. Signature hashing

  3. Type embedding

  4. Function mapping

The correct answer is: Name decoration

Name decoration is the process of modifying a function or variable name in computer programming in order to encode more information in the name, for example class names, argument types, or memory locations. This is done by the compiler and is used for internal purposes. The other options are incorrect because signature hashing refers to the process of generating a unique identifier for a function based on its signature, type embedding is a method of incorporating one data type into another, and function mapping is the process of assigning a function to a unique key for easy retrieval. None of these definitions describe the term in question which asks specifically about names used for internal purposes.